Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Modify the method for Tomcat to access the root directory by default

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

After Tomcat is installed by default, the home directory of tomcat is the webapps/root directory.

Find server.xml under the conf folder to open

In. Add a row in the middle

The copy code is as follows:

DocBase is the name of the folder accessed by default. Linux is the same as Windows, except that the folder address is different

The copy code is as follows:

This modifies Tomcat's default access to the webapps/guanwang folder

I uploaded a text file under the guanwang folder, which can be accessed directly.

Visit:

1. Access the video-list.html under the guanwang folder (see figure above)

two。 Access the text file sohubiz_verify.txt under the guanwang folder

The above is the whole content of this article, I hope it will be helpful to your study, and I also hope that you will support it.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report