This is maybe not 100% an eZ Publish issue, but I'd like to know if some of you came up with an easy to use mechanism to put a site offline for some time with some 'under maintenance' kind of screen.
I know this can be done manually by hacking the .htaccess file or overriding the index.php, but I'm looking ofr a better solution where customers coming through a bookmark to any of the pages would also get the maintenance screen. How did you deal with this issue?
What we do is redirect the apache "Access Denied" page to our own internal page with a maintenance page and then block access to all but our own ip. These are the relevant lines in our virtual host file:
# --construction, uncomment this:
# ErrorDocument 403 http://ezpublish/construction/index.html
<Directory /var/www/ezpublish>
Options FollowSymLinks -Indexes ExecCGI
AllowOverride None
# --construction, uncomment this:
# Order deny,allow
# Deny from all
# Allow from 10.0.0.1
# --live, uncomment this:
Order allow,deny
Allow from all </Directory>
Thanks for your suggestions. I think I'm going to put something together some day with an easy-to-use checkbox in the admin interface, and will post it as an extension on the contribution area.