Zen of Python by Tim Peters | More...
« Web API using Django and markup.py | Embedded Linux »
A lot of mod_wsgi configuration tutorial configure the single VirtualHost as below (from mod_wigs wiki),
<VirtualHost *:80> ServerName www.example.com ServerAlias example.com ServerAdmin webmaster@example.com DocumentRoot /usr/local/www/documents <Directory /usr/local/www/documents> Order allow,deny Allow from all </Directory> WSGIScriptAlias /myapp /usr/local/www/wsgi-scripts/myapp.wsgi <Directory /usr/local/www/wsgi-scripts> Order allow,deny Allow from all </Directory> </VirtualHost>
I spent around one hour try to configure multiple VirtualHost on webfaction. I did exactly but the request always be routed to the first VirtualHost setting.
I reordered the settings by putting the WSGIScriptAlias before ServerName and it works fine. The question is, is that required or I did something wrong?
Comments
#1 At 12:46 p.m. on December 9, 2008 lmlmvzbou says...