首页 文萃 技术文档 二手市场 培训机构 e书下载 五星图书 考试资源 软件下载 标准下载 最新资讯
图书资源 留言板 联系我们
WIN2003上Apache2+IIS6+Tomcat5之多站点完美配置篇|西安信息资源网|E书下载|电子书下载|信息发布


WIN2003上Apache2+IIS6+Tomcat5之多站点完美配置篇 转帖

推荐人:WD

      本来以为上一次的配置就搞定了,结果本地测试好好的,到了服务器上调试就完蛋了,本地只测试了一个asp站和一个jsp(SUN企业级应用的首选)站,而实际情况是多个asp站和我的jsp(SUN企业级应用的首选)站,又试了两次还是不行,终于在第三次尝试后搞定了,写下来做个纪念。

 第一次尝试使用:

 <VirtualHost *:80>
    ServerAdmin feifei0658@sina.com
   ServerName www.5hope.com
    DcumentRoot "G:\5hope
    DirectoryIndex index.html index.htm index.asp  
   ProxyPass / http://www.5hope.com:88/
   ProxyPassReverse / www.5hope.com:88/
 </VirtualHost>

 
 <VirtualHost *:80>
     ServerAdmin feifei0658@sina.com
   ServerName www.shundabanjia.com  
   DocumentRoot "G:\wuyubing\www"
   DirectoryIndex index.html index.htm index.asp  
   ProxyPass / http://www.shundabanjia.com:88/
   ProxyPassReverse / http://www.shundabanjia.com:88/
 </VirtualHost>

 本以为这样设置多站点就搞定了,结果发现只识别第一个站点,访问别的站点都是这个站的内容,折腾了一上午,没成功。

 第二次尝试使用:

 <VirtualHost *:80>
  #添加了这个属性**********
  ProxyPreserveHost On
 ServerAdmin feifei0658@sina.com  
   ServerName www.shundabanjia.com  
   DocumentRoot "G:\wuyubing\www"
   DirectoryIndex index.html index.htm index.asp  
   ProxyPass / http://www.shundabanjia.com:88/
   ProxyPassReverse / http://www.shundabanjia.com:88/
 </VirtualHost>

 LoadModule jk_module modules/mod_jk.so  
 JkWorkersFile "D:\tomcat(一个很好用的JSP运行平台)5.0.28\conf\workers.properties" 
 <VirtualHost *:80>
     ServerAdmin feifei0658@sina.com    
     ServerName www.openria.cn
     DirectoryIndex index.html index.htm index.jsp(SUN企业级应用的首选)
     JkMount /* ajp13    
     JkAutoAlias "D:\tomcat(一个很好用的JSP运行平台)-5.0.28\webapps\ria"   
     <Directory "D:\tomcat(一个很好用的JSP运行平台)-5.0.28\webapps\ria">
        Options Indexes FollowSymLinks
        allow from all
     </Directory>
 </VirtualHost>

 这回经过查官方资料,发现了一个属性,叫ProxyPreserveHost On,试了一下,是可以用实现多个虚拟的asp站点了,但是和我的tomcat(一个很好用的JSP运行平台)站点定义冲突,访问不了jsp(SUN企业级应用的首选)站,又不行,只好再找。

 第三次尝试使用:

 NameVirtualHost *:80

 <VirtualHost *:80>
   ProxyPreserveHost On
   ServerAdmin feifei0658@sina.com
   ServerName www.shundabanjia.com  
   DocumentRoot "G:\wuyubing\www"
   DirectoryIndex index.html index.htm index.asp  
   ProxyPass / http://www.shundabanjia.com:88/
   ProxyPassReverse / http://www.shundabanjia.com:88/
 </VirtualHost>

 LoadModule jk_module modules/mod_jk.so  
 JkWorkersFile "D:\tomcat(一个很好用的JSP运行平台)5.0.28\conf\workers.properties" 
 <VirtualHost *:80>
     ServerAdmin feifei0658@sina.com    
     ServerName www.openria.cn
     DirectoryIndex index.html index.htm index.jsp(SUN企业级应用的首选)
     JkMount /* ajp13    
     JkAutoAlias "D:\tomcat(一个很好用的JSP运行平台)-5.0.28\webapps\ria"   
     <Directory "D:\tomcat(一个很好用的JSP运行平台)-5.0.28\webapps\ria">
        Options Indexes FollowSymLinks
        allow from all
     </Directory>
 </VirtualHost>
 

 

[收藏本文]   [发表评论]  [查看评论我要推荐文章

上一篇:Windows下JSP开发环境的配置 下一篇:jdk6.0 + Tomcat6.0的简单jsp,Servlet,javabean的调试

最新参与TOP10
ascall码
【经典推荐】每个JAVA初学者都应该搞懂的问题
成功安装Mysql+Apache2+php5过程
五种提高 SQL 性能的方法
配置Eclpise+tomcat并实现JSP的编写与部署
Eclipse 3.0 上配置JSP开发环境
PHP中的XML拉模式详解
php的ajax框架xajax入门与试用
win2000server IIS和tomcat5多站点配置
JSP连接SQL Server 2000系统配置

西安信息资源网 版权所有 全球排名

QQ:363694816