24 Aug '04 15:08>
I tend to always end up playing around midnight EST, so hit the offline for maintenance an awful lot.
It bothers me that it's structured such that reload doesn't work, so thought I'd offer the apache configuration I use for my offline pages when I need them. In short, when it's activated, any request just gets locally mapped to the offline page, with an extra tweak to allow the offline accessories (images, stylesheets, whatever) to load just fine.
Here it is:
<IfDefine OFFLINE>
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/offline/
RewriteRule .* /offline/index.html [L]
</IfDefine>
To translate:
0) if apache is started with -DOFFLINE declaration, then ....
1) turn the mod_rewrite engine on
2) anything with a URI that begins /offline/ gets let through
3) anything else gets rewritten to the offline/index.html page
It bothers me that it's structured such that reload doesn't work, so thought I'd offer the apache configuration I use for my offline pages when I need them. In short, when it's activated, any request just gets locally mapped to the offline page, with an extra tweak to allow the offline accessories (images, stylesheets, whatever) to load just fine.
Here it is:
<IfDefine OFFLINE>
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/offline/
RewriteRule .* /offline/index.html [L]
</IfDefine>
To translate:
0) if apache is started with -DOFFLINE declaration, then ....
1) turn the mod_rewrite engine on
2) anything with a URI that begins /offline/ gets let through
3) anything else gets rewritten to the offline/index.html page