首页 文章

apache反向代理更改网址

提问于
浏览
1

我试图在服务器上配置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 回答

相关问题