Linux – Running Apache Tomcat 8 on port 80

linuxtomcat

I wants to install/configure apache tomcat on port 80 instead of 8080. I am running Nginx on port 80 and I made Nginx service stopped.

I changed Shutdown , Connector port from 8005 to 8008 and 8080 to 80 respectively. When I did use ./bin/startup.sh it shows no error and in catlina.out it says "org.apache.catalina.startup.Catalina.start Server startup in 1405 ms" but when i access http://localhost it says ERR_CONNECTION_REFUSED

Suggest me If I am doing anything wrong.

Thanks

Best Answer

This question comes up a lot. Lets assume you want to use the non-root approach.

Use authbind, unless you want to use IP6.

Use iptables and redirect port 80 to 8080.

Setting up an Apache/Nginx as a reverse proxy takes longer and adds more complexity than necessary.