users@glassfish.java.net

Re: Two domains in glassfish?

From: Jan Luehe <Jan.Luehe_at_Sun.COM>
Date: Thu, 04 Dec 2008 20:51:39 -0800

On 12/ 4/08 07:49 PM, glassfish_at_javadesktop.org wrote:
> So simple...
>
> http://www.aaa.com for application A
>
> http://www.bbb.com for application B
>
> Can I have this in GlassFish V2 UR2?
>
> All right guys, i know it sounds stupid... but i've been trying for a while and I can't get it right
>
> All I want is to have to web applications on the same machine.
>
> It is a commercial thing for the internet so i can't go with aaa.com:8080 or using directory stuff like
>
> http://aaa.com/aaaa
>
> nor
>
> http://bbb.com/bbb
>
> I configured as default web module application A for the virtual server "server"
>
> and thankfully that gets me to http://www.aaa.com to my application A
>
> I've tried creating a second virtual server "second-server" that takes "www.bbb.com" in the hosts list using http-listener-1 and default web module application B but i get a Server HTTP 500 error
>
> Do you know how to do it?
>

You've done it exactly right. This is supposed to work the way you intended.
Can I see your domain.xml?

Thanks,

Jan