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

TOMCAT set up virtual directory

2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

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

The way to configure a virtual directory in Tomcat is to write a xml file that reads as follows:

Where "path=" / www "indicates the name of the configured virtual directory, and" docBase= "/ var/www"is the actual directory that the virtual directory points to. Save this file in the "tomcat/conf/Catalina/localhost" folder of the Tomcat installation directory, and the file name is jsp.xml. After saving, Tomcat automatically updates the configuration.

The naming rule for the xml file that configures the virtual directory is: the name of the virtual directory is the file name of the xml file. In this case, if the name of the virtual directory is "/ www", the name of the xml file is www.xml.

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

Network Security

Wechat

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

12
Report