Java Mailing List Archive

http://www.junlu.com/

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

Host element question

Jim Reynolds

2006-12-13

Replies:

Hello,

Every new install of Tomcat always has a <Host name of localhost> and
that is good.

If I do not have a DNS entry, can I create another <Host> and use a
name of something bogus? Something for me to play with on my local PC?

I tried something like this:
<Host name="localhost" appBase="webapps">

   </Host>

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

    </Host>

And if I hit http://localhost all is happy
But if I hit http://dev nothing pops up?

Anyone?

Thanks,

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