Changes between Version 30 and Version 31 of InstallationGuidelinesApacheModWSGI


Ignore:
Timestamp:
09/08/10 12:17:52 (14 years ago)
Author:
Fran Boon
Comment:

Maintenance site

Legend:

Unmodified
Added
Removed
Modified
  • InstallationGuidelinesApacheModWSGI

    v30 v31  
    22This is what is used to host the Demo site & Trac
    33
    4 Also see InstallationGuidelinesLinux
     4Also see:
     5 * InstallationGuidelinesLinux
     6 * InstallationGuidelinesMySQL
     7 * PakistanDeploymentCycle
     8 * mod_rewrite: http://web2py.com/AlterEgo/default/show/144
    59
    610=== Add Web2Py user ===
    7 Can run as Webserver, but if you can parition, you generally should:
     11Can run as Webserver, but if you can partition, you generally should:
    812{{{
    913adduser web2py
     
    143147}}}
    144148
     149=== Maintenance Site ===
     150A useful site defintion for maintenance windows: points users at a static page, however access to phpmyadmin can be maintained:
    145151
    146  * mod_rewrite: http://web2py.com/AlterEgo/default/show/144
     152{{{
     153<VirtualHost *:80>
     154  ServerName demo.eden.sahanafoundation.org
     155  ServerAdmin webmaster@sahanafoundation.org
     156  DocumentRoot /var/www
     157
     158  RewriteEngine On
     159  RewriteCond %{REQUEST_URI} !/phpmyadmin(.*)
     160  RewriteRule ^/(.*) /maintenance.html
     161
     162  <Location "/">
     163    Order deny,allow
     164    Allow from all
     165  </Location>
     166
     167  ErrorLog /var/log/apache2/maintenance_error.log
     168  LogLevel warn
     169  CustomLog /var/log/apache2/maintenance_access.log combined
     170</VirtualHost>
     171}}}
     172
     173Enable maintenance:
     174{{{
     175a2ensite maintenance
     176a2dissite eden
     177apachectl restart
     178}}}
     179
     180Restore production:
     181{{{
     182a2ensite maintenance
     183a2dissite eden
     184apachectl restart
     185}}}
    147186
    148187----