Hi,
In our case, we use the Apache as proxy to be able to distribute our
applications among several instances of servlet containers and/or hosts.
This way, upgrading an application doesn't affect the rest and if we
have to stop/start a container, just one or two applications are
affected. On the other hand, using mod_proxy allows us to concentrate
all applications in ports 80 and 443, thus avoiding some nasty firewall
problems with some of our users. In our case, as our applications are
not too heavy loaded but we have more than a dozen, flexibility and easy
maintenance are more important than speed. As a goody, we configured
Apache so it detects automatically a 500 error and redirects the result
to an SSI script, which loads the appropriate "Application X is being
manteined" instead of letting the user get a "server not responding",
whenever we stop one of the container instances. And we can use the
proxy as a cache proxy for static content as well.
Just my 2c,
Dan
Paulo Gaspar wrote:
>
> In my case I want to use the help of mod_rewrite to produce a
> static HTML "cache" for "dynamic" pages that are not changed
> very often.
>
> BTW, Jon was the one making the remark on AJP being lighter.
> (And I believe he is right.)
>
> Have fun,
> Paulo Gaspar
>
> -----Original Message-----
> From: Dunlop, Aaron [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 10, 2001 23:24
>
> Yes - it seems to work just fine with Tomcat. I've been experimenting with
> it as a possible authentication and firewall solution, and we may consider
> it as a method for load-balancing as well.
> We're thinking of having Apache segment our webspace by sending requests to
> different apps to different servers (e.g. a production server and a
> demonstration/sales server, both accessible from the same domain) Also,
> apache can authenticate access to certain pages using an LDAP database.
> I'm not sure this is the best solution, and Paulo's probably right that AJP
> would be more efficient, but it seems to be working so far.
> Just my $.02
> Aaron Dunlop
> -----Original Message-----
> From: Jon Stevens [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 10, 2001 1:59 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Use of Apache proxy module to connect to Tomcat
>
> on 4/10/01 1:59 PM, "Paulo Gaspar" <[EMAIL PROTECTED]> wrote:
> > Is this possible for Tomcat too? Pros and cons?
> >
> > Thanks and have fun,
> > Paulo Gaspar
>
> Of course it is.
> Proxy HTTP is probably not as efficient as a lightweight protocol (ie: AJP),
> especially if the two systems are running on the same box (ie: local
> sockets).
> It also doesn't solve the configuration issues.
> All you are doing in this case is putting another layer in front of the
> Tomcat HTTPd. I don't see a reason to do that when the Tomcat HTTPd works
> just fine. All you are gaining is the Apache module features (like
> mod_rewrite).
> -jon