首页 新闻 赞助 找找看

apache+tomcat中的项目默认主页问题

0
悬赏园豆:30 [已关闭问题] 关闭于 2016-03-15 15:58

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

小风疏雨的主页 小风疏雨 | 初学一级 | 园豆:128
提问于:2016-03-15 11:23
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册