【发布时间】:2011-07-13 17:20:54
【问题描述】:
我尝试在服务器上配置 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
【问题讨论】:
标签: apache redirect reverse-proxy httpd.conf