So I'm trying to get reverse proxy working. I can get it to work with https://subdomain.domain.com, however i can't get it to work with https://domain.com/subdir (or https://subdomain.domain.com/subdir for that matter). Any idea what i have to change in the NGINX config? My location block is attached below and it works as long as it is "location /"
location /proxmox/ {
proxy_redirect off;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass https://192.168.102.3:8006; ## the lan ip of the machine, it isn't localhost
proxy_buffering off;
client_max_body_size 0;
proxy_connect_timeout 3600s;
proxy_read_timeout 3600s;
proxy_send_timeout 3600s;
send_timeout 3600s;
}
location /proxmox/ {
proxy_redirect off;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass https://192.168.102.3:8006; ## the lan ip of the machine, it isn't localhost
proxy_buffering off;
client_max_body_size 0;
proxy_connect_timeout 3600s;
proxy_read_timeout 3600s;
proxy_send_timeout 3600s;
send_timeout 3600s;
}