with glassfish, i’d like to map say foo.domain.com to one context, and bar.domain.com to another context. is there a purely config way to accomplish this?
with glassfish, i’d like to map say foo.domain.com to one context, and bar.domain.com to
Share
Configure virtual servers as described here and assign your web-apps to them.
Example:
Add the following in the domain.xml inside the
<http-service>element:Then edit the http-listener-1 setting in the
<network-config>element. Change the port number, if the listener should listen to a different port:Finally set the virtual server as default for your web application (in the
<server>element. Replace app-name with the name of your webapp: