Skip to content
Advertisement

RedHat on port 80

I got Apache Tomcat running some app on RedHat server, now listening on port 8081. I want the app to listen to port 80, but not working. My RedHat server not using firewall so iptables has no relavance. How can i make it work? Here is my server.xml:

JavaScript

Advertisement

Answer

Ports below 1024 can only be opened by a root user. So If you want tomcat to listen on port 80 you will need to start it as the root user.

Or else you can configure an Apache proxy to redirect traffic o port 80 to port 8081 on which tomcat will be listening on

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement