elias
elias

Reputation: 15490

apache reverse proxy changes url

i tried to configure apache's reverse proxy on a server to redirect the requests from /hotm to http://gateway.messenger.hotmail.com

typing the addres xxx.xxx.xxx.xxx/hotm in a browser, the request is redirected correctly, but the url in the address bar changes to "http://gateway.messenger.hotmail.com".

it's possible to configure the proxy on apache so that the address does not change?

[edit] this is the httpd.conf fragment

ProxyRequests Off
ProxyPass /hotm http://gateway.messenger.hotmail.com
ProxyPassReverse /hotm http://gateway.messenger.hotmail.com
<Directory /var/www/html/hotm>
 Order Allow,deny
 Allow from all
</Directory>
Redirect Permanent /hotm http://gateway.messenger.hotmail.com

Upvotes: 3

Views: 13489

Answers (1)

Johan Sj&#246;berg
Johan Sj&#246;berg

Reputation: 49197

You must also set the ProxyPassReverse directive, typically to the same url as your ProxyPass value.

Upvotes: 2

Related Questions