diff options
| author | Pjotr <wrk@bosa.lan> | 2026-11-07 13:59:09 +0000 |
|---|---|---|
| committer | Pjotr <wrk@bosa.lan> | 2026-11-07 13:59:09 +0000 |
| commit | ea2af939642cd7cc780becdcad5e3ab9b478ef26 (patch) | |
| tree | f300d170619784ddbeb0cf88fdd3f7f7f6815eb7 /etc | |
| parent | f21ab7d46df904ece47ba59f1beba09515b59e58 (diff) | |
| download | genenetwork4-ea2af939642cd7cc780becdcad5e3ab9b478ef26.tar.gz | |
etc: the host is vesuvio.pu.ac.ke, not .ac.uk
The certificate on :443 carries subjectAltName DNS:vesuvio.pu.ac.ke, and vesuvio.pu.ac.uk does not resolve at all, so the config as committed could not have matched a request for the real name: nginx falls through to the default server, which is why /gn4/... answered 404 from nginx rather than a 502 from genenetwork4. * etc/nginx-vesuvio.pu.ac.uk.conf -> etc/nginx-vesuvio.pu.ac.ke.conf: server_name and the certificate paths. * docs/nginx.md: the same rename, and a "Checking it" section that starts from what actually gets in the way on the box -- TLS validates the URL hostname rather than a Host: header, so on-box checks need --resolve against the name on the certificate, and a mismatch there and in server_name look identical (default server answers).
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/nginx-vesuvio.pu.ac.ke.conf (renamed from etc/nginx-vesuvio.pu.ac.uk.conf) | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/nginx-vesuvio.pu.ac.uk.conf b/etc/nginx-vesuvio.pu.ac.ke.conf index e57e4cf..1971af2 100644 --- a/etc/nginx-vesuvio.pu.ac.uk.conf +++ b/etc/nginx-vesuvio.pu.ac.ke.conf @@ -8,7 +8,7 @@ log_format gn4 '$remote_addr - $remote_user [$time_local] "$request" ' # Uncomment with the limit_req line inside the location below. # limit_req_zone $binary_remote_addr zone=gn4_per_ip:10m rate=20r/s; -# nginx: https://vesuvio.pu.ac.uk/gn4/ -> genenetwork4 on 127.0.0.1:3000 +# nginx: https://vesuvio.pu.ac.ke/gn4/ -> genenetwork4 on 127.0.0.1:3000 # # Drop into /etc/nginx/conf.d/ (included from inside nginx's http block) or # paste the server block into /etc/nginx/sites-enabled/. The genenetwork4 @@ -34,11 +34,11 @@ log_format gn4 '$remote_addr - $remote_user [$time_local] "$request" ' server { listen 443 ssl; http2 on; # nginx >= 1.25.1; else: listen 443 ssl http2; - server_name vesuvio.pu.ac.uk; + server_name vesuvio.pu.ac.ke; # Point these at the real files; the Let's Encrypt layout is assumed. - ssl_certificate /etc/letsencrypt/live/vesuvio.pu.ac.uk/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/vesuvio.pu.ac.uk/privkey.pem; + ssl_certificate /etc/letsencrypt/live/vesuvio.pu.ac.ke/fullchain.pem; + ssl_certificate_key /etc/letsencrypt/live/vesuvio.pu.ac.ke/privkey.pem; ssl_protocols TLSv1.2 TLSv1.3; ssl_session_cache shared:gn4_ssl:10m; ssl_session_timeout 1h; |
