eh22-wiki: make automatic dir redirects work for /design

Do this by setting port_in_redirect to off.
This commit is contained in:
June 2025-02-14 04:34:09 +01:00
parent 70d4ce9a2d
commit 9334f70289
Signed by: june
SSH key fingerprint: SHA256:o9EAq4Y9N9K0pBQeBTqhSDrND5E7oB+60ZNx0U1yPe0

View file

@ -64,11 +64,9 @@ server {
fastcgi_pass unix:/var/run/php/php-fpm-dokuwiki.sock;
}
location = /design {
return 302 https://eh22.easterhegg.eu/design/;
}
location /design/ {
# Disable port in redirect as NGINX would redirect to the PROXY Protocol port 8443 for locations like https://eh22.easterhegg.eu/design
port_in_redirect off;
alias /var/www/eh22-styleguide/;
index index.html;
}