I'm trying to set up two seperate django sites using mod_wsgi on apache.
The first site is working fine, but the second site cupaday.dyndns.biz is giving a 403:
[Tue Feb 07 22:32:57 2012] [error] [client 68.48.6.208] (13)Permission denied: access to / denied
Does anyone see what is wrong?? I read about deploying multiple virtualservers and most people pointed to make sure there was a Directory directive with allow from all. I have tried setting this to the path to my app, to wsgi directory and to the actual .wsgi.
Like i said the first site snaganitem is working fine. Does anyone know how I can fix this?? Or is there a way to see a verbose version of the 403 errror?
thank you.
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin dm03514@gmail.com
ServerName snaganitem.com
ServerAlias www.snaganitem.com
LogLevel warn
ErrorLog /var/log/httpd/error.log
CustomLog /var/log/httpd/access.log combined
WSGIScriptAlias / /home/snaganitem/hackpages/apache2/django.wsgi
<Location "/static">
SetHandler None
</Location>
<Directory /home/snaganitem/hackpages/apache2>
Order allow,deny
Allow from all
</Directory>
Alias /static /home/snaganitem/hackpages/static
Alias /google927b622c2314fdec.html /home/snaganitem/static_html/google927b622c2314fdec.html
</VirtualHost>
<VirtualHost *:80>
ServerAdmin dm03514@gmail.com
ServerName cupaday.dyndns.biz
LogLevel warn
ErrorLog /var/log/httpd/error.log
CustomLog /var/log/httpd/access.log combined
WSGIScriptAlias / /home/cupaday/cup_a_day/wsgi/django.wsgi
<Location "/static">
SetHandler None
</Location>
<Directory /home/cupaday/cup_a_day/wsgi>
Order deny,allow
Allow from all
</Directory>
Alias /static /home/cupaday/cup_a_day/static
</VirtualHost>