Changes between Version 30 and Version 31 of InstallationGuidelinesApacheModWSGI
- Timestamp:
- 09/08/10 12:17:52 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
InstallationGuidelinesApacheModWSGI
v30 v31 2 2 This is what is used to host the Demo site & Trac 3 3 4 Also see InstallationGuidelinesLinux 4 Also see: 5 * InstallationGuidelinesLinux 6 * InstallationGuidelinesMySQL 7 * PakistanDeploymentCycle 8 * mod_rewrite: http://web2py.com/AlterEgo/default/show/144 5 9 6 10 === Add Web2Py user === 7 Can run as Webserver, but if you can par ition, you generally should:11 Can run as Webserver, but if you can partition, you generally should: 8 12 {{{ 9 13 adduser web2py … … 143 147 }}} 144 148 149 === Maintenance Site === 150 A useful site defintion for maintenance windows: points users at a static page, however access to phpmyadmin can be maintained: 145 151 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 173 Enable maintenance: 174 {{{ 175 a2ensite maintenance 176 a2dissite eden 177 apachectl restart 178 }}} 179 180 Restore production: 181 {{{ 182 a2ensite maintenance 183 a2dissite eden 184 apachectl restart 185 }}} 147 186 148 187 ----