- 论坛徽章:
- 0
|
我现在的访问是要经过 http://www.kiball.com/kiball/index.jsp 才能访问
如何配置才能使:http://www.kiball.com/index.jsp 能直接访问
server.xml 配置:
<Host name="www.kiball.com" debug="0" appBase="d:/kiball"
unpackWARs="true" autoDeploy="true">;
<Context path="/kiball" docBase="" debug="0"
reloadable="true" crossContext="true">;
因为上面如果不配置 path="/kiball" ,生成的mod_jk.conf 就是
<VirtualHost www.kiball.com>;
ServerName www.kiball.com
</VirtualHost
否则生成 mod_jk 内容如下 :
<VirtualHost www.kiball.com>;
ServerName www.kiball.com
#################### www.kiball.com:/kiball ####################
# Static files
Alias /kiball "D:/kiball"
<Directory "D:/kiball">;
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp
</Directory>;
# Deny direct access to WEB-INF and META-INF
#
<Location "/kiball/WEB-INF/*">;
AllowOverride None
deny from all
</Location>;
<Location "/kiball/META-INF/*">;
AllowOverride None
deny from all
</Location>;
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
<Directory "D:/kiball/WEB-INF/">;
AllowOverride None
deny from all
</Directory>;
<Directory "D:/kiball/META-INF/">;
AllowOverride None
deny from all
</Directory>;
JkMount /kiball/*.jsp ajp13
</VirtualHost>;
多谢 ![img][/img] |
|