Hi to all,
I have 1 ext IP address and 1 glassfish4 server behind router+firewall. I want to host 2 applications with 3 different DNS domain names:
1. domain1.eu (cname: www.domain1.eu)
2. domain1.com (cname: www.domain1.com)
3. domain2.eu (cname: www.domain2.eu)
I've created listener for 80 port, address: 0.0.0.0 and created 2 virtual servers (both servers use the same listener):
1. virtual server name: domain1.eu, hosts: domain1.eu,domain1.com
2. virtual server name: domain2.eu, hosts: domain2.eu
All are working good except domain2.eu access by cname: www.domain2.eu - browser open www.domain1.eu
Is this configuration correct? Question is because of problem in accessing domains by cname and this Glassfish4 administration-guide.pdf paragraph:
----
Before You Begin
A virtual server must specify an existing HTTP listener. Because the virtual server
cannot specify an HTTP listener that is already being used by another virtual server,
create at least one HTTP listener before creating a new virtual server.
----
Thats means that I must create listener for every virtual server right? But how can I use the same port 80 and address: 0.0.0.0 for new listener? Is this only way to create standalone instances with different configuration on the same node?