I want to run http://www.example.com to be accessed and managed by django. And,
http://www.example.com/about or http://www.example.com/about/…
and
http://www.example.com/wordpress or http://www.example.com/wordpress/…
to be managed by wordpress.
So, the wordpress admin will be at http://www.example.com/wordpress and the pages it generates will be at http://www.example.com/about/…
I have no idea how to do this. How can I host these two things on the same apache server?
This is my current wsgi file and the django app works at http://www.example.com. But when i access http://www.example.com/about/ it tries to go through urls.py and not find anything. how do i put my wordpress pages over here?
LoadModule wsgi_module modules/mod_wsgi.so
WSGIScriptAlias / "C:\Users\Nikunj\Documents\Aptana Studio 3 Workspace\myapp\myapp\wsgi.py"
Alias / "C:\Users\Nikunj\Documents\Aptana Studio 3 Workspace\myapp\myapp\"
<Directory />
Order allow,deny
Allow from all
</Directory>
Thank you for all your help!! 🙂
EDIT this is my new file using jdi’s answer but it still doesnt work:
LoadModule wsgi_module modules/mod_wsgi.so
WSGIScriptAlias / "C:\Users\Nikunj\Documents\Aptana Studio 3 Workspace\myapp\myapp\wsgi.py"
Alias /wordpress/ "C:\wamp\www\wordpress\wp-admin\"
Alias / "C:\Users\Nikunj\Documents\Aptana Studio 3 Workspace\myapp\myapp\"
<Directory "C:/wamp/www/wordpress/wp-admin/">
AllowOverride All
Order Deny,Allow
Allow from all
</Directory>
<Directory />
Order allow,deny
Allow from all
</Directory>
Create multiple directory entries in your apache conf: http://httpd.apache.org/docs/2.0/mod/core.html#directory
One is set up for wordpress, and one is set up for django. Right now, every bit of traffic is always going to your django app.
It might look something like this (just guessing):