The summary question is as follows.
3 dns records point to the server, all going to the same IP address. 2 dns records should only be served as http. The other dns should only be served by as https. Can this configured in glassfish, if so how?
The details are as follows,
Using GlassfishV2
3 DNS records route to the server at the same IP.
* @(none).domain.org
* www.domain.org
* secure.domain.org
There are 4 context deployed
* context1 (context root ="/")
* context2 (context root ="context2")
* context3 (context root ="context3")
* context4 (context root ="context4")
@(none).domain.org & www.domain.org should only route/listen to http ( the listener on 80)
secure.domain.org should only route/listen to https (the listener on 443)
How I have it configured:
2 listeners
* http-listener-1
o network address:0.0.0.0
o listerner Port:80
o default virtural server:www.domain.org
* http-listner-2
o network address:0.0.0.0
o listerner Port:443
o default virtural server:secure.domain.org
2 Virtual Servers
* virtual-server1
o hosts: www.domain.org,domain.org
o http listeners: http-listner-1
* virtual-server2
o hosts: secure.domain.org
o http listeners: http-listner-2
o default web Module: context4
Results:
http://www.domain.org (context1 displays, this is good)
https://www.domain.org (context4 display, this is wrong, I would like 404 error)
http://domain.org (context1 displays, this is good)
https://domain.org (context4 display, this is wrong, I would like 404 error)
http://secure.domain.org (context1 displays, this is wrong, I would like 404 error)
https://secure.domain.org (context4 display, this is good)
[Message sent by forum member 'jsents' (jsents)]
http://forums.java.net/jive/thread.jspa?messageID=288152