J'ai perdu 3 jours à essayer de faire fonctionner Apache avec django et devenir très frustré. Ive luDjango 1.4 mod_wsgi - 403 interdit, accès à/refusé
https://docs.djangoproject.com/en/1.4/howto/deployment/wsgi/modwsgi/
http://code.google.com/p/modwsgi/wiki/IntegrationWithDjango
La configuration est différente entre les liens et je pense qu'ils sont un peu dépassées maintenant avec django 1.4 L'im d'erreur face dans le journal apache est
(13) Autorisation refusée: accès à/refusé
Environnement:
Python 2,62
Centos 6.2 sur Windows Azure
Apache/2.2.15
Django 1.4
chemins:
/home/craig/django /myproject/myproject/wsgi.py
Autorisations:
/home /: drwxrwxr-x
/home/craig /: drwxrwxr-x
/home/craig/django /: drwxrwxr-x
/home/craig/django/myproject /: drwxrwxr-x
/home/craig/django/myproject/myproject /: drwxrwxr-x
/home/craig/django/myproject/myproject/wsgi.py: -rw- r - r -
http.conf:
DocumentRoot "/var/www/html"
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory /home/craig/django/myproject/myproject>
<Files wsgi.py>
Order deny,allow
Allow from all
</Files>
</Directory>
WSGIScriptAlias//home/craig/django/myproject/myproject/wsgi.py
WSGIPythonPath /home/craig/django/myproject
<VirtualHost *:80>
ServerName myserver.domain.net
</VirtualHost>
wsgi.py
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "myproject.settings")
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
Ceci est un double de http : //serverfault.com/questions/434020/django-1-4-mod-wsgi-403-forbidden-access-to-denied –