users@glassfish.java.net

Re: Another thread on virtual servers

From: <glassfish_at_javadesktop.org>
Date: Thu, 31 Jul 2008 19:12:47 PDT

If a blank default-virtual-server would do the trick and return a 404, then yes, that would solve my problem.

I also tried using a "redirector" virtual server that had a webapp that only contained a single JSP that checked the request.getRequestURI() and if it contained "abc" it redirected to http://www.abc.com, and if it contained "def" it would redirect to https://www.def.com.

I couldn't get it to work, though. I changed all default web apps to the redirector, but all it would serve was a blank page for everything. I don't understand why though, since the webapps were correctly paired up with their virtual servers in the Web Applications section.
[Message sent by forum member 'malakh' (malakh)]

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