NGinX config for Django and Wordpress in subdirectory
- by Helmut
I need to set up a Django site at the root of a domain, but then have a Wordpress installation in a subdirectly (e.g. /blog/). How would one configure NGinX to do this? "Pretty" URLs have to work for Wordpress as well.
For Django I am using Gunicorn, which is already configured. From NGinX I would call "proxy_pass" to direct to that. PHP is run via FPM.
Considering the restrictions above, how would I configure NGinX? Any help would be appreciated!
Thanks.