Published on Stefano Sasso (http://stefano.dscnet.org)
Apache in manutenzione
By stefano
Data di creazione 08/12/2007 - 18:23

ecco un modo user-friendly per fare si che il server non sia accessibile se ci stiamo lavorando:

RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}/maintenance.html -f
RewriteCond %{SCRIPT_FILENAME} !maintenance.html
RewriteRule ^.*$ /maintenance.html [R,L]

se esiste il file maintenance.html nella document root, allora tutte le richieste verranno indirizzate li.

Creative Commons License Linux Kernel Debian GNU/Linux Apache Web Server Drupal CMS gnustile.net

Source URL (retrieved on 05/02/2012 - 14:43): http://stefano.dscnet.org/a/apache_manutenzione