users@glassfish.java.net

Re: Virtual Servers on GlassFish v1 and V2

From: Jan Luehe <Jan.Luehe_at_Sun.COM>
Date: Mon, 01 Dec 2008 09:31:20 -0800

On 11/26/08 09:39 PM, glassfish_at_javadesktop.org wrote:
> Using the configurations from the original post:
> *******************
> Web Applications (jamwiki.org)
> - Name: jamwiki-war
> - Context Root: jamwiki-war
>
> HTTP Listeners:
> - Name: http-listener-3
> - Network Address: 0.0.0.0
> - Listener Port: 80
> - Default Web Server: jamwiki-war
>
> Virtual Server (Sample Domain Only):
> - Id: aaa-com
> - Hosts: aaa.com,www.aaa.com
> - HTTP Listener: http-listener-3
> - Default Web Module: jamwiki-war
> *******************
> In GlassFish v1, if you go to http://aaa.com, all the links does not contain the context root (jamwiki-war). Link sample:
>
> http://aaa.com/en/StartingPoints
> http://aaa.com/en/Special:RecentChanges
> http://aaa.com/en/Sandbox
>
> In GlassFish v2 and v3, the context root (jamwiki-war) becomes part of the link. Link sample:
>
> http://aaa.com/jamwiki-war/en/StartingPoints
> http://aaa.com/jamwiki-war/en/Special:RecentChanges
> http://aaa.com/jamwiki-war/en/Sandbox
>

Do you know how those links are being generated?

Thanks,

Jan


> Accessing it from localhost is consistent in all versions. By going to http://localhost:8080/jamwiki-war/, the link sample becomes:
>
> http://localhost:8080/jamwiki-war/en/StartingPoints
> http://localhost:8080/jamwiki-war/en/Special:RecentChanges
> http://localhost:8080/jamwiki-war/en/Sandbox
>
> The difference between v1 and v2/v3 is still there in v2.1-b60a.
> [Message sent by forum member 'amerigo5' (amerigo5)]
>
> http://forums.java.net/jive/thread.jspa?messageID=318932
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>