users@glassfish.java.net

Re: Virtual Servers on GlassFish v1 and V2

From: <glassfish_at_javadesktop.org>
Date: Wed, 26 Nov 2008 21:39:05 PST

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

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