Java Mailing List Archive

http://www.junlu.com/

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

Re: Host element question

Jim Reynolds

2006-12-13

Replies:

Thanks for responses:
I did have a hosts file in my Drivers/etc so here it is. I added the 199.9.9.99
#     38.25.63.10   x.acme.com         # x client host

127.0.0.1     localhost
199.9.9.99  devSite

That is not of course the IP of my machine, I just made it up.

Then I updated my server.xml file like so:
<Engine name="Catalina" defaultHost="localhost">
   <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
        resourceName="UserDatabase" />

   <Host name="localhost" appBase="webapps">

   </Host>

   <Host name="devSite" debug="0" appBase="/dev"
     unpackWARs="true" autoDeploy="true">
        <Context path="" docBase=""
           debug="5" reloadable="true" crossContext="true" />

    </Host>
  </Engine>

But when I hit [http://devSite], I get a timeout error?
Any ideas? I also tried http://199.9.9.99 but nothing?



On 12/13/06, EDMOND KEMOKAI <ekemokai@(protected):
> nice to know that.
>
> On 12/13/06, Hassan Schroeder <hassan.schroeder@(protected):
> >
> > On 12/13/06, EDMOND KEMOKAI <ekemokai@(protected):
> > > How do expect that it will resolve the name dev without DNS?
> >
> > DNS is not the only name resolution mechanism :-)
> >
> > For desktop development use, just put all the alias hostnames you
> > want in your own /etc/hosts file (or for those stuck on Windows, in
> > something like c:\WINDOWS\system32\drrivers\etc\hosts).
> >
> > An easy and convenient way to separate projects that each need
> > (or expect) their own ROOT context.
> >
> > 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)
> >
> >
>
>
> --
> "talk trash and carry a small stick."
> PAUL KRUGMAN (NYT)
>
>

---------------------------------------------------------------------
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.