You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Joachim Müller <jo...@wemove.com> on 2004/04/05 12:10:32 UTC

maintenance page in loadbalanced enviroment

Hi All.

I need to setup a maintenance page for the following setup:

- apache + mod_jk
- 2x Tomcat + Jetspeed
- win2k enviroment

I want to be able to turn off the tomcats and leave the
apache running redirecting all requests to an maintenance
page.

Do you have any suggestions?


Thanks in advance and best regards!

joachim


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


Re: maintenance page in loadbalanced enviroment

Posted by Raphaël Luta <ra...@apache.org>.
Le 5 avr. 04, à 13:39, Joachim Müller a écrit :

> thanks Raphaël, but this is not exactly what I want.
>
> I need to be able to shield the application servers from outside 
> requests, so I have enough time to check the applications are running 
> ok, i.e. after an upgrade. It should be possible to manually switch 
> the apache into a state where all requests are send to the maintenance 
> page, considering that there is other content the apache server has to 
> serve.
>
> I tried to use a redirect rule already but with no luck. the redirect 
> rule must be interfering with the mod_jk setup. (maybe it's not the 
> right group to ask, but it is definitely interessting to all jetspeed 
> users... ;-))
>

Definitely not the best forum for this question. If you're willing to 
live with a manual process.
Use a .htaccess in your root directory where for example:
- you deny access to all outside IP addresses
- define a custom 403 Error page stating that you are under maintenance

Something like:

allow from 10. (assuming your internal network is in 10.0.0.0)
deny from all
ErrorDocument 403 /under_maintenance.html

You just have to set or remove your .htaccess to control your 
maintenance behavior.

--
Raphaël Luta - raphael@apache.org
Apache Jetspeed - Enterprise Portal in Java
http://jakarta.apache.org/jetspeed/


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


Re: maintenance page in loadbalanced enviroment

Posted by Joachim Müller <jo...@wemove.com>.
thanks Raphaël, but this is not exactly what I want.

I need to be able to shield the application servers from outside 
requests, so I have enough time to check the applications are running 
ok, i.e. after an upgrade. It should be possible to manually switch the 
apache into a state where all requests are send to the maintenance page, 
considering that there is other content the apache server has to serve.

I tried to use a redirect rule already but with no luck. the redirect 
rule must be interfering with the mod_jk setup. (maybe it's not the 
right group to ask, but it is definitely interessting to all jetspeed 
users... ;-))

rgds,

joachim


Raphaël Luta wrote:

> 
> Le 5 avr. 04, à 12:10, Joachim Müller a écrit :
> 
>> Hi All.
>>
>> I need to setup a maintenance page for the following setup:
>>
>> - apache + mod_jk
>> - 2x Tomcat + Jetspeed
>> - win2k enviroment
>>
>> I want to be able to turn off the tomcats and leave the
>> apache running redirecting all requests to an maintenance
>> page.
>>
>> Do you have any suggestions?
>>
> 
> If this is your only application on this server, simply setup a custom 
> 500 error page in
> your httpd config.
> 
> -- 
> Raphaël Luta - raphael@apache.org
> Apache Jetspeed - Enterprise Portal in Java
> http://jakarta.apache.org/jetspeed/
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
> 
> 

-- 

joachim müller
joachim@wemove.com . tel +49-69-759003-11

wemove digital solutions
contact@wemove.com  . tel +49-69-759003-0 .  fax +49-69-759003-22
eschersheimer landstrasse 5-7
60322 frankfurt . germany
http://www.wemove.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


Re: maintenance page in loadbalanced enviroment

Posted by Raphaël Luta <ra...@apache.org>.
Le 5 avr. 04, à 12:10, Joachim Müller a écrit :

> Hi All.
>
> I need to setup a maintenance page for the following setup:
>
> - apache + mod_jk
> - 2x Tomcat + Jetspeed
> - win2k enviroment
>
> I want to be able to turn off the tomcats and leave the
> apache running redirecting all requests to an maintenance
> page.
>
> Do you have any suggestions?
>

If this is your only application on this server, simply setup a custom 
500 error page in
your httpd config.

--
Raphaël Luta - raphael@apache.org
Apache Jetspeed - Enterprise Portal in Java
http://jakarta.apache.org/jetspeed/


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


Re: maintenance page in loadbalanced enviroment

Posted by Joachim Müller <jo...@wemove.com>.
hi madhan.

my maintenance page should be displayed everytime I do maintenance work 
on the application servers (tomcat). I just want a possibility to 
capture all requests to the page and redirect them to a 'maintenance' 
page using apache capabilities.

regards, joachim




G. Madhan Dennis wrote:
> Hi,
> 
> What do you mean by a maintenance page? If you mean the configuration of
> the setup, then I don’t think it will be easy. But then all you have to
> do is configure mod_jk2 in apache httpd.conf, setup a
> workers2.properties file and enable the session replication and
> clustering in tomcat 5.
> 
> Regards,
> Madhan
> 
> -----Original Message-----
> From: Joachim Müller [mailto:joachim@wemove.com] 
> Sent: Monday, April 05, 2004 3:41 PM
> To: Jetspeed Users List
> Subject: maintenance page in loadbalanced enviroment
> 
> 
> Hi All.
> 
> I need to setup a maintenance page for the following setup:
> 
> - apache + mod_jk
> - 2x Tomcat + Jetspeed
> - win2k enviroment
> 
> I want to be able to turn off the tomcats and leave the
> apache running redirecting all requests to an maintenance
> page.
> 
> Do you have any suggestions?
> 
> 
> Thanks in advance and best regards!
> 
> joachim
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
> 
> 

-- 

joachim müller
joachim@wemove.com . tel +49-69-759003-11

wemove digital solutions
contact@wemove.com  . tel +49-69-759003-0 .  fax +49-69-759003-22
eschersheimer landstrasse 5-7
60322 frankfurt . germany
http://www.wemove.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


RE: maintenance page in loadbalanced enviroment

Posted by "G. Madhan Dennis" <ma...@isoftel.com>.
Hi,

What do you mean by a maintenance page? If you mean the configuration of
the setup, then I don’t think it will be easy. But then all you have to
do is configure mod_jk2 in apache httpd.conf, setup a
workers2.properties file and enable the session replication and
clustering in tomcat 5.

Regards,
Madhan

-----Original Message-----
From: Joachim Müller [mailto:joachim@wemove.com] 
Sent: Monday, April 05, 2004 3:41 PM
To: Jetspeed Users List
Subject: maintenance page in loadbalanced enviroment


Hi All.

I need to setup a maintenance page for the following setup:

- apache + mod_jk
- 2x Tomcat + Jetspeed
- win2k enviroment

I want to be able to turn off the tomcats and leave the
apache running redirecting all requests to an maintenance
page.

Do you have any suggestions?


Thanks in advance and best regards!

joachim


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org