Java Mailing List Archive

http://www.junlu.com/

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

Re: Host element question

EDMOND KEMOKAI

2006-12-13

Replies:

How do expect that it will resolve the name dev without DNS? you can try
using an IP address if you don't have DNS server.

On 12/13/06, Jim Reynolds <jim.jreynold@(protected):
>
> 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)
>
>


--
"talk trash and carry a small stick."
PAUL KRUGMAN (NYT)
©2008 junlu.com - Jax Systems, LLC, U.S.A.