Re: Skip or minimise Apache log phase

2008-10-09 Thread Hendrik Van Belleghem
Hi André, If you're looking into the mod_perl approach, you might want to have a peek at Apache::LogIgnore. I developed the module for Apache v1 and haven't tested it on v2 but it might be a good place to start. http://search.cpan.org/~beatnik/Apache-LogIgnore-0.03/ HTH Hendrik 2008/10/8 André

Free to wrong pool error in Apache logs under high load

2008-10-09 Thread Scott Tomilson
Hi all, Apologies if this isn't the right forum, but I am not sure where to turn to... I have mod_perl 2.0.4 installed with ActivePerl 5.10.0 under Apache 2.2.9 running on Windows 2003 Server SP1. I have a very simple PerlResponseHandler hooked in via httpd.conf for a specific Location. My

Re: Skip or minimise Apache log phase

2008-10-09 Thread André Warnier
Hendrik Van Belleghem wrote: Hi André, If you're looking into the mod_perl approach, you might want to have a peek at Apache::LogIgnore. I developed the module for Apache v1 and haven't tested it on v2 but it might be a good place to start. http://search.cpan.org/~beatnik/Apache-LogIgnore-0.03/

Re: $r-connection-remote_ip with proxy and non proxy env

2008-10-09 Thread Heiko Jansen
Am Mittwoch, den 08.10.2008, 10:06 -0700 schrieb Fred Moyer: You could also do something like: if (my $ip = $r-headers_in-{'X-Forwarded-For'}) { $r-connection-remote_ip( $ip ); } But (as I learned the hard way long ago) you should check the value of the X-Forwarded-For header: On

Re: Free to wrong pool error in Apache logs under high load

2008-10-09 Thread André Warnier
Scott Tomilson wrote: Hi all, Apologies if this isn't the right forum, but I am not sure where to turn to... I have mod_perl 2.0.4 installed with ActivePerl 5.10.0 under Apache 2.2.9 running on Windows 2003 Server SP1. Well, that sounds like you are in the right forum anyway.. I have a

Re: Internal redirect inside an input filter

2008-10-09 Thread Torsten Foertsch
On Thu 09 Oct 2008, Dan DeSmet wrote: I'm attempting to write an input filter that performs an internal redirect based on the contents of the cookies sent in the request headers. Why an input filter? What you want is better done in a PerlTransHandler or a PerlFixupHandler. Torsten -- Need

Internal redirect inside an input filter

2008-10-09 Thread Dan DeSmet
I'm attempting to write an input filter that performs an internal redirect based on the contents of the cookies sent in the request headers. The problem I'm encountering is that the browser is receiving both the content for the original request, as well as the content generated by the internal

Re: Internal redirect inside an input filter

2008-10-09 Thread Dan DeSmet
I took your advice and tried switching it over to a TransHandler. Now, the beginning of the handler where I manipulate the cookies looks like this: sub handler { my $r = shift; my $cookieString = $r-headers_in-get('Cookie'); ... } I then do a check to see if the cookies exist; that

Re: Internal redirect inside an input filter

2008-10-09 Thread Dan DeSmet
Thanks for your help. Your confirmation led me to track down the real problem, which is that I marked the cookies secure, and forgot to do https rather than http in my browser URL. If not for your help, there's no telling how long I would've spent trying to fix a problem in my code that didn't

Re: Free to wrong pool error in Apache logs under high load

2008-10-09 Thread Perrin Harkins
On Thu, Oct 9, 2008 at 3:07 AM, Scott Tomilson [EMAIL PROTECTED] wrote: Free to wrong pool da2750 not 184a6a8. Which leads me to believe there is something funny going on with multiple threads, etc. In the past these have typically been threading problems. I don't run Windows or threads, so

64-bit mod_perl 2 on Mac OSX 10.5 (Leopard)

2008-10-09 Thread Chetan Sarva
Hi, I'm trying to compile mod_perl 2 on a Xeon (x86_64) box. I'm unclear as to the dependencies I need to compile it correctly. Everything is default as shipped by Apple. A bit of investigation reveals the following potential mismatch - geonosis:~ chetan$ which perl /usr/bin/perl

Re: 64-bit mod_perl 2 on Mac OSX 10.5 (Leopard)

2008-10-09 Thread Fred Moyer
Chetan Sarva wrote: Hi, I'm trying to compile mod_perl 2 on a Xeon (x86_64) box. I'm unclear as to the dependencies I need to compile it correctly. Everything is default as shipped by Apple. A bit of investigation reveals the following potential mismatch - ... geonosis:~ chetan$ which

Re: Free to wrong pool error in Apache logs under high load

2008-10-09 Thread Scott Tomilson
Thanks Perrin. I am running a build of mod_perl I got via perl.apache.org, yes (or I think probably linked to uwinnipeg?). No other modules than the standard ones, plus the standard ActivePerl download from ActiveState. We actually tried the same solution on Solaris and it worked fine. It does