Tomcat Server configuration domain name

Source: Internet
Author: User

Recently made a Web site, with the Web ' server is tomcat, frame-type SPRINGMVC, the function is ready to use, the hand has a domain name and a server, has been bound to the IP, the rest is the configuration

Tomcat, relatively simple, but their own record to prevent forgetting,

First of all, access to the server by default is 80 port, this good change, tomcat in the Server.xml file directly modified, here is to explain that if there is more than one tomcat on a server, modify the port should be aware of the need to modify

Three Places of

First place is <server port= "8085" shutdown= "Shutdown" >

The second place is <connector connectiontimeout= "20000" port= "" protocol= "http/1.1" redirectport= "8443"/>

The third place is <connector port= "8099" protocol= "ajp/1.3" redirectport= "8443"/>

To modify a good port

In the modification of two places

The first is <engine defaulthost= "localhost" name= "Catalina" > Change the value of Defaulthost to your domain <engine defaulthost= "www.test.co M "Name=" Catalina ">

The second is

Change the value of name to your domain name

Finally, add a specific project point

Under Host, add <context docbase= "Testpro" path= "" reloadable= "true"/>

This testpro is the name of the project in Tomcat.

Save the Server.xnl file, restart the service, if your domain name and IP bindings are good, you can directly use the domain name to access the

If you are not sure if the domain name is tied to the correct external network IP, you can ping the domain name directly in DOS if the correct external network IP is displayed, then there is no problem ....

Tomcat Server configuration domain name

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.