I have installed Apache tomcat on my Droplet and deployed my application. It is available on port 8080. How can I make it available on port 80? Thank you!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hi there,
You should be able to do that by following these steps
server.xml
configuration file, the locaiton of the file might depend on the way that you’ve installed Tomcat, but popular locations are at/opt/tomcat/conf/
or/etc/tomcatVERSION
<Connector port="8080" protocol="HTTP/1.1"
line, and change the port from8080
to80
Let me know how it goes!
Best,
Bobby
Hello @sergeigerman,
To change default port number, edit the main Connector element in the
server.xml
file. Find XML tag that looks something like this:Just change the port attribute from 8080 to 80, and restart Tomcat. Unless that port number is already in use or you lack administrative permission to start a server on port 80, Tomcat should now be operational on port 80.
Let me know how it goes,
Sergio Turpín