Please use this template for troubleshooting questions.
My issue: I have a network with my internet router feeding a server running Debian 13 and nginx 1.26.3. I have a separate server running Unraid and Immich. I have set up HTTPS reverse proxy access to Immich using a wildcard certificate for my domain and this works fine. I set up a similar configuration for Unraid which does not work for the folder access.
Unraid access works by accessing the root path (/) which returns a 302 record referring to /Main. Generally /Main determines that you are not logged in and refers you to /login. The issue is that access to both /Main and /login return 404 errors.
As I said, my Immich SSL setup works fine and if I set up an HTTP proxy for Unraid, it works fine.
If I CURL to https://unraid.mydomain.com I get the 302 response. If I CURL to https://unraid.mydomain.com/Main or https://unraid.mydomain.com/login I get a 404 response. If I CURL to Immich and its folders, everything is fine.
My setup is a follows. I have tried lots of variations based on other posts. This setup works fine for Immich which does have subfolders but does not use redirection.
server {
listen 443 ssl;
server_name unraid.mydomain.com;
ssl_certificate /usr/certificates/mydomain.com.cer;
ssl_certificate_key /usr/certificates/mydomain.com.key;
ssl_session_cache shared:SSL:10m;
access_log /var/log/nginx/access.log unraid;
location = / {
proxy_pass http://192.168.1.200:180/;
proxy_set_header Host $http_host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
Version of NGINX or NGINX adjacent software (e.g. NGINX Gateway Fabric):
1.26.3
Deployment environment:
Debian 13 on a Dell 7010 server.