Configuration d'apache avec WSGI
Bonjour,
Je cherche à mettre un site fait avec django en ligne.
Les sources python sont dans /home/site/django_sources/mon_projet
et mon fichier /etc/apache2/sites-availables/site contient ceci :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
<VirtualHost *:80>
DocumentRoot /home/site/public_html
ServerName www.site.domaine.fr
ServerAlias site.domaine.fr
AliasMatch ^/static/(.*) /home/site/public_html/static/$1
WSGIScriptAlias / /home/site/django_sources/project/wsgi.py
<Directory /home/site/public_html/static>
Order Allow,Deny
Allow From All
</Directory>
</VirtualHost> |
Les documents dans static/ sont parfaitement accessibles mais en entrant simplement site.domaine.fr, je n'obtient cependant qu'une erreur 404 (URL / Not found)
Comment puis-je configurer apache pour qu'il prenne en compte mon fichier wsgi.py?
Merci!