今天是: | 首页 | 营销咨讯 | 推销技巧 | 网络营销 | 论文大全 | 外贸知识 | 市场信息 | 留言咨询 | 论坛 |
最 新 文 章
普通文章解读二八理论和长尾理论在…
普通文章雅虎倒向谷歌被反垄断部门…
普通文章网络视频营销漫路求索
普通文章涂料是否适合网络营销
普通文章IMPACT揭秘网络营销秘诀
普通文章广告也要得民心,令人生厌…
普通文章谷歌在华战略转向中小企业
普通文章博客营销文章写作技巧
普通文章网盛1800万收购中华纺织网
普通文章互联网进入营销阶段
最 新 热 门
普通文章解读二八理论和长尾理论在…
普通文章雅虎倒向谷歌被反垄断部门…
普通文章网络视频营销漫路求索
普通文章涂料是否适合网络营销
普通文章IMPACT揭秘网络营销秘诀
普通文章广告也要得民心,令人生厌…
普通文章谷歌在华战略转向中小企业
普通文章博客营销文章写作技巧
普通文章网盛1800万收购中华纺织网
普通文章互联网进入营销阶段
最 新 推 荐
推荐文章网站策划之栏目策划
推荐文章网络营销--创意致胜 充满“…
推荐文章Web2.0创业者面临艰难选择…
相 关 文 章
  • 如何恢复Photoshop的缺省设置

  • JSP连接SQL Server 2000系统…

  • win2000server IIS和tomcat5…

  • Tomcat5+Mssql server 2000数…

  • Eclipse 3.0 上配置JSP开发环…

  • 新手入门经典:Jsp环境配置

  • Apache服务器之JSP概述篇

  • 配置Eclpise+tomcat并实现JS…

  • JAVA/JSP学习系列之二(Tomca…

  • JAVA/JSP学习系列之三(Resin…

  • Q
    您现在的位置: 推销员 >> 网络营销 >> 网站建设 >> JSP代码学习 >> 文章正文
    WIN2003上Apache2+IIS6+Tomcat5之多站点完美配置篇
    WIN2003上Apache2+IIS6+Tomcat5之多站点完美配置篇
    作者:佚名 文章来源:www.top-sales.com.cn 点击数: 更新时间:2007-3-22     
    [ 字体:缩小 正常 放大 | 双击自动滚屏 ]
    请选择合适的字体颜色:

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

    第一次尝试使用:

    <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:\tomcat5.0.28\conf\workers.properties"
    <VirtualHost *:80>
        ServerAdmin feifei0658@sina.com   
        ServerName www.openria.cn
        DirectoryIndex index.html index.htm index.jsp
        JkMount /* ajp13   
        JkAutoAlias "D:\tomcat-5.0.28\webapps\ria"  
        <Directory "D:\tomcat-5.0.28\webapps\ria">
           Options Indexes FollowSymLinks
           allow from all
        </Directory>
    </VirtualHost>

    这回经过查官方资料,发现了一个属性,叫ProxyPreserveHost On,试了一下,是可以用实现多个虚拟的asp站点了,但是和我的tomcat站点定义冲突,访问不了jsp站,又不行,只好再找。

    第三次尝试使用:

    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:\tomcat5.0.28\conf\workers.properties"
    <VirtualHost *:80>
        ServerAdmin feifei0658@sina.com   
        ServerName www.openria.cn
        DirectoryIndex index.html index.htm index.jsp
        JkMount /* ajp13   
        JkAutoAlias "D:\tomcat-5.0.28\webapps\ria"  
        <Directory "D:\tomcat-5.0.28\webapps\ria">
           Options Indexes FollowSymLinks
           allow from all
        </Directory>
    </VirtualHost>

    [1] [2] 下一页  

    文章录入:admin    责任编辑:admin 
  • 上一个文章:

  • 下一个文章:
  • 发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
    网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)
    | 设为首页 | 加入收藏 | 联系站长 | 关于我们 | 友情链接 | 版权申明 |