日期:2014-05-16 浏览次数:21511 次
<VirtualHost *:80> ServerName 61.168.21.208----------------------服务ip DocumentRoot d:/www----------------------------apache的发布目录 </VirtualHost> <VirtualHost *:80> ServerName blovesky.51vip.biz ProxyPass / http://blovesky.51vip.biz:81/ ProxyPassReverse / http://lovesky.51vip.biz:81/ </VirtualHost>
<IfModule mod_caucho.c> ResinConfigServer localhost 6802 CauchoStatus yes </IfModule> <VirtualHost *:80> ServerName zjdlove.51vip.biz # 别名,当有二级域名存在时,这个别名应该取消 ServerAlias zjdlove.51vip.biz *.zjdlove.51vip.biz DocumentRoot E:/zjd/resin/deploy/51dw AddHandler caucho-request jsp <LocationMatch /*> SetHandler caucho-request </LocationMatch> <LocationMatch "/WEB-INF/"> AllowOverride None deny from all </LocationMatch> <Directory "E:/zjd/resin/deploy/51dw"> Allow from all </Directory> </VirtualHost>
<VirtualHost *:80> ServerName www.xxx.cn ServerAlias xxx.cn *.xx.cn ProxyPass / http://www.xxx.cn:81/ ProxyPassReverse / http://www.xxx.cn:81/ </VirtualHost> #二级域名网站 <VirtualHost *:80> ServerName bbs.xxx.cn ProxyPass / http://bbb.xxx.cn:81/ ProxyPassReverse / http://bbs.xxx.cn:81/ </VirtualHost>
<VirtualHost *:80> ServerName zjdlove.51vip.biz ServerAlias zjdlove.51vip.biz *.zjdlove.51vip.biz DocumentRoot D:/resin/webapps/51dw AddHandler caucho-request jsp <LocationMatch /*> SetHandler caucho-request </LocationMatch> <LocationMatch "/WEB-INF/"> AllowOverride None deny from all </LocationMatch> <Directory "D:/resin/webapps/51dw"> 只需要修改为: <VirtualHost *:80> ServerName zjdlove.51vip.biz ServerAlias zjdlove.5