大家好,我把resin和apache整合在一起,没有问题,通过apache也能访问resin下的服务,现在想设置虚拟主机,resin和apache都设置完毕,检查了2遍配置文件也没有问题,C盘的host文件也改了,但是就是不生效,不知道为什么,后来把apache停了,单独起resin还是不生效,配置文件如下:
D:\resin-3.1.2\con\resin.conf:
<host id="" root-directory=".">
      <!--
         - configures an explicit root web-app matching the
         - webapp's ROOT
        -->
      <web-app id="/" root-directory="d:/resin-3.1.2/webapps/ROOT"/>      
    </host>
    <host id="www.alone.com" root-directory=".">
      <!--
         - configures an explicit root web-app matching the
         - webapp's ROOT
        -->
      <web-app id="/" root-directory="d:/resin-3.1.2/webapps/ROOT"/>      
    </host>c盘的host 如下:
127.0.0.1       localhost
127.0.0.1       www.alone.com我在ie中直接敲:http://localhost:8080/test2.jsp 可以看到结果,但是http://www.alone.com:8080/test2.jsp 就不行,c盘host改完,我也重起机器了,大家帮帮忙