I've got a website I have built-in django that I am looking to get focusing on our corporate Apache server (on debian) for the intranet inside my place of work. Regrettably, Apache keeps coming back server errors whenever I attempt to navigate to my website. Although I'm able to visit the statics folder. My Apache config and wsgi script seem like the next...
import os import sys sys.path.append('/home/lbi/rdfweb/web') sys.path.append('/home/lbi/rdfweb/web/lbirdf') os.environ['DJANGO_SETTINGS_MODULE'] = 'lbirdf.settings_production' import django.core.handlers.wsgi application = django.core.handlers.wsgi.WSGIHandler()
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 applying for grants where I would go wrong?
What messages have been in the Apache error log? Try setting DEBUG to true in Django configurations file to obtain more informative error message delivered back to browser in instance that it's an problem inside your application.
Possible causes are, web addresses.py is wrong since you are erroneously including site prefix when you don't have to or perhaps a permissions problem because code running as Apache user and never you.
Being unsure of the particular errors does not assist in exercising the issue.