Hello I had to recently reinstall mod_wsgi today (As our Red Hat server was curupted again). Something funny happed while deployiing with Django. I kept on getting page 403 errors
You do not have permission to access /mmc on this server error.
My project folder is stored in
/usr/local/src/djcode/c2duo_mms' The permission of my project folder and all of its contents are set tochmod 755`. The app name is called mmc.
import os import sys sys.path.append('/usr/local/src/djcode/') sys.path.append('/usr/local/src/djcode/c2duo_mms') os.environ['DJANGO_SETTINGS_MODULE'] = 'c2duo_mms.settings' import django.core.handlers.wsgi application = django.core.handlers.wsgi.WSGIHandle()
WSGIScriptAlias /mmc /usr/local/src/djcode/c2duo_mms/apache/django.wsgi WSGIPythonEggs /tmp <Directory /var/www/html/c2duo_crm/apache> Order allow,deny Allow from all
I can't see what the problem is here. I had my project folder stored in the same place as last time, but this time it is not working.