httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jack Saunders" <jack.g.saund...@gmail.com>
Subject Re: [users@httpd] Strange problem with Reverse proxy in Apache 2.2.3
Date Fri, 27 Oct 2006 01:42:39 GMT
Change this line
ProxyPass http://numsum.com/

To this
ProxyPass / http://numsum.com/

Everything else looks good.

Hope this helps!
Jack

On 10/25/06, Didier PH Martin <martind@netfolder.com> wrote:
> Hello
>
> My Apache version is: 2.2.3 installed from the apache friend package for
> windows. The server is running on a window XP home version (SP2) with all
> the latest updates.
>
> The config is as follow:
> ....
> LoadModule proxy_module modules/mod_proxy.so
> LoadModule proxy_http_module modules/mod_proxy_http.so
> LoadModule ssl_module modules/mod_ssl.so
> LoadModule proxy_html_module modules/mod_proxy_html.so
>
> <IfModule proxy_module>
>     ProxyRequests Off
>     SSLProxyEngine On
>
>   <Location /numsum/>
>       #ProxyPassReverse http://numsum.com/
>       ProxyPass http://numsum.com/
>         SetOutputFilter  proxy-html
>         ProxyHTMLURLMap  /      /numsum/
>         ProxyHTMLURLMap  /numsum        /numsum
>         RequestHeader    unset  Accept-Encoding
>     </Location>
> </IfModule>
> ....
>
> The sequence is as follow:
> Note: (... represent the rest of the URL)
> Get a login page from numsum with htpp://localhost/numsum/....
> Fill the form and do a post to http://localhost/numsum/....
> The reply from the post to a 302 redirect
>
> Here is the problem:
> If I set the "proxyPassReverse" header as above (by removing the comment #)
> then the "location" header in the post reply is et by apache to:
> http://localhost/people/.... instead of http://localhost/numsum/people/....
> Even more strange. If I comment (placing a # in front of the directive) the
> proxyPassReverse disrective I still get the same "location" set to
> http://localhost/people/.... instead of http://numsum.com/people/....
> So, whatever I do, I get the same "location" header's value.
>
> I am really puzzled by what is causing that. The behavior is not as expected
> or as stated in the documentation.
>
> Any idea of what could be wrong?
>
> Many thanks in advance for your help
>
> Didier PH Martin
>
>
>
> ---------------------------------------------------------------------
> 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