Decode360's Blog

业精于勤而荒于嬉 QQ:150355677 MSN:decode360@hotmail.com

  BlogJava :: 首页 :: 新随笔 :: 联系 ::  :: 管理 ::
  397 随笔 :: 33 文章 :: 29 评论 :: 0 Trackbacks
Tomcat5.5.17 虚拟目录设置
 
 
原先版本是在conf\server.xml 中插入
<Context path="/test" docBase="d:/test" reloadable="true" debug="0" ></Context>
 
5.5需要在安装目录下的conf\Catalina\localhost文件夹中新增名为 test.xml 的xml文件,内容如下:
<Context path="/test" docBase="d:/test" reloadable="true" debug="0" ></Context>
 
注意:
 
1、xml的文件名必须和虚拟目录相同(因为虚拟目录以XML文件名为准)
2、一个xml文件只能设置一个Context path
 
地址为:  http://localhost:8080/test/abc.jsp  
 
 
 
 
附:Apache2.2虚拟目录设置
******************************************************************************
 
......\Apache2.2\conf\httpd.conf
 
加入:
ScriptAlias /cognos8/cgi-bin "D:\program files\Cognos\c8\cgi-bin"
<Directory "D:\program files\Cognos\c8\cgi-bin">
AllowOverride None
Options None
Allow from All
</Directory>
 
Alias /cognos8/help "D:\program files\Cognos\c8\webcontent\documentation"
<Directory "D:\program files\Cognos\c8\webcontent\documentation">
Options None
AllowOverride None
Order Allow,Deny
Allow from All
</Directory>
 
Alias /cognos8 "D:\program files\Cognos\c8\webcontent"
<Directory "D:\program files\Cognos\c8\webcontent">
Options None
AllowOverride None
Order Allow,Deny
Allow from All
</Directory>

默认主页:   http://localhost/

另注:1.3版本Cognos无法运行,需使用2.2以上版本可直配置链接数据池。
 
 
posted on 2008-08-03 22:06 decode360 阅读(145) 评论(0)  编辑  收藏 所属分类: 16.Others

只有注册用户登录后才能发表评论。


网站导航: