Ubuntu – Running Tomcat6 on port 80 on Ubuntu LTS 10.04.2

tomcat6Ubuntu

I've recent un-installed apache2 so I could run Tomcat6 on port 80 directly. I've been pulling my hair out trying to get this set up correctly.

I've read this post regarding setting up tomcat to use authbind. I tried that method, and instead of getting stacktrace errors in catalina.out, I just get a [fail] response on startup, with no output to the logs.

I tried binding tomcat directly to my server's IP address, and then editing /etc/authbind/byuid/ to include that IP address as suggested by enter link description here, but again, the [fail] response on startup with no logging.

The only way I could successfully get tomcat to start on port 80 was to run it as root, which I do not want to do.

What is the correct configuration to run tomcat6 on port 80 using authbind?

Best Answer

If I run any java server that needs to serve up some web pages I generally do so using mod_proxy and have apache do the serving. Then my linux server becomes more multipurpose, as port 80 is controlled by a more language accepting application server.

Generally I run with apache/mod_proxy serving on 80 proxying to 8800(or some high port) for the java site, jboss running on 8800 and iptables configured to deny external requests to 8800.