Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

The environment is Ubuntu 10.04.1 LTS running Tomcat 6 and Apache 2.2 from the repos. Apache is configured to proxy requests to Tomcat, so I really want to turn off Tomcat listening to requests on external IP addresses.

I found out how to change the port number in /etc/tomcat6/server.xml with the Connector tag, but this isn't what I need.

share|improve this question

1 Answer 1

up vote 17 down vote accepted

Inside the Service tag change:

<Connector port="8080" protocol="HTTP/1.1"
...

to:

<Connector address="127.0.0.1" port="8080" protocol="HTTP/1.1"
...

For more information: http://tomcat.apache.org/tomcat-6.0-doc/config/http.html

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.