原先版本是在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:80
另注:1.3版本Cognos無法運行,需使用2.2以上版本可直配置鏈接數據池。
-The End-