How to use the default 80 port to log on to Tomcat's http://localhost/index.jsp page
It is simpler to implement such access methods.
1, open Tomcat under the Conf folder in the Server.xml file
2, find
<port= "8080"
Maxthreads= "150"
Minsparethreads= "25"
maxsparethreads= "75"
Enablelookups= "false"
Redirectport= "8443"
acceptcount= "100"
debug= "0"
connectiontimeout= "20000"
Disableuploadtimeout= "true"
/>
Amended to
<port= "80"
Maxthreads= "150"
Minsparethreads= "25"
maxsparethreads= "75"
Enablelookups= "false"
Redirectport= "8443"
acceptcount= "100"
debug= "0"
connectiontimeout= "20000"
Disableuploadtimeout= "true"
/>
3. Restart Tomcat
4, in the address bar input http://localhost/index.jsp will be able to enter the Tomcat home
5, if in the access process found that the server did cache, do not refresh the page, you can use a filter, forcing the page does not cache. Just in a
filters (usually in coded filters) include the following statement:
Response.setheader ("Cache-control", "No-store");
Response.setheader ("Pragma", "No-cache");
&N Bsp Response.setdateheader ("Expires", 0);
6, if the parameters are passed through JS generated (word) garbled, it needs encodeURI () encodes the parameters.