Submit a wordpress blog from a subdirectory with django and wsgi

I am currently in a shared hosting plan with Dreamhost and installed Django at http://wiki.dreamhost.com/Django . However, I also have a Wordpress blog that I want to continue to work in a subdirectory, that is, site.com/blog.

Is it possible to do this. Installing Django leads to the passenger_wsgi.py file in the Django root directory, which redirects all requests to django

If I try to go to my blog, I get an error, because obviously this is not in url.py. Is it possible to somehow maintain the wordpress blog as well as configure wsgi or django, and how can I do this?

thank you for your time

PS I have currently renamed user_wsgi.py so that the blog shows

+4
source share
2 answers

You can disable Phusion Passenger for specific locations in the Passenger application 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 .htaccess file work. </Directory> </VirtualHost> 

For more tricks, visit the Phusion Passenger documentation

+6
source

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

 PassengerEnabled off 

What is it.

+1
source

All Articles