How the Tomcat service binds domain names

Source: Internet
Author: User

After the Tomcat server is built, it is recommended that you bind the domain name to the server. The binding method is as follows: Domain binding requires editing the Tomcat configuration file to complete. The Tomcat configuration file is the installation directory for Tomcat Tomcat_home/conf/server.xml,tomcat_home.

The original configuration file is as follows:

Modify the above content to:

The modified meaning is: 1) www.aaa.com is the default domain name of the website, access to www.aaa.com will visit the Web page of the Tomcat website root directory, 2) access to www.abc.com, The default jumps to the ABC directory under the Tomcat root directory, 3) The IP address of the access server 192.168.0.153, which will default to the Def directory under the Tomcat root directory;

Restart the Tomcat server after the modification to take effect.

How the Tomcat service binds domain names

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.