users@glassfish.java.net

Re: How to stop or allow http traffic based on requested url dns informatio

From: <glassfish_at_javadesktop.org>
Date: Mon, 21 Jul 2008 15:27:58 PDT

I think the only way to achieve this would be by setting the value of the "default-virtual-server" attribute (which, BTW, is mandatory according to the domain.xml DTD) of your http-listener-2 to the empty string. This way, your http-listener-2 would only handle requests with a host name equal to "secure.domain.org". In addition, you would deploy context4 only to the virtual server with name "secure.domain.org", by specifying this virtual server as the value of the "--virtualservers" option of the "asadmin deploy" command (when deploying context4).

So far so good. When I tried setting a "default-virtual-server" to the empty string, the domain would not start: the code currently expects a non-empty string. This is a bug that needs to be fixed.

Can you please file an issue?

Thanks!

Jan
[Message sent by forum member 'jluehe' (jluehe)]

http://forums.java.net/jive/thread.jspa?messageID=288214