我试图在服务器上配置 apache 的反向代理,以将请求从 /hotm 重定向到http://gateway.messenger.hotmail.com
在浏览器中输入地址 xxx.xxx.xxx.xxx/hotm,请求被正确重定向,但地址栏中的 url 变为“http://gateway.messenger.hotmail.com”。
可以在apache上配置代理,这样地址就不会改变?
[编辑] 这是 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