Chuck,
I don't think you can do this without restarting the server but you can swap out the httpd.conf file for one that maps all requests to a specific page and restart the server. This is a graceful restart and it will allow all active requests to complete. Once your maintenance window is over, you can switch the file back and issue another restart. I've done this plenty of times when we've had system maintenace that would break the site.
Anyway, all you need to do to map every page request to a specific file is this:
AliasMatch .* /path/to/maint/page/maint.html
".*" is the regular expresion for "anything".
Make sure you have a directory container defined for "/path/to/maint/page"
Matt
________________________________________
From: web400-bounces@xxxxxxxxxxxx [web400-bounces@xxxxxxxxxxxx] On Behalf Of Chuck Wannall [cwannall@xxxxxxxxxxx]
Sent: Tuesday, September 08, 2009 6:34 PM
To: 'Web Enabling the AS400 / iSeries'
Subject: [WEB400] Apache setup question
I want to make my Apache server unavailable for a short period each day
while save files are being created.
I would like to have the system display a brief 'system unavailable - try
again soon' message page.
I want to be able to turn this on and off at the appropriate times. If
necessary, I could accept hard coding a time range into the config file.
This needs to work on all input to the server, regardless of page type
(fixed, cgi).
I do not want to have to start/stop the web server if at all possible.
Any suggestions on where to look or what to change?
Thanks in advance,
Chuck Wannall
California Institute of the Arts
--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at
http://archive.midrange.com/web400.
As an Amazon Associate we earn from qualifying purchases.