Search code examples
javasubdomainjava-ee-6glassfish-3

Map a Java Web Application to a subdomain


How do I map my java web application, which I can access by typing :

(ip_address):8080/(program_name)

to a subdomain I just created

(program_name).(website).com

I am using glassfish. I tried searching for it on the internet but the instructions are for tomcat which I couldn't understand.


Solution

  • The concept is called Virtual Server in Glassfish AS. See this link for an example on how to set it up:

    http://pe-kay.blogspot.de/2013/05/configuring-virtual-servers-in-glassfish.html