问题
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:
You must also set the ProxyPassReverse directive, typically to the same url as your ProxyPass value.
来源:https://stackoverflow.com/questions/5277107/apache-reverse-proxy-changes-url