How to change the port of tomcat from 8080 to 80?



How to change the port of tomcat from 8080 to 80?..

Answer / Aashish Singh Chauhan

To change the default Tomcat port from 8080 to 80, you'll need to modify the `server.xml` configuration file located in your Tomcat `conf` directory. Find the `Connector` element for HTTP connector (usually named `Http11Nio2`) and update its `port` attribute with the desired port number:

<Connector port="80" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443"/>

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Tomcat Interview Questions

Which is better jboss or tomcat?

1 Answers  


How many database servers does facebook have?

1 Answers  


Is tomcat a jvm?

1 Answers  


What is a connector and how is it used in tomcat?

1 Answers  


How do I install tomcat?

1 Answers  


Does apache tomcat require java?

1 Answers  


Explain the types of connectors used by apache tomcat.

1 Answers  


Which is better jsp or php?

1 Answers  


Why cats eat their babies?

1 Answers  


How many requests per second does facebook handle?

1 Answers  


Which is more secure get or post?

1 Answers  


Explain how you can configure tomcat to work with iis and ntlm?

1 Answers  


Categories