2015-06-19, 17:32
Does anyone have a working nginx setup handling reverse proxy into HTPC Manager? I've configured HTPC Manager with a webdir of /htpc, like the documentation says, but cannot get the proxy_pass part of nginx to work. When accessing my domain name, I just get the Welcome to Nginx.
I think it has something to do with how the HTPC Manager's URI is read, and being referred to /auth/login. When I go to http://domain.com I get the Welcome to Nginx page, but if I manually type http://domain.com/htpc it works and resolves to http://domain.com/htpc/auth/login.
I think it has something to do with how the HTPC Manager's URI is read, and being referred to /auth/login. When I go to http://domain.com I get the Welcome to Nginx page, but if I manually type http://domain.com/htpc it works and resolves to http://domain.com/htpc/auth/login.
Code:
location /htpc {
proxy_set_header Host $host;
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;
#here is the HTPC Manager VM I want to reverse proxy to
proxy_pass http://192.168.1.17:8085;
#have also tried http://192.168.1.17:8085/htpc, but no worky
proxy_read_timeout 90;
}