Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Users

ProxyPreserveHost On

 

 

Apache users RSS feed   Index | Next | Previous | View Threaded


lain80 at gmail

Apr 22, 2010, 5:27 AM

Post #1 of 11 (9277 views)
Permalink
ProxyPreserveHost On

Hi experts,

this is my scenario: https://miosito.com --> mod_proxy -->
http://10.19.72.100:8080/ (tomcat)

httpd conf:

NameVirtualHost mysite.com:443
<VirtualHost mysite.com:443>
ProxyPreserveHost On
ProxyRequests off
ProxyPass / http://10.19.72.100:8080/
ProxyHTMLURLMap http://10.19.72.100:8080 /
<Location />
ProxyPassReverse http://10.19.72.100:8080/
ProxyHTMLEnable On
ProxyHTMLURLMap / /
RequestHeader unset Accept-Encoding
</Location>
[SSL directive...]

When I digit
https://mysite.com it becomes http://mysite.com because I think that hte
proxypass is http...
It's wrong, I want that the URL will be https://mysite.com but I can use the
ProxyPreserveHost (one backend application need to this set).

any idea?
many thanks, as usual.

Cheers,
Mauri


lain80 at gmail

Apr 23, 2010, 6:51 AM

Post #2 of 11 (9192 views)
Permalink
Re: ProxyPreserveHost On [In reply to]

Someone can help me?

cheers,
Mauri


2010/4/22 Mauri <lain80 [at] gmail>

> Hi experts,
>
> this is my scenario: https://miosito.com --> mod_proxy -->
> http://10.19.72.100:8080/ (tomcat)
>
> httpd conf:
>
> NameVirtualHost mysite.com:443
> <VirtualHost mysite.com:443>
> ProxyPreserveHost On
> ProxyRequests off
> ProxyPass / http://10.19.72.100:8080/
> ProxyHTMLURLMap http://10.19.72.100:8080 /
> <Location />
> ProxyPassReverse http://10.19.72.100:8080/
> ProxyHTMLEnable On
> ProxyHTMLURLMap / /
> RequestHeader unset Accept-Encoding
> </Location>
> [SSL directive...]
>
> When I digit
> https://mysite.com it becomes http://mysite.com because I think that hte
> proxypass is http...
> It's wrong, I want that the URL will be https://mysite.com but I can use
> the ProxyPreserveHost (one backend application need to this set).
>
> any idea?
> many thanks, as usual.
>
> Cheers,
> Mauri


gbcyoyo at gmail

Apr 23, 2010, 7:06 AM

Post #3 of 11 (9187 views)
Permalink
Re: Re: ProxyPreserveHost On [In reply to]

I had the exact same problem....
Instead of putting those lines in httpd.conf, try putting them in ssl.conf
I am running version 2.0.54, and ssl.conf directives worked for me.

regards,

On Fri, Apr 23, 2010 at 9:51 AM, Mauri <lain80 [at] gmail> wrote:
>
> Someone can help me?
>
> cheers,
> Mauri
>
>
> 2010/4/22 Mauri <lain80 [at] gmail>
>>
>> Hi experts,
>>
>> this is my scenario:  https://miosito.com --> mod_proxy -->
>> http://10.19.72.100:8080/ (tomcat)
>>
>> httpd conf:
>>
>> NameVirtualHost mysite.com:443
>> <VirtualHost mysite.com:443>
>> ProxyPreserveHost On
>> ProxyRequests off
>> ProxyPass / http://10.19.72.100:8080/
>> ProxyHTMLURLMap http://10.19.72.100:8080 /
>> <Location />
>>         ProxyPassReverse http://10.19.72.100:8080/
>>         ProxyHTMLEnable On
>>         ProxyHTMLURLMap  /      /
>>         RequestHeader    unset  Accept-Encoding
>> </Location>
>> [SSL directive...]
>>
>> When I digit
>> https://mysite.com it becomes http://mysite.com because I think that hte
>> proxypass is http...
>> It's wrong, I want that the URL will be https://mysite.com but I can use
>> the ProxyPreserveHost (one backend application need to this set).
>>
>> any idea?
>> many thanks, as usual.
>>
>> Cheers,
>> Mauri
>

---------------------------------------------------------------------
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 [at] httpd
" from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


lain80 at gmail

Apr 23, 2010, 7:12 AM

Post #4 of 11 (9189 views)
Permalink
Re: Re: ProxyPreserveHost On [In reply to]

it's in ssl.conf, just

# cat /etc/httpd/conf.d/ssl.conf
[...]
ProxyPreserveHost On
ProxyRequests off
ProxyPass / http://10.19.72.100:8080/
ProxyHTMLURLMap http://10.19.72.100:8080 /
<Location />
ProxyPassReverse http://10.19.72.100:8080/
ProxyHTMLEnable On
ProxyHTMLURLMap / /
RequestHeader unset Accept-Encoding
</Location>
[...]

but It don't work in my httpd-2.2.3-31. The error is below in my previous
mail.

Cheers,
Mauri


2010/4/23 GB GB <gbcyoyo [at] gmail>

> I had the exact same problem....
> Instead of putting those lines in httpd.conf, try putting them in ssl.conf
> I am running version 2.0.54, and ssl.conf directives worked for me.
>
> regards,
>
> On Fri, Apr 23, 2010 at 9:51 AM, Mauri <lain80 [at] gmail> wrote:
> >
> > Someone can help me?
> >
> > cheers,
> > Mauri
> >
> >
> > 2010/4/22 Mauri <lain80 [at] gmail>
> >>
> >> Hi experts,
> >>
> >> this is my scenario: https://miosito.com --> mod_proxy -->
> >> http://10.19.72.100:8080/ (tomcat)
> >>
> >> httpd conf:
> >>
> >> NameVirtualHost mysite.com:443
> >> <VirtualHost mysite.com:443>
> >> ProxyPreserveHost On
> >> ProxyRequests off
> >> ProxyPass / http://10.19.72.100:8080/
> >> ProxyHTMLURLMap http://10.19.72.100:8080 /
> >> <Location />
> >> ProxyPassReverse http://10.19.72.100:8080/
> >> ProxyHTMLEnable On
> >> ProxyHTMLURLMap / /
> >> RequestHeader unset Accept-Encoding
> >> </Location>
> >> [SSL directive...]
> >>
> >> When I digit
> >> https://mysite.com it becomes http://mysite.com because I think that
> hte
> >> proxypass is http...
> >> It's wrong, I want that the URL will be https://mysite.com but I can
> use
> >> the ProxyPreserveHost (one backend application need to this set).
> >>
> >> any idea?
> >> many thanks, as usual.
> >>
> >> Cheers,
> >> Mauri
> >
>
> ---------------------------------------------------------------------
> 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 [at] httpd
> " from the digest: users-digest-unsubscribe [at] httpd
> For additional commands, e-mail: users-help [at] httpd
>
>


lain80 at gmail

Apr 26, 2010, 12:50 AM

Post #5 of 11 (9346 views)
Permalink
Re: Re: ProxyPreserveHost On [In reply to]

someone can help me? many thanks as usual.

for recap this is my problem:

When I digit https://mysite.com it becomes http://mysite.com because I think
that the proxypass is http.
It's wrong, I want that the URL will be https://mysite.com but I can use the
ProxyPreserveHost (one backend application need to this set).

this is my ssl.conf:

NameVirtualHost mysite.com:443
<VirtualHost mysite.com:443>
ProxyPreserveHost On
ProxyRequests off
ProxyPass / http://10.19.72.100:8080/
ProxyHTMLURLMap http://10.19.72.100:8080 /
<Location />
ProxyPassReverse http://10.19.72.100:8080/
ProxyHTMLEnable On
ProxyHTMLURLMap / /
RequestHeader unset Accept-Encoding
</Location>
[SSL directive...]


2010/4/23 Mauri <lain80 [at] gmail>

>
> it's in ssl.conf, just
>
> # cat /etc/httpd/conf.d/ssl.conf
> [...]
>
> ProxyPreserveHost On
> ProxyRequests off
> ProxyPass / http://10.19.72.100:8080/
> ProxyHTMLURLMap http://10.19.72.100:8080 /
> <Location />
> ProxyPassReverse http://10.19.72.100:8080/
> ProxyHTMLEnable On
> ProxyHTMLURLMap / /
> RequestHeader unset Accept-Encoding
> </Location>
> [...]
>
> but It don't work in my httpd-2.2.3-31. The error is below in my previous
> mail.
>
> Cheers,
> Mauri
>
>
> 2010/4/23 GB GB <gbcyoyo [at] gmail>
>
> I had the exact same problem....
>> Instead of putting those lines in httpd.conf, try putting them in ssl.conf
>> I am running version 2.0.54, and ssl.conf directives worked for me.
>>
>> regards,
>>
>> On Fri, Apr 23, 2010 at 9:51 AM, Mauri <lain80 [at] gmail> wrote:
>> >
>> > Someone can help me?
>> >
>> > cheers,
>> > Mauri
>> >
>> >
>> > 2010/4/22 Mauri <lain80 [at] gmail>
>> >>
>> >> Hi experts,
>> >>
>> >> this is my scenario: https://miosito.com --> mod_proxy -->
>> >> http://10.19.72.100:8080/ (tomcat)
>> >>
>> >> httpd conf:
>> >>
>> >> NameVirtualHost mysite.com:443
>> >> <VirtualHost mysite.com:443>
>> >> ProxyPreserveHost On
>> >> ProxyRequests off
>> >> ProxyPass / http://10.19.72.100:8080/
>> >> ProxyHTMLURLMap http://10.19.72.100:8080 /
>> >> <Location />
>> >> ProxyPassReverse http://10.19.72.100:8080/
>> >> ProxyHTMLEnable On
>> >> ProxyHTMLURLMap / /
>> >> RequestHeader unset Accept-Encoding
>> >> </Location>
>> >> [SSL directive...]
>> >>
>> >> When I digit
>> >> https://mysite.com it becomes http://mysite.com because I think that
>> hte
>> >> proxypass is http...
>> >> It's wrong, I want that the URL will be https://mysite.com but I can
>> use
>> >> the ProxyPreserveHost (one backend application need to this set).
>> >>
>> >> any idea?
>> >> many thanks, as usual.
>> >>
>> >> Cheers,
>> >> Mauri
>> >
>>
>> ---------------------------------------------------------------------
>> 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 [at] httpd
>> " from the digest: users-digest-unsubscribe [at] httpd
>> For additional commands, e-mail: users-help [at] httpd
>>
>>
>


lain80 at gmail

Apr 26, 2010, 6:11 AM

Post #6 of 11 (9174 views)
Permalink
Re: ProxyPreserveHost On [In reply to]

One more bit.

Why I don't get a secure connection on the browser? I type
https://mysite.com and get redirected to http://mysite.com

In my scenario, for the backend application, I have to use in the ssl.conf
the set "ProxyPreserveHost On"

NameVirtualHost mysite.com:443
<VirtualHost mysite.com:443>
ServerName mysite.com
ProxyPreserveHost On
ProxyRequests off
ProxyPass / http://10.19.72.127:8080/
ProxyHTMLURLMap http://10.19.72.127:8080 /
<Location />
ProxyPassReverse http://10.19.72.127:8080/
ProxyHTMLEnable On
ProxyHTMLURLMap / /
RequestHeader unset Accept-Encoding
</Location>

Many thanks for any suggest.
Cheers,
Mauri





2010/4/22 Mauri <lain80 [at] gmail>

> Hi experts,
>
> this is my scenario: https://miosito.com --> mod_proxy -->
> http://10.19.72.100:8080/ (tomcat)
>
> httpd conf:
>
> NameVirtualHost mysite.com:443
> <VirtualHost mysite.com:443>
> ProxyPreserveHost On
> ProxyRequests off
> ProxyPass / http://10.19.72.100:8080/
> ProxyHTMLURLMap http://10.19.72.100:8080 /
> <Location />
> ProxyPassReverse http://10.19.72.100:8080/
> ProxyHTMLEnable On
> ProxyHTMLURLMap / /
> RequestHeader unset Accept-Encoding
> </Location>
> [SSL directive...]
>
> When I digit
> https://mysite.com it becomes http://mysite.com because I think that hte
> proxypass is http...
> It's wrong, I want that the URL will be https://mysite.com but I can use
> the ProxyPreserveHost (one backend application need to this set).
>
> any idea?
> many thanks, as usual.
>
> Cheers,
> Mauri


tevans.uk at googlemail

Apr 26, 2010, 6:49 AM

Post #7 of 11 (9182 views)
Permalink
Re: Re: ProxyPreserveHost On [In reply to]

On Mon, Apr 26, 2010 at 2:11 PM, Mauri <lain80 [at] gmail> wrote:
>
> One more bit.

Really? Sure it's not just the same things being repeated over and
over again, without any testing or actual explanation of the problem?

>
> Why I don't get a secure connection on the browser? I type
> https://mysite.com and get redirected to http://mysite.com

Because your proxied application tells it to do so. The only apache
directive that affects redirects from proxies is the ProxyPassReverse
directive. Basically it says 'if you see a redirect like
'${A}/blah/blah/', change it to ${B}/blah/blah/'.

Your ProxyPassReverse says to replace http://10.19.72.127:8080/ with
https://mysite.com/ .

If you think that apache is somehow doing this redirect, please show
some evidence, eg browser header logs from livehttpheaders, or a
complete tcpdump on the proxy showing http traffic from the client to
the proxy, from the proxy to the backend, from the backend back to the
proxy and from the proxy back to the client.

Tom

---------------------------------------------------------------------
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 [at] httpd
" from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


lain80 at gmail

Apr 26, 2010, 7:15 AM

Post #8 of 11 (9193 views)
Permalink
Re: Re: ProxyPreserveHost On [In reply to]

Thanks tom for the reply.

about your request. This is the first call... others log is in
http://mysite.com/bla/bla/bla

I want that only http header will be https://mysite.com/bla/bla/bla and not
http://mysite.com/bla/bla/bla

many thanks.

Cheers,
Mauri

----------------------------------------------------------
https://mysite.com/arsys/

GET /arsys/ HTTP/1.1
Host: mysite.com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; it; rv:1.9.2) Gecko/20100115
Firefox/3.6
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: it-it,it;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Cookie: IP-Restriction-GUID="84e039146ac96dec:-54437c22:1283941439a:-7fd1"

HTTP/1.1 302 Moved Temporarily
Date: Mon, 26 Apr 2010 14:02:09 GMT
Server: Apache-Coyote/1.1
Location: http://mysite.com/arsys/shared/login.jsp?/arsys/
Content-Length: 0
Set-Cookie: JSESSIONID=B1A3E37C4BA0882B288AB46596E18BA4; Path=/arsys
Set-Cookie: q=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
Set-Cookie: LB-COOKIE=rd30o00000000000000000000ffff0a134864o8080; path=/
Connection: close
Content-Type: text/plain; charset=UTF-8
----------------------------------------------------------


2010/4/26 Tom Evans <tevans.uk [at] googlemail>

> On Mon, Apr 26, 2010 at 2:11 PM, Mauri <lain80 [at] gmail> wrote:
> >
> > One more bit.
>
> Really? Sure it's not just the same things being repeated over and
> over again, without any testing or actual explanation of the problem?
>
> >
> > Why I don't get a secure connection on the browser? I type
> > https://mysite.com and get redirected to http://mysite.com
>
> Because your proxied application tells it to do so. The only apache
> directive that affects redirects from proxies is the ProxyPassReverse
> directive. Basically it says 'if you see a redirect like
> '${A}/blah/blah/', change it to ${B}/blah/blah/'.
>
> Your ProxyPassReverse says to replace http://10.19.72.127:8080/ with
> https://mysite.com/ .
>
> If you think that apache is somehow doing this redirect, please show
> some evidence, eg browser header logs from livehttpheaders, or a
> complete tcpdump on the proxy showing http traffic from the client to
> the proxy, from the proxy to the backend, from the backend back to the
> proxy and from the proxy back to the client.
>
> Tom
>
> ---------------------------------------------------------------------
> 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 [at] httpd
> " from the digest: users-digest-unsubscribe [at] httpd
> For additional commands, e-mail: users-help [at] httpd
>
>


jonas_lists at frukt

Apr 26, 2010, 7:38 AM

Post #9 of 11 (9177 views)
Permalink
Re: Re: ProxyPreserveHost On [In reply to]

It would be nice if you answer some preliminary questions before asking
for clarification about my answer below:

Have you read the documentation for the directives you are trying to use?

Are there some specific parts of the documentation that are unclear or
difficult?

Now on to my answer...

On 2010-04-26 16:15, Mauri wrote:

> <Location />
> ProxyPassReverse http://10.19.72.127:8080/

Your ProxyPassReverse directive tells the proxy to rewrite
"http://10.19.72.127:8080/" in some headers.

> HTTP/1.1 302 Moved Temporarily
> Location: http://mysite.com/arsys/shared/login.jsp?/arsys/

The location header URL starts with "http://mysite.com/".

Is that an incorrectly rewritten URL, or does the backend use
"http://mysite.com/" (which does not match "http://10.19.72.127:8080/")
in headers?

It would be good to know what the the corresponding result would be when
you do the request directly to the backend.

What's the complete answer for
<http://10.19.72.127:8080/arsys/>
?

/Jonas

--
Jonas Eckerman
Fruktträdet & Förbundet Sveriges Dövblinda
http://www.fsdb.org/
http://www.frukt.org/
http://whatever.frukt.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 [at] httpd
" from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


tevans.uk at googlemail

Apr 26, 2010, 7:44 AM

Post #10 of 11 (9170 views)
Permalink
Re: Re: ProxyPreserveHost On [In reply to]

On Mon, Apr 26, 2010 at 3:15 PM, Mauri <lain80 [at] gmail> wrote:
>
> Thanks tom for the reply.
>
> about your request. This is the first call... others log is in
> http://mysite.com/bla/bla/bla
>
> I want that only http header will be https://mysite.com/bla/bla/bla and not
> http://mysite.com/bla/bla/bla
>
> many thanks.
>
> Cheers,
> Mauri
>
> ----------------------------------------------------------
> https://mysite.com/arsys/
>
> GET /arsys/ HTTP/1.1
> Host: mysite.com
> User-Agent: Mozilla/5.0 (X11; U; Linux i686; it; rv:1.9.2) Gecko/20100115
> Firefox/3.6
> Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
> Accept-Language: it-it,it;q=0.8,en-us;q=0.5,en;q=0.3
> Accept-Encoding: gzip,deflate
> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> Keep-Alive: 115
> Connection: keep-alive
> Cookie: IP-Restriction-GUID="84e039146ac96dec:-54437c22:1283941439a:-7fd1"
>
> HTTP/1.1 302 Moved Temporarily
> Date: Mon, 26 Apr 2010 14:02:09 GMT
> Server: Apache-Coyote/1.1
> Location: http://mysite.com/arsys/shared/login.jsp?/arsys/

^^^^^^^^^^

Apache did not generate that redirect, your backend application did.
Nothing apache can do about your backend being daft. Get your backend
to generate relative urls, or to use the incoming host header to
generate absolute urls, or get it to generate absolute using the same
name you address it by in the config.

I'll explain again what ProxyPassReverse does, with this configuration
<Location />
ProxyPass http://10.19.72.127:8080/
ProxyPassReverse http://10.19.72.127:8080/
</Location>

Your backend generates a 302 response, with a header
Location: http://10.19.72.127:8080/foo/bar/

The proxy sees this and replaces the proxied URL
(http://10.19.72.127:8080/) with the location specified in apache (/).
Location: /foo/bar/

It then generates a canonical URL with the requested host name /
server name (depending on the value of UseCanonicalName), which is
what the client sees:
Location: https://mysite.com/foo/bar/

Your backend is generating this header:
Location: http://mysite.com/arsys/shared/login.jsp?/arsys/

This doesn't match the ProxyPassReverse, so doesn't get rewritten.

I can't be any clearer than this. I hope this helps you.

Tom

---------------------------------------------------------------------
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 [at] httpd
" from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


lain80 at gmail

Apr 26, 2010, 10:35 AM

Post #11 of 11 (9167 views)
Permalink
Re: Re: ProxyPreserveHost On [In reply to]

Many thanks to Jonas and Tom for the suggest and support.

Now I've understood the problem.

I have just used the ProxyPassReverse but in this scenario it was different.
The location that proxy traps was http://mysite.com and not
http://10.19.72.127:8080/. This behavior was caused by the use of
ProxyPreserveHost On, I think...

Many thanks to all.

Cheers,
Mauri


2010/4/26 Tom Evans <tevans.uk [at] googlemail>

> On Mon, Apr 26, 2010 at 3:15 PM, Mauri <lain80 [at] gmail> wrote:
> >
> > Thanks tom for the reply.
> >
> > about your request. This is the first call... others log is in
> > http://mysite.com/bla/bla/bla
> >
> > I want that only http header will be https://mysite.com/bla/bla/bla and
> not
> > http://mysite.com/bla/bla/bla
> >
> > many thanks.
> >
> > Cheers,
> > Mauri
> >
> > ----------------------------------------------------------
> > https://mysite.com/arsys/
> >
> > GET /arsys/ HTTP/1.1
> > Host: mysite.com
> > User-Agent: Mozilla/5.0 (X11; U; Linux i686; it; rv:1.9.2) Gecko/20100115
> > Firefox/3.6
> > Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
> > Accept-Language: it-it,it;q=0.8,en-us;q=0.5,en;q=0.3
> > Accept-Encoding: gzip,deflate
> > Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> > Keep-Alive: 115
> > Connection: keep-alive
> > Cookie:
> IP-Restriction-GUID="84e039146ac96dec:-54437c22:1283941439a:-7fd1"
> >
> > HTTP/1.1 302 Moved Temporarily
> > Date: Mon, 26 Apr 2010 14:02:09 GMT
> > Server: Apache-Coyote/1.1
> > Location: http://mysite.com/arsys/shared/login.jsp?/arsys/
>
> ^^^^^^^^^^
>
> Apache did not generate that redirect, your backend application did.
> Nothing apache can do about your backend being daft. Get your backend
> to generate relative urls, or to use the incoming host header to
> generate absolute urls, or get it to generate absolute using the same
> name you address it by in the config.
>
> I'll explain again what ProxyPassReverse does, with this configuration
> <Location />
> ProxyPass http://10.19.72.127:8080/
> ProxyPassReverse http://10.19.72.127:8080/
> </Location>
>
> Your backend generates a 302 response, with a header
> Location: http://10.19.72.127:8080/foo/bar/
>
> The proxy sees this and replaces the proxied URL
> (http://10.19.72.127:8080/) with the location specified in apache (/).
> Location: /foo/bar/
>
> It then generates a canonical URL with the requested host name /
> server name (depending on the value of UseCanonicalName), which is
> what the client sees:
> Location: https://mysite.com/foo/bar/
>
> Your backend is generating this header:
> Location: http://mysite.com/arsys/shared/login.jsp?/arsys/
>
> This doesn't match the ProxyPassReverse, so doesn't get rewritten.
>
> I can't be any clearer than this. I hope this helps you.
>
> Tom
>
> ---------------------------------------------------------------------
> 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 [at] httpd
> " from the digest: users-digest-unsubscribe [at] httpd
> For additional commands, e-mail: users-help [at] httpd
>
>

Apache users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.