Re: Skip or minimise Apache log phase

2008-10-08 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é

RE: Cannot start Apache with mod_perl

2008-10-08 Thread Ircha, Andrew
Thanks for the suggestion. Errant symbols implied a build on the server might be an idea. Sad to say I tried downloading the sources and running 'perl Makefile.PL' etc before posting my message. Yes, I navigated to /etc/httpd/modules to look at mod_perl.so to check the file modification time.

Re: Skip or minimise Apache log phase

2008-10-08 Thread Fred Moyer
André Warnier wrote: Fred Moyer wrote: André Warnier wrote: Thanks for the answer and the above code. But what about the following ? http://perl.apache.org/docs/2.0/user/handlers/http.html#PerlLogHandler quote [...] it simply returns Apache2::Const::DECLINED, letting other log handlers to d

Re: Checking Return Codes in Apache2::SubProcess->spawn_proc_prog()

2008-10-08 Thread Fred Moyer
[EMAIL PROTECTED] wrote: Am I missing something, Fred, or is there actually something in that test that indicates how to read the exit status of the process (i.e., $?)? I have read this a number of times, but have yet to find anything relevant there. The short answer is no, spawn_proc_proc()

RE: Checking Return Codes in Apache2::SubProcess->spawn_proc_prog()

2008-10-08 Thread eric.berg
Am I missing something, Fred, or is there actually something in that test that indicates how to read the exit status of the process (i.e., $?)? I have read this a number of times, but have yet to find anything relevant there. Eric > -Original Message- > From: Fred Moyer [mailto:[EMAIL P

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

2008-10-08 Thread Fred Moyer
cfaust-dougot wrote: Folks, I'm guessing this has been answered but I couldn't find it. We need to do some IP checking and need to support it on both a load balanced environment and in a dedicated machine setup. In the load balanced situation $r->connection->remote_ip returns 1 - Is that

Re: Cannot start Apache with mod_perl

2008-10-08 Thread Fred Moyer
ispyhumanfly wrote: Ircha, Andrew wrote: I'm attempting to run httpd with mod_perl, but the httpd refuses to start: Starting httpd: httpd: Syntax error on line 209 of /etc/httpd/conf/httpd.conf: Syntax error on line 10 of /etc/httpd/conf.d/perl.conf: Cannot load /etc/httpd/modules/mod_perl.so i

Re: Skip or minimise Apache log phase

2008-10-08 Thread Fred Moyer
André Warnier wrote: Vegard Vesterheim wrote: CustomLog env=!is_googlebot See also: http://httpd.apache.org/docs/2.2/mod/mod_setenvif.html http://httpd.apache.org/docs/2.2/mod/mod_log_config.html#customlog - Vegard V - That looks just too easy to be true.. But I believe you

Re: Checking Return Codes in Apache2::SubProcess->spawn_proc_prog()

2008-10-08 Thread Fred Moyer
[EMAIL PROTECTED] wrote: I'm using spawn_proc_prog() to run external programs from apache, but can't find any docs on how to check the return status. It doesn't appear to set $?, nor have I found any reference to variables or methods that would provide that information. Can anybody help me with

Re: Skip or minimise Apache log phase

2008-10-08 Thread Graham TerMarsch
On Wednesday 08 October 2008, André Warnier wrote: > Vegard Vesterheim wrote: > > CustomLog env=!is_googlebot > > > > See also: > > http://httpd.apache.org/docs/2.2/mod/mod_setenvif.html > > http://httpd.apache.org/docs/2.2/mod/mod_log_config.html#customlog > > > > - Vegard V - > > T

Re: Skip or minimise Apache log phase

2008-10-08 Thread André Warnier
Vegard Vesterheim wrote: CustomLog env=!is_googlebot See also: http://httpd.apache.org/docs/2.2/mod/mod_setenvif.html http://httpd.apache.org/docs/2.2/mod/mod_log_config.html#customlog - Vegard V - That looks just too easy to be true.. But I believe you of course, and Thank

Re: Skip or minimise Apache log phase

2008-10-08 Thread Vegard Vesterheim
On Wed, 08 Oct 2008 14:32:26 +0200 André Warnier <[EMAIL PROTECTED]> wrote: > Hi. > > Following a message posted on the Apache users list, I am just curious > if via mod_perl there could be a solution to the following issue : > > A busy Apache server (with several VirtualHosts, why not ?) is being

Skip or minimise Apache log phase

2008-10-08 Thread André Warnier
Hi. Following a message posted on the Apache users list, I am just curious if via mod_perl there could be a solution to the following issue : A busy Apache server (with several VirtualHosts, why not ?) is being accessed from internal network clients (IP address 192.168.*) as well as by exter