web.xml是这样的
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" id="WebApp_ID" version="3.1">
<display-name>bugzillachart</display-name>
<welcome-file-list>
<welcome-file>/WEB-INF/jsp/index.jsp</welcome-file>
</welcome-file-list>
</web-app>
主页放在了WEB-INF下
apache 中如何设定DirectoryIndex
如下是虚拟主机的一部分
<Directory "/var/www/bugzillachart"> AllowOverride None #DirectoryIndex /WEB-INF/jsp/index.jsp #DirectoryIndex index.html Order allow,deny Allow from all </Directory>
要如何写,才能保证输入ip+项目名,直接访问index.jsp