我试图在服务器上配置apache的反向代理,以将请求从/ hotm重定向到http://gateway.messenger.hotmail.com
在浏览器中键入addres xxx.xxx.xxx.xxx/hotm,请求被正确重定向,但地址栏中的URL更改为“http://gateway.messenger.hotmail.com” .
可以在apache上配置代理,以便地址不会改变?
[edit]这是httpd.conf片段
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 回答
您还必须将ProxyPassReverse指令设置为与ProxyPass值相同的URL .