Is Apache2::compat broken?

2007-02-22 Thread Josef Karthauser
Hi there, I've got an modperl 1 script I've trying to run under modperl2. It's a bit hairy, because it's actually a library (.pm file) which can be run either within a perl module, or in a stand alone CGI script. It also has to continue running on my old mod_perl 1 apache server for the time bein

Re: Error intercept.

2007-02-22 Thread Perrin Harkins
On 2/22/07, Benoit Plessis <[EMAIL PROTECTED]> wrote: When using wget -SO - http://url/ things seem to be ok, i got the want text, and headers seems good to me: [...] Using links everything goes fine, but firefox do not show anything (and there is nothing in 'view source'). Why don't you c

Re: Error intercept.

2007-02-22 Thread Benoit Plessis
Robert Landrum wrote: Given that this is in French, is it possible this is a UTF8 issue? Could length $error_page be returning a value that is inconsistent with the actual length of the message. If so, firefox might be ignoring some or all of the message. I could be wrong. I would try unse

Re: Accessing SSL environment variables?

2007-02-22 Thread Hadmut Danisch
On Thu, Feb 22, 2007 at 04:26:44PM -0500, Geoffrey Young wrote: > see > > http://search.cpan.org/dist/Apache-SSLLookup/ > Thanks for that hint. Shouldn't this be part of the mainstream apache perl module? regards Hadmut

Re: PerlAuthenHandler called twice?

2007-02-22 Thread Hadmut Danisch
On Thu, Feb 22, 2007 at 04:18:35PM -0500, Robert Landrum wrote: > Hadmut Danisch wrote: > >For some reason the module is called twice for every request. > > > > Is this a HEAD/GET problem? Maybe you're seeing the browser doing a > HEAD request, then a full GET request? No, I have checked this

Re: Accessing SSL environment variables?

2007-02-22 Thread Geoffrey Young
Hadmut Danisch wrote: > Hi, > > another problem with porting an older authentication script: > > The script used to fetch the certificate details set from the SSL module > under Apache1.3 with some code like > > $r->subprocess_env; # initialize > $envs = $r->subprocess_env; > $dn

Re: PerlAuthenHandler called twice?

2007-02-22 Thread Robert Landrum
Hadmut Danisch wrote: For some reason the module is called twice for every request. Is this a HEAD/GET problem? Maybe you're seeing the browser doing a HEAD request, then a full GET request? Rob

Accessing SSL environment variables?

2007-02-22 Thread Hadmut Danisch
Hi, another problem with porting an older authentication script: The script used to fetch the certificate details set from the SSL module under Apache1.3 with some code like $r->subprocess_env; # initialize $envs = $r->subprocess_env; $dn = $r->subprocess_env('SSL_CLIENT_DN'); $

Re: modperl installation issues + Can't load APR.so

2007-02-22 Thread jayakrishnan iyer
Thanks for the reply. I looked that up previously and found it installed as a shared object in my library as a part of my apache 2.2.4 installation. I guess it should be able to find it as I've supplied the path to the apache directory during Makefile generation. Do I have to set (or export) a

PerlAuthenHandler called twice?

2007-02-22 Thread Hadmut Danisch
Hi, just a minor question: I am currently porting an older authentication module written some years ago for Apache1.3 and perlmod to Apache2.2 and perlmod2. For some reason the module is called twice for every request. The old version checked $r->is_initial_req and $r->is_main to detect s

Re: Error intercept.

2007-02-22 Thread Robert Landrum
Benoit Plessis wrote: $r -> headers_out->set('Content-Length', length $error_page); Hmm... Incident sur l'hebergement

Error intercept.

2007-02-22 Thread Benoit Plessis
Hi, I'm trying to build an filter that will parse the output of some application server (AKA the blackbox) and replace the errors messages with something neater. For that purpose i installed the following OutputFilter on the reverse-proxy: ---8< package MyApache2::FilterColdf

Re: Sample Web Application that uses mod_perl

2007-02-22 Thread Robert Landrum
aqua wrote: Dear Group, Some of you might have tried the mod_perl for the first time and tested with simple web application and it should be there some-where in your system. Could you please post a few. The problem is that it isn't exactly a simple thing. It sounds like you're looking for

[mp2] [BUG] [PATCH] Build error: HP-UX 11i error w/ fully pathed gcc compiler

2007-02-22 Thread Brian . T . Wightman
Using mod_perl 2.0.3. Error generated is: :3:2: missing '(' after predicate whenever a compile is attempted. If Perl was compiled with a fully pathed gcc compiler (/opt/hp-gcc/bin/gcc, for example), lib/Apache2/Build.PL puts the wrong flags on the compiler command. GCC does not understa

Re: Sample Web Application that uses mod_perl

2007-02-22 Thread Aaron Trevena
On 22/02/07, David Scott <[EMAIL PROTECTED]> wrote: mod_perl has been out for over 10 years. There are a couple of O'Reilly books that describe it in detail. The book you probably want to look at is "Writing Apache Modules with Perl and C" by Lincoln Stein and Doug MacEachern, which came out in

Re: Sample Web Application that uses mod_perl

2007-02-22 Thread David Scott
mod_perl has been out for over 10 years. There are a couple of O'Reilly books that describe it in detail. The book you probably want to look at is "Writing Apache Modules with Perl and C" by Lincoln Stein and Doug MacEachern, which came out in 1999. It contains a lot of examples of mod_perl