Re: 2 Apache 1 Tomcat

2009-12-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Elli, On 12/17/2009 10:45 PM, Elli Albek wrote: > A note on reverse proxy: > request.getRemoteIP() will normally return the IP of the proxy and not > the IP of the client. This is a good point, but only pertains to HTTP proxying. If you use AJP, the

Re: 2 Apache 1 Tomcat

2009-12-17 Thread Elli Albek
A note on reverse proxy: request.getRemoteIP() will normally return the IP of the proxy and not the IP of the client. In Tomcat you will probably need to add a valve such as RemoteIPValve (search this list) to fix the IP of the incoming request. Otherwise your log files will show the IP of the prox

Re: 2 Apache 1 Tomcat

2009-12-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Fernando, On 12/17/2009 7:42 AM, Fernando Monteiro Duarte wrote: > Thanks Charles. Enabling 2 AJP Connector works fine. I wonder if the problem was that 2 httpd instances were simply trying to open too many connections to Tomcat. A single connector w

Re: 2 Apache 1 Tomcat

2009-12-17 Thread Fernando Monteiro Duarte
Thanks Charles. Enabling 2 AJP Connector works fine. Elli, I have already tested with mod_proxy and works fine as well. But what is the best configuration? mod_proxy (HTTP protocol) or mod_jk (AJP protocol) anyone knows this? Thanks, Fernando On Wed, Dec 16, 2009 at 7:15 PM, Elli Albek wrote:

Re: 2 Apache 1 Tomcat

2009-12-16 Thread Elli Albek
Or use apache as reverse HTTP proxy in front of Tomcat. In that case tomcat is an HTTP server and there is nothing special to do (just configure HTTP connector). You can put as many apache reverse proxies as you need, tomcat configuration is agnostic to the proxies for the most part. This will also

RE: 2 Apache 1 Tomcat

2009-12-16 Thread Caldarale, Charles R
> From: Fernando Monteiro Duarte [mailto:fmds...@gmail.com] > Subject: 2 Apache 1 Tomcat > > I have 2 Apache HTTPD server with my portal. Now I have 1 applicattion > that is in a Tomcat server. > I would like to configure mod_jk in these 2 Apache HTTPD to this 1 > Apache To

2 Apache 1 Tomcat

2009-12-16 Thread Fernando Monteiro Duarte
Hi, I have 2 Apache HTTPD server with my portal. Now I have 1 applicattion that is in a Tomcat server. I would like to configure mod_jk in these 2 Apache HTTPD to this 1 Apache Tomcat. If I configure 1 Apache HTTPD with 1 Apache Tomcat, the application works perfectly, but if I configure the 2 Ap