Hi,
I have two separate Django apps that have to be mounted on root for
two different domains. So I have setup two virtual hosts and each
virtual host listens on a different port behind an Nginx proxy. I am
running mod_wsgi in embedded mode. I am using Httpd server 2.2.3 and
mod_wsgi 2.3 on CentOS 5.2. For the WSGI framework, I am using Django
running the latest SVN copy on Python2.6.

Here's my httpd.conf file:

"""
Listen 8000
Listen 8001

NameVirtualHost 127.0.0.1:8000
NameVirtualHost 127.0.0.1:8001
ServerAdmin [email protected]

<VirtualHost 127.0.0.1:8000>
ServerName example.com
ServerAlias *.example.com
DocumentRoot /path/to/documentA

<Directory /path/to/documentA>
Order deny,allow
Allow from all
</Directory>

WSGIScriptAlias / /path/to/wsgi/scriptA

<Directory /path/to/wsgi/scriptA>
Order deny,allow
Allow from all
</Directory>
</VirtualHost>

<VirtualHost 127.0.0.1:8001>
ServerName test.com
ServerAlias *.test.com
DocumentRoot /path/to/documentB

<Directory /path/to/documentB>
Order deny,allow
Allow from all
</Directory>

WSGIScriptAlias / /path/to/wsgi/scriptB

<Directory /path/to/wsgi/scriptB>
Order deny,allow
Allow from all
</Directory>
</VirtualHost>
"""

The two apps have some URL patterns common (only the URL pattern is
same but the content is different). So when I request example.com/
about/ it fetches the response of test.com/about/. On resending the
request, it fetches the correct response. This pattern repeats
alternatively and sometimes it raises a 404 error on a valid page
(uncommon URL patterns) and shows the correct response on refreshing
the page.

I have tried googling for this but could not figure out what the
problem might be. Somehow I believe, I am making a configuration
blunder or have misunderstood the documentation.

--
Cheers
Thejaswi Puthraya

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to