Reverse Proxy NGINX webgui

justlookingaround12

New Member
Mar 26, 2018
13
0
1
34
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;
}
 
Can you try to add a trailing slash to the proxy_pass host? Without I guess nginx is passing /subdir to pve which will it work. Otherwise your rewrite rule needs to strip /subdir from the request.
 
Can you try to add a trailing slash to the proxy_pass host? Without I guess nginx is passing /subdir to pve which will it work. Otherwise your rewrite rule needs to strip /subdir from the request.
That gets me one step closer, with your advice a blank page loads, but with the correct title (pve ....). Any ideas past this?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!