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

If I want to access Tomcat directly from a remote host, i.e. not through Apache, should I configure the connector to use localhost or the external IP/hostname? What if it's on a Windows server and I want to access it both remotely and from the desktop or from two different external IPs - do I need multiple connectors and multiple directories under conf/Catalina/ or can I somehow connect two hosts to the same directory?

share|improve this question

1 Answer 1

You should use the external host name for the connector.

As long as the server is accessible from the all networks you're using with the external IP, you're good to go - no extra configuration.

If you do need multiple host names/IPs, you can do what the tomcat documentation suggests:

<Host name="www.mycompany.com" ...>
    <Alias>mycompany.com</Alias>
     ...
</Host>
share|improve this answer
    
Robert, you helped me saved a lot of space in my server.xml files, I was duplicating the host entries for each url alias. thanks again! –  Geo Jun 24 '09 at 22:09

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.