tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Cheung <>
Subject RE: OT tomcat embedded 5.5 localhost alias
Date Wed, 22 Aug 2007 01:42:32 GMT
That explains things quite clearly
thanks for the quick reply :)

> From:> To:> Subject: Re: OT
tomcat embedded 5.5 localhost alias> Date: Tue, 21 Aug 2007 21:38:13 -0400> > It
has nothing to with Tomcat in this case.> > http://localhost> > equals> >> > equals> > http://AAA.BBB.CCC.DDD (the IP address of the machine)>
> When it comes to accessing the web page from the machine that is hosting the > site.>
> The above is not exactly correct when it comes to things like firewalls and > such.
So please no lectures on this.> > The first two only work from the machine to itself.>
> The third will work from any machine that can connect to the host via a > network.>
> Now in order to use http://myHost there must be something to convert it to > either
the second or third item above. On the Internet the DNS servers do > this for you. For
local use you either have to have a DNS server with the > entry for myHost OR use a host
file. If you find your host file and open it > you will find the entry that makes the first
example above work. If you are > running this on someone else's machine then I am unaware
of any means to do > this without modifying their host file.> > Someone on the list
may have a way that I am not aware of.> > > > ----- Original Message ----- >
From: "Alex Cheung" <>> To: <>>
Sent: Tuesday, August 21, 2007 8:25 PM> Subject: tomcat embedded 5.5 localhost alias>
> > Hi> I am using tomcat embedded 5.5 to demo a web application on cd.> >
I can't figure out how to change the URL string > fromhttp://localhost:8080/..... to http://myHost:8080/......>
> addAlias and setHostName dont seem to work.> > following are my host creation code:>
> // set Engine properties baseEngineName = name + "Engine"; > hostName = name + "Host";>
baseEngine.setName(baseEngineName); > baseEngine.setDefaultHost(hostName);> //set host
// ** host name doesnt seem to change the url ** > baseHost = embedded.createHost(hostName,
WEBAPPS); > baseHost.addAlias("myHost"); baseEngine.addChild(baseHost);> > Please
tell me how to change the default localhost URL string or point me in > the right direction.>
(i searched google and came up empty)> > thanksAlex> _________________________________________________________________>
News, entertainment and everything you care about at Get it now!>
> > > ---------------------------------------------------------------------> To
start a new topic, e-mail:> To unsubscribe, e-mail:>
For additional commands, e-mail:> 
Discover the new Windows Vista
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message