Tomcat Directory Listing

Source: Internet
Author: User

one Directory listing concept

In short, directory listing does not place any Web program files, such as index.html, in the WebApps folder in the Tomcat installation directory. Web.xml and so on, then use the URL to access this folder, will be all the contents of the folder listed, available for download.

Two setting Method

Modify the Web.xml file under the Config folder, as shown in the following figure.


Figure 1 Parameter modification

three-effect diagram

The effect is illustrated below.


Figure 2 Access Effect graph

Four potential pitfalls

These and corresponding strategies are described in detail in http://www.cnblogs.com/suncoolcat/archive/2013/09/03/3299531.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.