Tomcat implements crm.test.com access

Source: Internet
Author: User

Tomcat implements crm.test.com access

** Tomcat context: You can enter an ip address or domain name in the browser to directly access the project without entering the project name.
The normal Initialization is http: // 10.243.12.34: 8080/plcrm, which must be accessed directly like crm.test.com. **

1. Remove port 8080.

Add port ing first, because port 80 can only be enabled by the root account, and the tomcat account cannot be enabled
Iptables-t nat-a prerouting-p tcp-dport 80-j REDIRECT-to-port 8080

2. Go to server. xml and change it to port = "8080", which is about 73rd rows.

After this is done, you can use http: // 10.243.12.34/plcrm for access.

3. for direct IP address access, remove the context ing and add the Host in server. xml.
Configure 

After this is done, restart tomcat and enter 10.243.12.34 in the browser to access

4. directly access the domain name address. Remove the context ing and add the Host in server. xml.
Configure 

After this is done, restart tomcat and enter crm.test.com in the browser to access it.

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.