Reverse Proxy Config for Subfolder (ex. "domain.com/deemix" )
I am using the linuxserver SWAG container and have a config like this
location ^~ /deemix {
auth_basic "Restricted Content";
auth_basic_user_file /config/nginx/auth/.downloads;
proxy_pass http://192.168.1.16:6595/;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $http_host;
proxy_redirect off;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
}
Sadly the reverse proxy is failing this way, because it tries to get the API from domain.com/api/connect for example.
It is stuck on Couldn't connect to local server.
How do I fix this since I cant use a subdomain?