Re: Session stickiness with mod_proxy_balancer

2021-12-23 Thread Christopher Schultz
"Note that all configuration attributes given explicitly for the later worker will be ignored")(It also says "This will be logged as a warning", so if you still have access to the old log, you could check) Aha! I think this does explain what's happening. I mostly rea

Re: Session stickiness with mod_proxy_balancer

2021-12-22 Thread tomcat/perl
ou had a chance to restore your first configuration, and just moved the ProxyPass above the block. (But in the end, I believe that your 2d configuration is more "solid" anyway). In the end, each httpd add-on module (like mod_proxy and mod_proxy_balancer) is responsible for its own inter

Session stickiness with mod_proxy_balancer

2021-12-22 Thread Christopher Schultz
All, I'm setting up mod_proxy_balancer to talk to Tomcat after having only used mod_jk for a very long time. With a multiple-Tomcat-node situation, I was finding that sessions didn't seem to be "sticking" and I thought I had my configuration correct. Something like this:

Re: mod_proxy_balancer anomaly Question

2011-09-15 Thread André Warnier
Shanti Suresh wrote: All, I am trying to understand some anomaly with mod_proxy and mod_proxy_balancer. mod_proxy works fine if the (reverse)Proxying is done to the local Tomcat Engine rather than going through the balancer. If it goes through the "balancer", then an extra "

Re: mod_proxy_balancer anomaly Question

2011-09-15 Thread Pid
On 15/09/2011 16:18, Shanti Suresh wrote: > All, > > I am trying to understand some anomaly with mod_proxy and mod_proxy_balancer. > mod_proxy works fine if the (reverse)Proxying is done to the local Tomcat > Engine rather than going through the balancer. If it goes through t

mod_proxy_balancer anomaly Question

2011-09-15 Thread Shanti Suresh
All, I am trying to understand some anomaly with mod_proxy and mod_proxy_balancer. mod_proxy works fine if the (reverse)Proxying is done to the local Tomcat Engine rather than going through the balancer. If it goes through the "balancer", then an extra "/" is added on 302

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 12/19/2009 4:22 PM, Mark Thomas wrote: > On 19/12/2009 10:45, André Warnier wrote: >> If this is too vast as a question, just let me know and point me where >> to get started maybe ? > > Not at all, although this is heading off topic. I'd st

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-21 Thread André Warnier
Bill Barker wrote: ... Which gives a third option to the OP, which is to use the useIPVHosts="true" option on the , and only configure s for the ones that he wants to allow to connect (and the default Host just returns 404 to every request). Yes, that possibility was kind of nagging at me s

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-20 Thread Bill Barker
"Mark Thomas" wrote in message news:4b2e4e77.3000...@apache.org... > On 20/12/2009 16:04, André Warnier wrote: >> In other words : it seems that quite early in the request process, a >> decision is taken to *replace* the remote IP address as obtained from >> the socket, by the ultimate IP of the

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-20 Thread Rainer Jung
On 20.12.2009 21:00, André Warnier wrote: Mark Thomas wrote: ... This is one of those times where the solution will depend on the protocol you are using. The AJP connectors will report the client's IP address so you need an alternative solution. Using the "request.secret" attribute is probably

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-20 Thread André Warnier
Mark Thomas wrote: ... This is one of those times where the solution will depend on the protocol you are using. The AJP connectors will report the client's IP address so you need an alternative solution. Using the "request.secret" attribute is probably the simplest fix although keep in mind tha

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-20 Thread Mark Thomas
On 20/12/2009 16:04, André Warnier wrote: > In other words : it seems that quite early in the request process, a > decision is taken to *replace* the remote IP address as obtained from > the socket, by the ultimate IP of the client for which this proxy > request is being processed. This casts a do

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-20 Thread André Warnier
Mark Thomas wrote: On 19/12/2009 10:45, André Warnier wrote: ... To get back to the main issue, as long as I anway get the hang of this stuff, and have checked out the SVN of Tomcat anyway, where in the /valves stuff do I find where it actually checks the "remote IP" against which RemoteAddres

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-19 Thread Bill Barker
"André Warnier" wrote in message news:4b2caede.6070...@ice-sa.com... > Bill Barker wrote: > ... >> If you have a svn checkout, then the command: >> svn diff LocalStrings_fr.properties > LocalStrings_fr.properties.patch >> will do it. Alternatively, Cygwin has a Unix/Linux like diff utility. >

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-19 Thread Mark Thomas
On 19/12/2009 10:45, André Warnier wrote: > Bill Barker wrote: > ... >> If you have a svn checkout, then the command: >> svn diff LocalStrings_fr.properties > LocalStrings_fr.properties.patch >> will do it. Alternatively, Cygwin has a Unix/Linux like diff utility. >> >> Also, for a translation,

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-19 Thread André Warnier
Bill Barker wrote: ... If you have a svn checkout, then the command: svn diff LocalStrings_fr.properties > LocalStrings_fr.properties.patch will do it. Alternatively, Cygwin has a Unix/Linux like diff utility. Also, for a translation, it's probably not too bad if you just attach the fixed fi

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-18 Thread Bill Barker
"André Warnier" wrote in message news:4b2bdc92.9050...@ice-sa.com... > Christopher Schultz wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> Mark, >> >> On 12/18/2009 11:42 AM, Mark Thomas wrote: >>> On 18/12/2009 16:21, André Warnier wrote: or do I need some special edi

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-18 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 12/18/2009 11:42 AM, Mark Thomas wrote: On 18/12/2009 16:21, André Warnier wrote: or do I need some special editor or setting, or do I just convert these codes to their UTF-8 equivalents and submit it as such ?

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 12/18/2009 11:42 AM, Mark Thomas wrote: > On 18/12/2009 16:21, André Warnier wrote: >> or do I need some >> special editor or setting, or do I just convert these codes to their >> UTF-8 equivalents and submit it as such ? > > You can use: >

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-18 Thread Mark Thomas
On 18/12/2009 16:21, André Warnier wrote: > Mark Thomas wrote: >> On 18/12/2009 15:20, André Warnier wrote: >>> By the way, in the file LocalStrings_fr.properties that is in that same >>> directory, there are quite a few typos. That's more my level, me being >>> a native French speaker and all. >>

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-18 Thread André Warnier
Mark Thomas wrote: On 18/12/2009 15:20, André Warnier wrote: By the way, in the file LocalStrings_fr.properties that is in that same directory, there are quite a few typos. That's more my level, me being a native French speaker and all. How do I submit a corrected version, with a minimum of fus

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-18 Thread Mark Thomas
On 18/12/2009 15:20, André Warnier wrote: > By the way, in the file LocalStrings_fr.properties that is in that same > directory, there are quite a few typos. That's more my level, me being > a native French speaker and all. > How do I submit a corrected version, with a minimum of fuss ? Get the l

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-18 Thread André Warnier
Caldarale, Charles R wrote: From: André Warnier [mailto:a...@ice-sa.com] Subject: Re: Using RemoteAddressValve with an Apache mod_proxy_balancer If anyone points me to where the code of the RemoteAddrValve can be found, I'd like to have a look. Download the source package, and lo

RE: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-17 Thread Caldarale, Charles R
> From: André Warnier [mailto:a...@ice-sa.com] > Subject: Re: Using RemoteAddressValve with an Apache mod_proxy_balancer > > If anyone points me to where the code of the RemoteAddrValve can be > found, I'd like to have a look. Download the source package, and look in: apac

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-17 Thread André Warnier
uot;secret" is not amongst them. Bill, your post is a gem. Indeed, I can always use network ACLs and iptables and mod_jk, but I was really hoping to do mod_proxy_balancer. While there's some administrative separations between the programmers and the system administrators that prevent me fr

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-17 Thread Rainer Jung
t amongst them. Bill, your post is a gem. Indeed, I can always use network ACLs and iptables and mod_jk, but I was really hoping to do mod_proxy_balancer. While there's some administrative separations between the programmers and the system administrators that prevent me from writing servlets

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-17 Thread André Warnier
Bill, your post is a gem. Indeed, I can always use network ACLs and iptables and mod_jk, but I was really hoping to do mod_proxy_balancer. While there's some administrative separations between the programmers and the system administrators that prevent me from writing servlets on top of T

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-16 Thread Martin B. Smith
> > > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > André, thank you for the suggestions. I had considered them, but wante

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-16 Thread Bill Barker
"André Warnier" wrote in message news:4b294eb6.4090...@ice-sa.com... > Martin B. Smith wrote: >> Howdy! >> >> I'm trying to ensure that only specific instances of Apache are allowed >> to proxy requests into my Tomcat 5.5.28 instances. Unfortunately, it >> looks like Tomcat is seeing the actua

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-16 Thread André Warnier
Martin B. Smith wrote: Howdy! I'm trying to ensure that only specific instances of Apache are allowed to proxy requests into my Tomcat 5.5.28 instances. Unfortunately, it looks like Tomcat is seeing the actual client IP making the original request to Apache. Does anyone have a configuration t

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-16 Thread André Warnier
Martin B. Smith wrote: Howdy! I'm trying to ensure that only specific instances of Apache are allowed to proxy requests into my Tomcat 5.5.28 instances. Unfortunately, it looks like Tomcat is seeing the actual client IP making the original request to Apache. Does anyone have a configuration t

Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-16 Thread Martin B. Smith
Howdy! I'm trying to ensure that only specific instances of Apache are allowed to proxy requests into my Tomcat 5.5.28 instances. Unfortunately, it looks like Tomcat is seeing the actual client IP making the original request to Apache. Does anyone have a configuration that only allows specifi

Re: Connection errors with mod_proxy_balancer and tomcat 5.5

2009-03-26 Thread Janning Vygen
nse on "prefork". max should be 1 with prefork > model. But i think this is not the reason. > > if max=100 is not effective, there "could" be situations where MaxClients > of 300 all go to one tomcat beca

Connection errors with mod_proxy_balancer and tomcat 5.5

2009-03-25 Thread Janning Vygen
se of session affinity. But this is rather theoretical. Maybe i can't use keepalive on the tomcat side. But it seems to work. But honestly: i am clueless. Do you have any hints why i do encounter these connection errors? Or does anybody has a running configuration with apache2.2, mod_pro

Re: mod_proxy_balancer and session affinity

2009-03-12 Thread Rainer Jung
On 12.03.2009 10:43, Andrew Hole wrote: Hi guys! I can't find any documentation regarding session affinity using mod_proxy_balancer (http protocol). Anyone have or know where i cand find it? Look for "route" and "stickysession" on the page http://httpd.apache.org/do

mod_proxy_balancer and session affinity

2009-03-12 Thread Andrew Hole
Hi guys! I can't find any documentation regarding session affinity using mod_proxy_balancer (http protocol). Anyone have or know where i cand find it? Thanks

Re: mod_proxy_balancer

2008-10-14 Thread Rainer Jung
AD schrieb: > Hassan, > > Sorry about the copy/paste issue, i meant to use AJP > > My issue is that the tomcat app, seems to want to redirect to > /myapp1/some/file.html for a 302 (as an example) which is causing the > issue. is there a way around this ? This path gets back to apache which >

Re: mod_proxy_balancer

2008-10-14 Thread Hassan Schroeder
On Tue, Oct 14, 2008 at 7:20 AM, AD <[EMAIL PROTECTED]> wrote: > My issue is that the tomcat app, seems to want to redirect to > /myapp1/some/file.html for a 302 (as an example) which is causing the > issue. is there a way around this ? This path gets back to apache which > gets back to the en

Re: mod_proxy_balancer

2008-10-14 Thread AD
Hassan, Sorry about the copy/paste issue, i meant to use AJP My issue is that the tomcat app, seems to want to redirect to /myapp1/some/file.html for a 302 (as an example) which is causing the issue. is there a way around this ? This path gets back to apache which gets back to the end user w

Re: mod_proxy_balancer

2008-10-13 Thread Hassan Schroeder
Rats, sorry, copy/paste failure there, mail sent prematurely ... Assuming port 8080 -- BalancerMember http://localhost:8080/app1/ BalancerMember http://localhost:8080/app2/ And that would be configured the same for both virtual hosts. ProxyPass / balancer://whatever/ ProxyPassReverse

Re: mod_proxy_balancer

2008-10-13 Thread Hassan Schroeder
On Mon, Oct 13, 2008 at 7:17 PM, AD <[EMAIL PROTECTED]> wrote: > If i have a tomcat app deployed at http://localhost:8080/myapp1/ and > http://localhost:8080/myapp2/ and i want 2 virtualhosts in apache to map "/" > to each one of these apps, is this possible? Possible? Sure. Good idea? Probably

mod_proxy_balancer

2008-10-13 Thread AD
hello, If i have a tomcat app deployed at http://localhost:8080/myapp1/ and http://localhost:8080/myapp2/ and i want 2 virtualhosts in apache to map "/" to each one of these apps, is this possible? Trying something like BalancerMember ajp://localhost:8009/app1/ BalancerMember ajp://loc

RE: jk2 vs mod_jk and mod_proxy_balancer

2008-03-28 Thread frannack Guimard
gt; From: [EMAIL PROTECTED] > To: users@tomcat.apache.org > Subject: Re: jk2 vs mod_jk and mod_proxy_balancer > > frannack Guimard schrieb: > > Rainer, > > > > Thank you for your input. I send you another e-mail but it looks like you > > didn't

Re: jk2 vs mod_jk and mod_proxy_balancer

2008-03-28 Thread Rainer Jung
rs@tomcat.apache.org Subject: Re: jk2 vs mod_jk and mod_proxy_balancer frannack Guimard schrieb: Hello, I just looked at mod_jk2. I was looking for a way to add programmatically a worker to the balancer with mod_jk or mod_proxy_balancer, but couldn't find a way. And then I saw in the mod_j

RE: jk2 vs mod_jk and mod_proxy_balancer

2008-03-28 Thread frannack Guimard
make that work a way or an other to manage my zillion tomcat instances :) Thank you. Franck > Date: Fri, 28 Mar 2008 17:16:53 +0100 > From: [EMAIL PROTECTED] > To: users@tomcat.apache.org > Subject: Re: jk2 vs mod_jk and mod_proxy_balancer > > frannack Guimard schrieb: >

Re: jk2 vs mod_jk and mod_proxy_balancer

2008-03-28 Thread Rainer Jung
frannack Guimard schrieb: Hello, I just looked at mod_jk2. I was looking for a way to add programmatically a worker to the balancer with mod_jk or mod_proxy_balancer, but couldn't find a way. And then I saw in the mod_jk2 documentation: 1. Edit workers2.properties. Add a new channel. I

jk2 vs mod_jk and mod_proxy_balancer

2008-03-28 Thread frannack Guimard
Hello, I just looked at mod_jk2. I was looking for a way to add programmatically a worker to the balancer with mod_jk or mod_proxy_balancer, but couldn't find a way. And then I saw in the mod_jk2 documentation: 1. Edit workers2.properties. Add a new channel. If you want, also add a worke

[SOLVED]: mod_proxy_balancer: how to define failover (only)/hot standby behavior?

2006-01-25 Thread andreas.wieczorek
Mladen Turk wrote: >Right, sorry :) >status=d or status=D >(a single letter). >there is additional stopped option (s), so you can >concat those, (eg. status=SD means stopped and disabled). >If you edit httpd.conf and restart apache then you add >+ or - prefixes. >For example if status was disabled

Re: WG: mod_proxy_balancer: how to define failover (only)/hot standby behavior?

2006-01-25 Thread Mladen Turk
[EMAIL PROTECTED] wrote: Mladen Turk wrote: No. It works with any protocol. BalancerMember ajp://hotstandby status=disabled BalancerMember ajp://node1 redirect=hotstandby BalancerMember ajp://node2 redirect=hotstandby ... BalancerMember ajp://nodeN redirect=hotstandby The only p

WG: mod_proxy_balancer: how to define failover (only)/hot standby behavior?

2006-01-25 Thread andreas.wieczorek
> Mladen Turk wrote: > No. It works with any protocol. > > > BalancerMember ajp://hotstandby status=disabled > BalancerMember ajp://node1 redirect=hotstandby > BalancerMember ajp://node2 redirect=hotstandby > ... > BalancerMember ajp://nodeN redirect=hotstandby > > > The only problem

Re: mod_proxy_balancer: how to define failover (only)/hot standby behavior?

2006-01-24 Thread Mladen Turk
[EMAIL PROTECTED] wrote: Hello, using Apache 2.2.0/mod_proxy_balancer, is it possible to configure a proxy balancer with two balancer members, where one of the two only gets the requests, if the other one fails? Sure, use status="disabled" and redirect="xxx". So... Bala

Re: mod_proxy_balancer: how to define failover (only)/hot standby behavior?

2006-01-24 Thread Jim Jagielski
M, <[EMAIL PROTECTED]> wrote: Hello, using Apache 2.2.0/mod_proxy_balancer, is it possible to configure a proxy balancer with two balancer members, where one of the two only gets the requests, if the other one fails? In mod_jk that was possible using "local_worker_only", but with

mod_proxy_balancer: how to define failover (only)/hot standby behavior?

2006-01-24 Thread andreas.wieczorek
Hello, using Apache 2.2.0/mod_proxy_balancer, is it possible to configure a proxy balancer with two balancer members, where one of the two only gets the requests, if the other one fails? In mod_jk that was possible using "local_worker_only", but with mod_proxy_balancer I ha