I almost forgot - defining two hosts is out of question - some
application-scope objects wouldn't work.
> -----Original Message-----
> From: Deacon Marcus [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, June 09, 2001 12:27 AM
> To: [EMAIL PROTECTED]
> Subject: Problems with aliased hosts (ver 4.0b5)
>
>
> Hi,
> I have:
> <Host name="d1.test" debug="0" appBase="/server/domains/d1.test/http"
> unpackWARs="true">
> <Alias name="d2.test" />
> in my server.xml. The goal is to have urls "http://d1.test/" and
> "http://d2.test" pointing at the same webapp, with shared
> application-scope
> objects, etc. Something like being able to get www.something.com and
> something.com being equals. The problem is, while d1.test works exactly as
> it should, d2.test gives me the default host (tomcat's docs in
> this case). I
> have the same problem on tomcat 4.0b3 + win 98/se, 4.0b5 + win 98/se, and
> 4.0b5 + redhat 7.1, with jdk 1.3 and jdk 1.4. d1.test and d2.test are
> aliases for 127.0.0.1 in /etc/hosts and /windows/hosts depending on
> platform.
>
> I hope I'm wrong, but it looks like <Alias/> is just not implemented ??
>
> Is this a known problem? Is there any workaround? Could someone give me
> working example of such configuration? This is critical to me, I have to
> have it working next week.
>
> Thanks in advance,
> deacon Marcus