我是靠谱客的博主 动听小猫咪,这篇文章主要介绍如何设置Tomcat目录浏览,现在分享给大家,希望可以做个参考。

第一步:

 

找到安装Tomcat的目录$Apache Software Foundation/Tomcat 5.5/conf/web.xml,然后打开找到如下代码

 

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

 

把其中如下代码删除

 

        <welcome-file>index.html</welcome-file>
        <welcome-file>index.htm</welcome-file>
        <welcome-file>index.jsp</welcome-file> 

 

第二步:

 

  找到<init-param>
            <param-name>listings</param-name>
            <param-value>false</param-value>
        </init-param>

  把<param-value>false</param-value>改为<param-value>true</param-value>

 

重启Tomcat服务器即可

 

 

最后

以上就是动听小猫咪最近收集整理的关于如何设置Tomcat目录浏览的全部内容,更多相关如何设置Tomcat目录浏览内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(111)

评论列表共有 0 条评论

立即
投稿
返回
顶部