Question says it all. I would like to use SUN Glassfish 2.0x server as a reverse-proxy server, so that when someone hits this server, he/she is transparently redirected to an internal web site, which runs some old Apache (which we cannot upgrade).
We are using Glassfish already under SuSE Linux for multiple applications. This Glassfish would then have SUN Policy Agent (from OpenSSO) installed to control the access to the box.
(internet) ---> reverse-proxy ---> internal server
Both internal and external should be the same NIC and same IP, preferrably.
Is there any particular reason you need to use Glassfish here as reverse proxy. I would suggest you use squid for this. This article mentions how to use squid for this.
Glassfish seems like a strange choice. I was under the impression that Glassfish is a Java container server.
I'd be more tempted to use Varnish for this, or Squid. I don't know much about glassfish, but I suspect it might be a bit similar to Tomcat. Which probably means you could possibly use it as a proxy server, but this wouldn't really be it's modus operandi, and is likely to cause problems later on.
Use the right tool for the job. It's a bit like using the handle of a screwdriver for driving nails, instead of using a hammer.