0 Comment
How to change default port in Tomcat?
Open apache-tomcat-7.0.22confserver.xml
Find the block <Service name=”Catalina”>
Locate following block and replace the Old port number (In RED color) with new port number.
<!– A “Connector” represents an endpoint by which requests are received–>
and responses are returned. Documentation at :
Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)
Java AJP Connector: /docs/config/ajp.html
APR (HTTP/AJP) Connector: /docs/apr.html
Define a non-SSL HTTP/1.1 Connector on port 8080
–>
<Connector port=”8080” protocol=”HTTP/1.1″
connectionTimeout=”20000″
redirectPort=”8443″ />
Done!
Courtesy : Clean-Clouds