Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

Re: Something other than localhost on OS X

Hassan Schroeder

2007-07-24

Replies:

On 7/24/07, Colin H <hawkett@(protected):

> On OS X, hosts in the local subnet can be accessed as <hostname>.local

mmm, didn't know that, but...

>   So the scenario is that I have tomcat deployed and working on
> host2 port 8080, and want to access it from host1.

> <Host name="host2.local"

..the instance of Tomcat I have running on an OS X box works fine
without that. I just have the default host as 'localhost', and I access
it from other systems as 'http://hostname/' -- here's the exact
entry from server.xml:

<Engine name="Catalina" defaultHost="localhost">
   <Host name="localhost" appBase="/www" />
</Engine>

If you can `ping host2` from host1, it should just work.

FWIW,
--
Hassan Schroeder ------------------------ hassan.schroeder@(protected)

---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.