3

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

1 Answer 1

2

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

Sign up to request clarification or add additional context in comments.

2 Comments

i use the directive "ProxyPreserveHost On" and it works. thanks
I also use ProxyPassReverse and ProxyPreserveHost On, but then get a "too many redirect". Does nay one know how to resolve?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.