Question
How can I get nginx to display webapp in *example.com*/here ?
I’ve built a web app and now I would like to move it to it’s own / location on my domain, I thought doing the following would work;
location /here {
proxy_pass http://127.0.0.1:5000:
}
but that doesn’t work, if I proxy_pass the app to the / location it works fine.
Any help would be greatly appreciated.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×
if I proxy_pass the app to the / location it works fine.
What do you mean? If it works fine, why not do that?
And just saying “it doesn’t work” doesn’t say anything. You need logs, configurations, environment information etc. to give some help..
Try something like this: