Configuring mod_wsgi on CentOS exemple 3


   DocumentRoot /srv/www/

   WSGIScriptAlias / /srv/www/
   <Directory /srv/www/>
      Order allow,deny
      Allow from all

   Alias /robots.txt /srv/www/
   Alias /favicon.ico /srv/www/
   Alias /images /srv/www/
   Alias /static /srv/www/

   ErrorLog /srv/www/
   CustomLog /srv/www/ combined

Edit the /etc/httpd/conf.d/wsgi.conf file to enable the mod_wsgi by uncommenting or adding the following line:


LoadModule wsgi_module modules/

When you have successfully configured your Apache virtual host, and enabled the required module, issue the following command to restart the web server: