You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Paulo Gaspar <pa...@krankikom.de> on 2001/04/10 22:59:49 UTC
Use of Apache proxy module to connect to Tomcat
Taking a look at Orion I just bumped on this one:
http://www.orionsupport.com/articles/apachefrontend.html
Their solution to use Apache as a front end is:
"Use Apache as a reverse proxy."
And there is even a sample for httpd.conf:
...
LoadModule etc..
LoadModule proxy_module /path/to/apache/library/libproxy.so
LoadModule etc..
...
<VirtualHost www.bigcorp.com>
ProxyVia On
ProxyPass /myapp http://orion.private.bigcorp.com:9876/
ProxyPassReverse /myapp http://orion.private.bigcorp.com:9876/
...
</VirtualHost>
Is this possible for Tomcat too? Pros and cons?
Thanks and have fun,
Paulo Gaspar
RE: Use of Apache proxy module to connect to Tomcat
Posted by Paulo Gaspar <pa...@krankikom.de>.
Thanks Jon,
That gave me a good enough perspective of the pros and cons. I have a
scenario where using the proxy could actually be better.
Have fun,
Paulo Gaspar
> -----Original Message-----
> From: Jon Stevens [mailto:jon@latchkey.com]
> Sent: Tuesday, April 10, 2001 22:59
>
>
> on 4/10/01 1:59 PM, "Paulo Gaspar" <pa...@krankikom.de> 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
Re: Use of Apache proxy module to connect to Tomcat
Posted by Jon Stevens <jo...@latchkey.com>.
on 4/10/01 1:59 PM, "Paulo Gaspar" <pa...@krankikom.de> 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