(1) Tomcat port changed from 8080 to 80
d:/myserver/tomcat/apache-tomcat-6.0.20/conf Find Server.xml file, change port 8080 to 80.
(2) Backstage:
C:/windows/system32/drivers/etc find the file Hosts file,
Open, add:
For example
127.0.0.1 www.kakatao.com
127.0.0.1 kakatao.com
127.0.0.1 localhost
Remember: The Hosts file only controls domain name mapping, regardless of port. The above is to map the domain name. Only Tomcat, GlassFish, etc. server control export use 80
It's 81 or 8080. For example, TOMCAT1 uses 8080 ports and starts, and the Hosts file maps 127 = kakatao.com, so you can access kakatao.com:8080 with 127.0.0.1:8080 and TOMCAT1. If the TOMCAT2 uses 80 ports, only 80 ports can be omitted.
Note: It is often said that http://127.0.0.1 is equivalent to: HTTP://127.0.0.1:80 uses 80 ports. Because only 80 ports can be omitted.
For example: www.sohu.com:80 equivalent to http://www.sohu.com/