First & fore mostly, you have to configure your DNS settings, Name servers to redirect into your glassfish hosted server from the DNS control panel.
Then you got to configure, your server depending on requested registered domain name to access your glassfish server via app web.xml
[Message sent by forum member 'chameera' (chameera)]
http://forums.java.net/jive/thread.jspa?messageID=353509