Report this

What is the reason for this report?

Proxy pass and Nginx

Posted on January 29, 2014

I just installed an application in the subfolder of a WordPress-powered site that’s running on Nginx. By default, the application is accessible by appending a port number to the url, like http://website.com:7512.

The aim is to make the application accessible from http://website.com/discuss.

Looking for tips on how to use Nginx’s proxy pass to make this happen. So far, my attempts have not worked.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

Yep, I know it’s easier setting up a subdomain for it. I’ve done it several times. But for SEO reasons, I’m opting to host the app in a subfolder. <br> <br>I’ve actually figured it out, it’s just that the app is at a development stage where it cannot be installed in a subfolder.

Is there anything stopping you from hosting it on a subdomain? It’s easier to configure nginx that way. (e.g. discuss.website.com).

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.