Welcome! Log In Create A New Profile

Advanced

Re: Can you migrate a web app available via '/' to a proxied sub-URI without modifying the web app?

All files from this thread

File Name File Size   Posted by Date  
smime.p7s 5.2 KB open | download Michael Salmon 05/09/2017 Read message
May 09, 2017 05:33AM
location /flask-demo/ {
root /var/www/passenger-python-flask-demo;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $host;
rewrite /flask-demo/([^/]+) /$1 break;
proxy_pass http://127.0.0.1:3000/;
}

And then add additional location blocks/rewrites to handle static content.

---
nginx for Windows http://nginx-win.ecsds.eu/
Subject Author Posted

Can you migrate a web app available via '/' to a proxied sub-URI without modifying the web app?

deoren May 08, 2017 07:18PM

Re: Can you migrate a web app available via '/' to a proxied sub-URI without modifying the web app? Attachments

Michael Salmon May 09, 2017 04:36AM

Re: Can you migrate a web app available via '/' to a proxied sub-URI without modifying the web app?

itpp2012 May 09, 2017 05:33AM

Re: Can you migrate a web app available via '/' to a proxied sub-URI without modifying the web app?

Francis Daly May 09, 2017 08:38AM

Re: Can you migrate a web app available via '/' to a proxied sub-URI without modifying the web app?

itpp2012 May 09, 2017 09:03AM

Re: Can you migrate a web app available via '/' to a proxied sub-URI without modifying the web app?

Francis Daly May 09, 2017 04:28PM

Re: Can you migrate a web app available via '/' to a proxied sub-URI without modifying the web app?

itpp2012 May 09, 2017 04:58PM

Re: Can you migrate a web app available via '/' to a proxied sub-URI without modifying the web app?

deoren May 10, 2017 11:32PM

Re: Can you migrate a web app available via '/' to a proxied sub-URI without modifying the web app?

pbooth May 11, 2017 12:18PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 69
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready