users@glassfish.java.net

Pointing Glassfish At Apache

From: Joshua Smith <josh_at_rationalpi.com>
Date: Wed, 24 Mar 2010 11:17:18 -0400

Glassfish Users-

I have a web server running Glassfish V3 listening on port 80. Users are
able to hit the server with a variety of URLs (via DNS aliases) and,
depending on the URL, they are sent to the appropriate web application being
hosted by Glassfish. I also have applications being hosted by Apache on the
same server.

How can I configure Glassfish to send send users to applications being
hosted by Apache?

This is the mapping that I'm looking for. The first two are easy. The last
one is what I don't know how to do.

URL Hitting Glassfish Handled By
----------------------------------------------------
http://mybuild.com http://myserver:8080/build (Glassfish)
http://mywiki.com http://myserver:8089/wiki (Glassfish)
http://myBlah http://myserver:8042 (Apache)

Web redirects are not an option because they make the client issue a new
request and some of the clients are not web browsers.

I've searched online and in the manuals, but couldn't find anything. Part of
the problem is that I don't know what it's called. It's kind of like virtual
hosting, but instead of pointing at an application or a document root, I
need to point at a URL. Any suggestions?
Thanks,
Josh