# Apache setting to temporarily force a blackout of all content # (c) 2009, François Revol, revol@free.fr # Licence: MIT # how to install: # just copy this file as /etc/apache2/sites-enabled/999999-hadopi-black-out # and restart apache with: # apache2ctl restart # how to remove: # just remove /etc/apache2/sites-enabled/999999-hadopi-black-out # and restart apache with: # apache2ctl restart # we use 503 Service Unavailable # *not* 30x redirections, because we are not assuming the content of the # website, and automated systems might wrongly send sensitive data to the # redirected server, which is definitely not the intent. # set error response # inline html; do *not* redirect url, it would not give the expected 503 error but just 302 (moved)! # we can't either use a local file, if we redirect /. It's simpler this way as a single file anyway :-) ErrorDocument 503 "Black-out pour cause HADOPI
black-out
" # and give 503 error on everything. Redirect 503 / # That's all folks!