Search code examples
glassfishhostingdnsglassfish-3virtualhost

glassfish v3 multiple domain hosting


I have a website running with glassfish and I want to now use the same server to host another domain on a completely new domain name. What are the steps involved in configuring glassfish to support this?


Solution

  • Create a new virtual server and assign the new domain name to it. You can use the admin console to achieve this:

    Configuration --> Virtual Servers --> new

    Assign a name to the new virtual server (Field: Id) and set your domain name (Field: Hosts). Choose one or more http-listeners and restart your server.