Tomcat peanut shell configuration

Source: Internet
Author: User

1. Configure the vro and go to http: // 192.168.0.1/to start setting.

Select "forwarding rules" -- "virtual server" -- configure as follows, IP address for your local IP Address

Select "forwarding rules" -- "DMZ" host -- configure as follows, IP address for your local IP Address

Copy your web application to the webapp directory of Tomcat. The following uses mywebsite as an example.

 

6. Modify server. xml

Set

<Engine name = "Catalina" defaulthost = "localhost">

Modify

<Engine name = "Catalina" defaulthost = "dingxinzhang.vicp.net">

Dingxinzhang.vicp.net is the domain name I applied

Set

<Host name = "localhost" appbase = "webapps" unpackwars = "true" autodeploy = "true">

Modify

<Host name = "dingxinzhang.vicp.net" appbase = "webapps" unpackwars = "true" autodeploy = "true">

In this line, add:

<Context Path = "" docbase = "mywebsite" DEBUG = "0" reloadable = "true" crosscontext = "false"/>

Mywebsite is the name of my website directory to copy the folder to webappa.

Note that Path = "" is empty here to access the home page of your website rather than the home page of Tomcat by default.

 

Configure over here!

Enter http://chenscmail.xicp.net in the browser address bar

Or http://chenscmail.xicp.net: 7777 (Tomcat port, when set to 80, the address bar does not need to enter 80)

Related Article

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.