2019 Jun 14, 06:47 PM
For those who are interested in this topic (if any ).
Changing the webroot via a reverse proxy is easy. Hints are already in ReverseProxied.py.
In this case I use Nginx with the following few lines of config.
Changing the webroot via a reverse proxy is easy. Hints are already in ReverseProxied.py.
In this case I use Nginx with the following few lines of config.
Code:
location /sip {
proxy_pass http://<ip of sip>:<port>;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Script-Name /sip;
}
location /sip/static {
proxy_pass http://<ip of sip>:<port>/static;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Script-Name /sip/static;
}