I'm having a very odd issue with named virtual hosts and mod_wsgi, and
am wondering if I'm screwing up or if this is a known problem.
In particular, we have three named virtual hosts, sharing a single IP,
on a single machine. The .conf file (sanitized) is attached below.
In particular, the virtual host "a" (the first) is correctly served.
However, virtual hosts "b" and "c" both served from "b"'s django.wsgi,
*regardless of the order of the VirtualHost directive sections*.
I've tried serving direct pages with the WSGI-related directives
commented out, and the vhosts are being distinguished by Apache
correctly.
RHEL 5.4, Apache/2.2.3, mod_wsgi 2.3
Any thoughts as to why that might be?
--
NameVirtualHost *
<VirtualHost *>
ServerAdmin [email protected]
ServerName a.example.com
ServerAlias a.example.com
DocumentRoot /home/example/example
<Directory "/home/example/example">
Options -Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
WSGIDaemonProcess old processes=4 threads=32 display-name=%{GROUP}
WSGIProcessGroup old
WSGIScriptAlias / /home/example/example/apache/django.wsgi
<Location "/media">
SetHandler None
</Location>
</VirtualHost>
<VirtualHost *>
ServerAdmin [email protected]
ServerName b.example2.com
ServerAlias b.example2.com
DocumentRoot /home/b/example
<Directory "/home/b/example">
Options -Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
WSGIDaemonProcess dev processes=4 threads=32 display-name=%{GROUP}
WSGIProcessGroup dev
WSGIScriptAlias / /home/b/example/apache/django.wsgi
<Location "/media">
SetHandler None
</Location>
</VirtualHost>
<VirtualHost *>
ServerAdmin [email protected]
ServerName c.example2.com
ServerAlias c.example2.com
DocumentRoot /home/cpettus/example
<Directory "/home/cpettus/example">
Options -Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
WSGIDaemonProcess test processes=4 threads=32 display-name=%{GROUP}
WSGIProcessGroup test
WSGIScriptAlias / /home/cpettus/example/apache/django.wsgi
<Location "/media">
SetHandler None
</Location>
</VirtualHost>
--
-- Christophe Pettus
[email protected]
--
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.