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.