Yes we can change it, Tomcat use 8080 port instead of 80 port. User can easily change default port from tomcat. Open c:/tomcat/config/server.xml folder in tomcat installed and open server.xml file.
<!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
<Connector port="8080" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />
<!-- Note : To disable connection timeouts, set connectionTimeout value
to 0 -->
In connector port change 8080 to 80, now save this save and shutdown.bat tomcat and startup.bat tomcat.This time user need not to write 8080 port in http://localhost/








Reply With Quote