Re: Session stickiness with mod_proxy_balancer

2021-12-23 Thread Christopher Schultz
e 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 read the mod_proxy_b

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 o

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: Bala

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 Redirects after

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 the balancer

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 / is added on 302

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 Connector ... /, and only configure Host .../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

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 start

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

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 doubt

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 that

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 Bill Barker
Mark Thomas ma...@apache.org 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

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

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, it's

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-19 Thread Bill Barker
André Warnier a...@ice-sa.com 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

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 look

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

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

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. How do I

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 Bill Barker
André Warnier a...@ice-sa.com 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 editor or

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-17 Thread André Warnier
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 Tomcat, this is a nice tip. All in all, I personally like Bill's lazy

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-17 Thread Rainer Jung
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 Tomcat, this is a nice tip. All in all, I personally

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-17 Thread André Warnier
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 Tomcat, this is a nice tip. All

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: apache-tomcat-6.0.20-src/java

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

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

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

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-16 Thread Bill Barker
André Warnier a...@ice-sa.com 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

Re: Using RemoteAddressValve with an Apache mod_proxy_balancer

2009-12-16 Thread Martin B. Smith
for the suggestions. I had considered them, but wanted some additional, more specific protections without going to mod_jk. 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

Re: Connection errors with mod_proxy_balancer and tomcat 5.5

2009-03-26 Thread Janning Vygen
? Or does anybody has a running configuration with apache2.2, mod_proxy_balancer and tomcat 5.5. where these problems does not occur? kind regards Janning - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org

Connection errors with mod_proxy_balancer and tomcat 5.5

2009-03-25 Thread Janning Vygen
errors? Or does anybody has a running configuration with apache2.2, mod_proxy_balancer and tomcat 5.5. where these problems does not occur? kind regards Janning - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org

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 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/docs/2.2/mod/mod_proxy.html

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 end

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 gets

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

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 Proxy balancer://app1/ BalancerMember ajp://localhost:8009/app1/

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 not.

Re: mod_proxy_balancer

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

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 worker.ajp

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. If you

RE: jk2 vs mod_jk and mod_proxy_balancer

2008-03-28 Thread frannack Guimard
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: Hello, I just looked

Re: jk2 vs mod_jk and mod_proxy_balancer

2008-03-28 Thread Rainer Jung
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_jk2 documentation: 1. Edit

RE: jk2 vs mod_jk and mod_proxy_balancer

2008-03-28 Thread frannack Guimard
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 get. I tried to use apachectl graceful after updating my worker.properties files

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. Proxy balancer://mycluster BalancerMember ajp://hotstandby status=disabled BalancerMember ajp://node1 redirect=hotstandby BalancerMember ajp://node2 redirect=hotstandby ... BalancerMember ajp://nodeN redirect=hotstandby /Proxy

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. Proxy balancer://mycluster BalancerMember ajp://hotstandby status=disabled BalancerMember ajp://node1 redirect=hotstandby BalancerMember ajp://node2 redirect=hotstandby ... BalancerMember ajp://nodeN

[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 you

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 have not yet understood

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

2006-01-24 Thread Jim Jagielski
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 I have not yet

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... BalancerMember ajp://xxx