NGinX config for Django and Wordpress in subdirectory
Posted
by
Helmut
on Server Fault
See other posts from Server Fault
or by Helmut
Published on 2012-10-29T10:53:27Z
Indexed on
2012/10/29
11:03 UTC
Read the original article
Hit count: 241
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.
© Server Fault or respective owner