The IP address entered by Tomcat does not match the project name to directly access the specified web project.

Source: Internet
Author: User

For tomcat, the project is placed in the root folder under the webapps folder, which contains some default Tomcat pages. Then you can:

1. delete all the original files and copy the project to be deployed;

2. If it is just a static page, you can copy it first, then modify the Web. xml file under the WEB-INF folder, add the following statement in the file:

<Welcome-file-List>
<Welcome-File> jsgame2.html // This is the page to open

</Welcome-File>
</Welcome-file-List>

After such modification, enter http: // localhost: 8080/or (http: // ip address: 8080/) in the address bar /) you can directly open the specified project or page.

Note: Modify the web. the XML file uses editplus. After modification, a Web file is generated. XML. bak file, which is web. XML backup files can be directly used after the suffix is modified. This backup file is automatically generated by editplus. If you do not want it to automatically generate a backup file, you can make the following modifications:

 

Editplus-tool-parameter-file (File root node)-create backup check when saving the file

 

Certificate -----------------------------------------------------------------------------------------------------------------------------------------

 

Two methods: 1. Copy your project to webapps and change your project name to root.
2. Set the virtual path. Modify the tomcat/CONF/server. xml file at the bottom of
<Context Path = "" DEBUG = "0" docbase = "decision path of your project" reloadable = "true">
</Context>
</Host>
</Engine>
</Service>
</Server>

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.