On 5/27/2012 6:42 AM, Miguel Gonzalez wrote:
> The version of Plesk we have doesn't support this so maybe there is any
> easy way to do this. I've thought about setting up a different instance of
> the web server or configure a different web server but maybe I'm missing an
> even simplier way to do this. In fact we only want to send a simple html
> response to the user.
I'm a fan of using:
<VirtualHost *:80>
<IfDefine MAINTENANCE>
RewriteRule .* /path/to/maintenance.html [L]
</IfDefine>
#Existing directives
</VirtualHost>
... then, you only need to restart the server with -DMAINTENANCE to
enable and restart without the define to disable maintenance mode.
--
Daniel Ruggeri
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]