Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

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.

share|improve this answer
The reason is that Glassfish is the standard web server software at my job. Also, we want to implement SUN Policy Agent to control the access, based on credentials in AD/LDAP. Policy Agent works great with Glassfish. – jfmessier Jan 20 '10 at 13:17
The requirement of Policy Agent reduces quite a lot the choice of web software we can use. – jfmessier Jan 20 '10 at 13:17

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.

share|improve this answer
Yes, Glassfish is a Java Container, but also a web server, which can serve plain web pages. I just don't know how to use it as reverse-proxy. – jfmessier Jan 20 '10 at 13:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.