Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
change webroot possible
#4
Lightbulb 
For those who are interested in this topic (if any Wink ). 

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;
               }
Reply


Messages In This Thread
change webroot possible - by astrogerard - 2019 Jun 08, 07:16 PM
RE: change webroot possible - by dan - 2019 Jun 08, 08:27 PM
RE: change webroot possible - by astrogerard - 2019 Jun 09, 06:13 PM
RE: change webroot possible - by astrogerard - 2019 Jun 14, 06:47 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)