cnhonker 发表于 2013-1-15 22:49:06

apache代理IIS,以及基于主机名的虚拟主机设置

NameVirtualHost *:80<VirtualHost *:80>    ServerName localhostProxyPass / http://localhost:8080/ProxyPassReverse / http://localhost:8080/</VirtualHost><VirtualHost *:80>    ServerName localhost.meDocumentRoot "d:/wordpress"</VirtualHost> 以上的第一个VirtualHost是apache代理转发到IIS,域名为localhost,端口8080。
 
这两个VirtualHost设置,是基于主机名的虚拟主机设置。根据不同的主机名,分发给不同的虚拟主机处理。
 
ServerName 指令:服务器用于辨识自己的主机名和端口号
页: [1]
查看完整版本: apache代理IIS,以及基于主机名的虚拟主机设置