NameVirtualHost *:80<VirtualHost *:80>
ServerName www.ew7s.cn
ProxyRequests Off
ProxyVia Full
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass / http://www.ew7s.cn:8080/
ProxyPassReverse / http://www.ew7s.cn:8080/
</VirtualHost>
<VirtualHost *:80>
ServerName www.doubleq.cn
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass / http://www.doubleq.cn:8060/
ProxyPassReverse / http://www.doubleq.cn:8060/</VirtualHost>
apache的反向代理中目的是在访问www.ew7s.cn的时候能直接跳到http://www.ew7s.cn:8080所对应的网站,所以监听了80端口做跳转,可是跳转以后,域名确实跳到了http://www.ew7s.cn:8080,而且被加上了端口号,使用apache的目的就是想去掉端口号,那如果是这样的话使用apache就没有意思了啊,就高手解答!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货