Configuring mod_wsgi on CentOS exemple 1

Description du serveur virtuel

 1 Alias /static /home/user/myproject/static
 2 <Directory /home/user/myproject/static>
 3     Require all granted
 4 </Directory>
 5
 6 <Directory /home/user/myproject/myproject>
 7     <Files wsgi.py>
 8         Require all granted
 9     </Files>
10 </Directory>
11
12 WSGIDaemonProcess myproject python-path=/home/user/myproject:/home/user/myproject/myprojectenv/lib/python2.7/site-packages
13 WSGIProcessGroup myproject
14 WSGIScriptAlias / /home/user/myproject/myproject/wsgi.py

Amélioration possible

WSGIDaemonProcess myproject python-home=/home/user/myproject/myprojectenv home=/home/user/myproject