Serve wordpress blog from subdirectory with django and wsgi Serve wordpress blog from subdirectory with django and wsgi wordpress wordpress

Serve wordpress blog from subdirectory with django and wsgi


You can disable Phusion Passenger for specific locations in the Passenger app using the following code:

<VirtualHost *:80>    ServerName www.foo.com    DocumentRoot /apps/foo/public    <Directory /apps/foo/public/wordpress>        PassengerEnabled off        AllowOverride all      # <-- Makes Wordpress's .htaccess file work.    </Directory></VirtualHost>

For more tricks, check out the Phusion Passenger documentation


For those who is on shared hosting you can create file .htaccess under /path/to/your/blog with one line in it:

PassengerEnabled off

That's it.