Tomcat Project Path Configuration | Project placement outside WebApp Directory | Tomcat Configuration

Source: Internet
Author: User

Apache Tomcat Project Path Customization

Download tomcat6.0 path : http://tomcat.apache.org/download-60.cgi

I am here to test with window_x64 tomcat6.0, if you are the other system, choose the image of the download. (pictured below)



① after downloading the Tomcat compression pack to unpack and open, find "conf" Open new Folder "Catalina" (the following figure)


② Open "Catalina" and create a new folder "localhost" (as shown below)


③ continue to open the "localhost" directory and create a new file "Test.xml" (The following figure: The test here can be customized by itself, typically deployed in the Tomcat project name)


④ Open the new "Test.xml" file and edit the following

Change all the red box contents in the picture to the project name, where the Docbase attribute refers to the project configuration road strength, I place the D-Packing directory below

<?xml version= ' 1.0 ' encoding= ' utf-8 '?> <context '
true ' crosscontext= ' 5 ' debug= ' test ' Docbase= "D:\test" path= "/test" reloadable= "false" workdir= "Work\catalina\localhost\test" >
</Context>


⑤ will project the D-Packing directory, if your previous step is not set up in the D-Packing directory, you set according to your own directory to put


⑥ return to find the Tomcat root directory, open the "Bin" directory, double-click the "Startup.bat" file to start Tomcat


⑦ Enter the URL in the browser to open the project



End: Small white study, master do not spray

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.