Changes between Version 2 and Version 3 of InstallationGuidelinesApacheModWSGI


Ignore:
Timestamp:
01/03/09 04:42:32 (13 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • InstallationGuidelinesApacheModWSGI

    v2 v3  
    11== Installation on Apache with WSGI ==
    22This is what is used to host the Demo site & Trac
     3
    34
    45 * mod_rewrite: http://mdp.cti.depaul.edu/AlterEgo/default/show/144
    56
    67=== Ubuntu ===
     8{{{
     9apt-get install libapache2-mod-wsgi
     10vim /etc/apache2/sites-available/web2py
     11}}}
     12
     13{{{
     14<VirtualHost ip.ip.ip.ip:80>
     15  ServerName demo.sahana3.org
     16  ServerAdmin webmaster@sahana3.org
     17  DocumentRoot /var/www/web2py/applications
     18
     19  WSGIScriptAlias / /var/www/web2py/wsgihandler.py
     20  WSGIDaemonProcess web2py user=www-data group=www-data home=/var/www/web2py processes=10 maximum-requests=500
     21
     22  RewriteEngine On
     23  RewriteRule ^/$ /sahana/ [R]
     24
     25  ### admin only accessible via SSH Tunnel
     26  <Location "/admin">
     27    SSLRequireSSL
     28  </Location>
     29  ### appadmin requires SSL
     30  <LocationMatch "^(/[\w_]*/appadmin/.*)">
     31    SSLRequireSSL
     32  </LocationMatch>
     33  ### static files do not need WSGI
     34  <LocationMatch "^(/[\w_]*/static/.*)">
     35    Order Allow,Deny
     36    Allow from all
     37  </LocationMatch>
     38  ### everything else goes over WSGI
     39  <Location "/">
     40    Order deny,allow
     41    Allow from all
     42    WSGIProcessGroup web2py
     43  </Location>
     44
     45  ErrorLog /var/log/apache2/demo_error.log
     46  LogLevel warn
     47  CustomLog /var/log/apache2/demo_access.log combined
     48</VirtualHost>
     49}}}
     50
     51{{{
     52cd /etc/apache2/sites-available/
     53ln -s /etc/apache2/sites-available/web2py
     54/etc/init.d/apache2 restart
     55}}}
    756
    857