将apache设为使用80端口,IIS使用其它端口,比如81,然后将apache作为IIS的代理。 然后建立一个虚拟主机,将该域名的所有访问转向81端口。
<VirtualHost *:80>
ServerName www.ruoo.com
ProxyPass / http://localhost:81/
ProxyPassReverse / http://localhost:81/
</VirtualHost> 问: 将apahce作为IIS代理后,如何设置apache,将源请求ip转发到IIS ????????????????现在的设置 , IIS 收到的来路ip 就是 服务器的 ip地址了.现在只能用 Request.ServerVariables( "HTTP_X_FORWARDED_FOR ") 才能得到源来路ip
我看到过一种方法是,设置一下apche就可以让IIS得到请求ip是源ip, 看过忘了,怎么设置了.
请知道的朋友贴一下..谢谢了.这个问题没有找到答案 帮帮忙!写了
<VirtualHost *:80>
ServerName www.ruoo.com
ProxyPass / http://localhost:81/
ProxyPassReverse / http://localhost:81/
</VirtualHost> 问: 将apahce作为IIS代理后,如何设置apache,将源请求ip转发到IIS ????????????????现在的设置 , IIS 收到的来路ip 就是 服务器的 ip地址了.现在只能用 Request.ServerVariables( "HTTP_X_FORWARDED_FOR ") 才能得到源来路ip
我看到过一种方法是,设置一下apche就可以让IIS得到请求ip是源ip, 看过忘了,怎么设置了.
请知道的朋友贴一下..谢谢了.这个问题没有找到答案 帮帮忙!写了
<VirtualHost *:80>
ProxyPreserveHost On 这个设置了没有
ServerName www.ruoo.com
ProxyPass / http://localhost:81/
ProxyPassReverse / http://localhost:81/
</VirtualHost>