httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Axel-St├ęphane SMORGRAV <Axel-Stephane.SMORG...@europe.adp.com>
Subject RE: [users@httpd] https to http proxy with Apache
Date Mon, 15 May 2006 06:57:14 GMT
In that case my guess is that it is the application that generates erroneous redirect URLs.
Had tomcat generated the redirect URLs, theyr would have contained the port number also, e.g.
http://andy:8012/

Keep your configuration the way it is (ProxyPreserveHost Off) and add the following to the
configuration:

ProxyPassReverse /mywebapp/ http://andy/

or

ProxyPassReverse http://andy/ 
(if within a Location)

-ascs


-----Original Message-----
From: Bo Najdrovsky [mailto:httpd@najdrovsky.com] 
Sent: Friday, May 12, 2006 10:18 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] https to http proxy with Apache

Brian Rectanus wrote:
>
> It would help to post the tomcat-workers.conf, but I'll take a guess 
> and assume this is what it looks like:
>
> LB1  andy:8012
> LB2  andy:8022
> LB3  andy:8032
> LB3  andy:8042
> ALL  andy:8012|andy:8022|andy:8032|andy:8042

Yep, that's exactly what it looks like.


>
> Does it make a difference with ProxyPreserveHost Off?  My thought is 
> that the backend server is seeing the original Host header which is 
> www.foo.bar and basing the Location header off that instead of the
> andy:* Host header.

Well, if set ProxyPreserveHost to Off, then the URL's actually change from the original host
to http://andy/webapp  (i.e. the back end server) Notice that  they still lose the https and
change to http.


>
> Anyhow, just a shot in the dark.
>
> -B
>
> ---------------------------------------------------------------------
> 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@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message