Django website on Apache with wsgi failing

Posted by notagain on Stack Overflow See other posts from Stack Overflow or by notagain
Published on 2010-04-22T11:06:55Z Indexed on 2010/04/22 11:13 UTC
Read the original article Hit count: 290

Filed under:
|
|

I have a website I've built in django that I'm trying to get working on our corporate Apache server (on debian) for our intranet at my workplace. Unfortunately, Apache keeps returning server errors whenever I try to navigate to my site. Although I can navigate to the statics folder. My Apache config and wsgi script look like the following...

lbirdf.wsgi

import os
import sys

sys.path.append('/home/lbi/rdfweb/web')
sys.path.append('/home/lbi/rdfweb/lbirdf')

os.environ['DJANGO_SETTINGS_MODULE'] = 'lbirdf.settings_production'

import django.core.handlers.wsgi

application = django.core.handlers.wsgi.WSGIHandler()

Apache config

Listen 8080

<VirtualHost *:8080>
ServerName server1
WSGIScriptAlias /rdfweb /home/lbi/rdfweb/web/lbirdf/apache/lbirdf.wsgi
Alias /statics /home/lbi/rdfweb/web/lbirdf/statics
Alias /admin_media /home/lbi/rdfweb/web/lbirdf/admin_media

<Directory /home/lbi/rdfweb/web/lbirdf/apache>
Order allow,deny
Allow from all
</Directory>

<Directory /home/lbi/rdfweb/web/lbirdf/admin_media>
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

Any ideas on where I might be going wrong?

© Stack Overflow or respective owner

Related posts about django

Related posts about mod-wsgi