2014-01-14 67 views
0

我安装了tomcat。根文件夹是/ var/lib/tomcat7/webapps/ROOT,它有一个index.html文件。这个文件可以被访问为server-ip:8080。但是server-ip:8080/index.html返回404。为什么会这样?Index.html直接访问tomcat时返回404

+0

它在根文件夹中确实是'index.html'而不是'index.jsp'? –

+0

它是index.html好的 –

回答

0

这有可能是当你从你的web.xml的欢迎文件列表(通常定义为这样的服务服务器的:)

<welcome-file-list> 
    <welcome-file>index.html</welcome-file> 
</welcome-file-list> 

它比当您尝试直接导航到不同的权限。