I am not able to start multiple hosts on my Windows/Apache/Django.
The second entry crashes Apache with error 500. If I switch my
servers around, it is still always the second one that crashes. Is
this a non workable setup on Windows without multiple daaemon
processes for each application?
Log says:
[Sat Sep 05 09:30:58 2009] [error] Unable to read settings_local.py
[Sat Sep 05 09:30:58 2009] [error] [client 10.0.0.5] mod_wsgi
(pid=6052): Exception occurred processing WSGI script 'C:/path/app2/
apache/django.wsgi'.
NameVirtualHost *:80
<VirtualHost *:80>
ServerName www.domain1.no
WSGIScriptAlias / "/path/app1/apache/django.wsgi"
<Directory "/path/app1/apache">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName www.domain2.no
WSGIScriptAlias / "/path/app2/apache/django.wsgi"
<Directory "/path/app2/apache">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
My wsgi files are identical
import os, sys
WSGI_ROOT = os.path.normpath(os.path.dirname(__file__))
home = WSGI_ROOT + '/../'
if not home in sys.path:
sys.path.insert(0, home)
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"modwsgi" group.
To post to this group, send email to modwsgi@xxxxxxxxxxxxxxxx
To unsubscribe from this group, send email to
modwsgi+unsubscribe@xxxxxxxxxxxxxxxx
For more options, visit this group at
http://groups.google.com/group/modwsgi?hl=en
-~----------~----~----~----~------~----~------~--~---