Use the "ErrorDocument" switch in your httpd.conf file.

Just add something like this:

ErrorDocument 500 http://www.katahdinsoftware.com/

or you can add plain text to be displayed or any variation of URL that 
you'd like.

Mike


On Wednesday, September 25, 2002, at 02:38  PM, Ian Bicking wrote:

> On Wed, 2002-09-25 at 13:30, Jason Hildebrand wrote:
>> I'm running Webware on a production server to which I am still making
>> software updates. Sometimes it's necessary for me to stop the
>> application server for a few minutes during the update, because I 
>> can't
>> allow any persistent data to change.
>>
>> I'm using Apache with mod_webkit, and I'd like to avoid the user 
>> seeing
>> the 'Internal Server Error' (500) which occurs when mod_webkit can't
>> contact the application server.  If the app server is down, I'd prefer
>> to redirect to a static page which looks like the rest of the website,
>> which says the effect of 'Down for maintenance; try again in a few
>> minutes'.
>>
>> Has anyone done something like this before?  Can this be done from the
>> Apache config (perhaps by detecting error 500?), or do I have to dig
>> into the mod_webkit source?
>
> Well, you could add a quick
>   RewriteEngine On
>   RewriteRule .* /var/www/down-for-maintenance.html
> And reload Apache.
>
>   Ian
>
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Webware-discuss mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/webware-discuss
>



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to