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