Java Mailing List Archive

http://www.apache-httpd.com/

Home » users.httpd »

RE: [users@httpd] ProxyPass redirects the request

Mohammad Kargar - Indicee

2008-07-21

Replies: Find Java Web Hosting

Author LoginPost Reply

Thank you very much. It seems that
http://www.apachetutor.org/admin/reverseproxies is the one I need to
follow to solve the issue. While I'm doing so, I'd like to ask one more
question:

My original requirement is to implement a maintenance page. In other
words, all I need to do is to display a simple page with a simple
message saying that system is down for maintenance when we have to bring
down the back-end server. Not sure if setting up a reverse proxy for
this purpose is a good idea. Is there any other way to achieve the same
goal?

Thanks,

Mohammad

-----Original Message-----
From: Nick Kew [mailto:nick@(protected)]
Sent: Monday, July 21, 2008 6:47 AM
To: users@(protected)
Subject: Re: [users@(protected)

On Sun, 20 Jul 2008 19:19:07 -0700
"Mohammad Kargar - Indicee" <MohammadK@(protected):

> Does anybody know what I'm missing here?

http://www.apachetutor.org/admin/reverseproxies

> ProxyPass /mytest/ http://www.backend.com/
>
> ProxyPassReverse /mytest/ http://www.backend.com/

That's only part of the story. If (as Joshua suggests)
you've got a javascript redirect, it can be seriously
challenging: you'll need mod_proxy_html's ProxyHTMLExtended
(for script embedded in HTML), or one of the sed-like
filters (mod_sed, mod_substitute, mod_line_edit) if
it's in a separate .js file.

--
Nick Kew

Application Development with Apache - the Apache Modules Book
http://www.apachetutor.org/

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server
Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@(protected)
 "  from the digest: users-digest-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@(protected)
 "  from the digest: users-digest-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 apache-httpd.com - Jax Systems, LLC, U.S.A.