原先版本是在conf\server.xml 中插入
<Context path="/test" docBase="d:/test" reloadable="true"?debug="0" ></Context>
5.5需要在安裝目錄下的conf\Catalina\localhost文件夾中新增名為 test.xml 的xml文件,內(nèi)容如下:
<Context path="/test" docBase="d:/test" reloadable="true"?debug="0" ></Context>
注意:
1、xml的文件名必須和虛擬目錄相同(因?yàn)樘摂M目錄以XML文件名為準(zhǔn))
2、一個(gè)xml文件只能設(shè)置一個(gè)Context path
地址為:?
http://localhost:8080/test/abc.jsp
?
?======================================================================================
附:Apache2.2虛擬目錄設(shè)置:
......\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>
默認(rèn)主頁:??
http://localhost:80
另注:1.3版本Cognos無法運(yùn)行,需使用2.2以上版本可直配置鏈接數(shù)據(jù)池。
-The End-