Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to Redirect request to Static Maintenance page

309 views
Skip to first unread message

Milind N

unread,
Nov 11, 2009, 8:05:35 AM11/11/09
to
Hi All,

I am not regular user of IBM Http server, We have IBM Http server acting as a front to our application running on WAS.

For some maintenance activities on WAS we want to redirect user to a maintenance page by the time we do activities on our server. At the time of our activity server may be started or may be stopped. So not really wants to bind it with server status.

I really appriciate any help and guidance on this.

Regards,
Milind N

Sunit Patke

unread,
Nov 11, 2009, 1:20:11 PM11/11/09
to
Create a different httpd.conf file configuring the HTTP server to always
point to the maintenance page.
At the start of the window, start the HTTP server with this conf file
At the end of the window start with the normal httpd.conf

- Sunit

"Milind N" <milin...@yahoo.co.in> wrote in message
news:823052086.1257944766434.JavaMail.wassrvr@ltsgwas010...

Rejoice

unread,
Nov 15, 2009, 10:21:06 PM11/15/09
to
It would be good to write a re-write rule in the existing httpd.conf
file and recycle the ihs

regards
Rejoice


On Nov 11, 1:20 pm, "Sunit Patke" <supa...@nospam.com> wrote:
> Create a different httpd.conf file configuring the HTTP server to always
> point to the maintenance page.
> At the start of the window, start the HTTP server with this conf file
> At the end of the window start with the normal httpd.conf
>
> - Sunit
>

> "Milind N" <milind_...@yahoo.co.in> wrote in message


>
> news:823052086.1257944766434.JavaMail.wassrvr@ltsgwas010...
>
>
>
> > Hi All,
>
> > I am not regular user of IBM Http server, We have IBM Http server acting
> > as a front to our application running on WAS.
>
> > For some maintenance activities on WAS we want to redirect user to a
> > maintenance page by the time we do activities on our server. At the time
> > of our activity server may be started or may be stopped. So not really
> > wants to bind it with server status.
>
> > I really appriciate any help and guidance on this.
>
> > Regards,

> > Milind N- Hide quoted text -
>
> - Show quoted text -

Eric Covener

unread,
Nov 18, 2009, 5:00:31 PM11/18/09
to
Use mod_rewrite to check for the existence of a file in your filesystem, and redirect to a URL not covered by your plugin-cfg.xml context routes.

In each vhost:

RewriteEngine on
RewriteCond /opt/IHS/htdocs/maintenance.html -f
RewrieRule .* /maintenance.html [R]

If you have a /* context route defined, you may need to tell IHS to listen on a high port and instead proxy to to that instance. This is required to prevent going into the ebSphere Plugin

asifk...@gmail.com

unread,
Nov 23, 2015, 2:57:12 PM11/23/15
to
First time I am implmenting maintenance page on IBM HTTP server,
I have implemented in same manner what you suggested. But its not working. It's still going to my application page.
Below code written in httpd.conf file:
LoadModule rewrite_module modules/mod_rewrite.so
RewriteEngine on
RewriteCond %{DocumentRoot}/serverdown.txt -f
RewriteRule ^(.*)$ /maintenance.html [PT]

I have created maintenance.html and serverdown.txt in DocumentRoot folder.

want to know few thing:
Will this work with http and https both request?
Do I need to keep this code on any specific place in httpd.conf?

Please help, what I am missing.

Thanks.

Regards,
-Asif
0 new messages