Get the App
SLTechnology News&Howtos  ›  Network Security  › 

TOMCAT set up virtual directory

Shulou Source: shulou.com Published: 2022-06-01 06:38:31 10月03日 Update

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.

Tags: Directory file configuration name file name fact content point folder method rule update Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Apple OPPO Reno Linux Shulou Information