Re: Fw: Re: mod_perl closes apache's stdin and/or stdout

2007-04-02 Thread Stas Bekman
William A. Rowe, Jr. wrote: Stas Bekman wrote: William A. Rowe, Jr. wrote: Stas Bekman wrote: But which file to open as a place holder? In this example I use /dev/null and it works as you wish. AFAIK, windows doesn't have /dev/null, unless you run on cygwin. Of course, it does, but it has the

Re: Fw: Re: mod_perl closes apache's stdin and/or stdout

2007-04-02 Thread William A. Rowe, Jr.
Stas Bekman wrote: > William A. Rowe, Jr. wrote: >> Stas Bekman wrote: >>> But which file to open as a place holder? In this example I use >>> /dev/null and it works as you wish. AFAIK, windows doesn't have >>> /dev/null, unless you run on cygwin. >> >> Of course, it does, but it has the classic MS

Re: Fw: Re: mod_perl closes apache's stdin and/or stdout

2007-04-02 Thread Stas Bekman
William A. Rowe, Jr. wrote: Stas Bekman wrote: But which file to open as a place holder? In this example I use /dev/null and it works as you wish. AFAIK, windows doesn't have /dev/null, unless you run on cygwin. Of course, it does, but it has the classic MS-DOS name of "NUL" present in the con

Re: Fw: Re: mod_perl closes apache's stdin and/or stdout

2007-04-02 Thread William A. Rowe, Jr.
Stas Bekman wrote: > > But which file to open as a place holder? In this example I use > /dev/null and it works as you wish. AFAIK, windows doesn't have > /dev/null, unless you run on cygwin. Of course, it does, but it has the classic MS-DOS name of "NUL" present in the context of any directory (

Re: Fw: Re: mod_perl closes apache's stdin and/or stdout

2007-04-02 Thread Stas Bekman
Stephane, you are correct in your observations that original STDIN and STDOUT filehandles are not preserved when perlio CGI mode is used. This is because how Perl works. Consider the following perl program, run from the command line (not mod_perl!): #!/usr/bin/perl use strict; use warnings;

Re: Errors after perl update

2007-04-02 Thread Jonathan Vanasco
On Apr 2, 2007, at 3:22 PM, David Romero wrote: hi list I have a mod_perl installation instalation send Bareword "Apache2::ServerUtil::server_root" not allowed while "strict subs" after update perl, when i try to reinstall mod_perl makefile send this Cannot install mod_perl/2.0.3 on to

Errors after perl update

2007-04-02 Thread David Romero
hi list I have a mod_perl installation instalation send Bareword "Apache2::ServerUtil::server_root" not allowed while "strict subs" after update perl, when i try to reinstall mod_perl makefile send this Cannot install mod_perl/2.0.3 on top of mod_perl/1.99_16 due to a major API change between m

RE: mod_perl2 handler headache

2007-04-02 Thread Adam Prime x443
I don't think having the handler set as perl-script would have any affect. I have done this in a bunch of different places without any problem using SetHandler modperl and SetHandler perl-script. That being said, using either of the other two options you suggest would be better than returning DE

Re: mod_perl2 handler headache

2007-04-02 Thread Perrin Harkins
On 4/2/07, Adam Prime x443 <[EMAIL PROTECTED]> wrote: you want: sub handler { my $r = shift; my $uri = $r->uri; return DECLINED if $url =~ /^\/gallery; # not a gallery request... do some stuff and return an XML document } I don't think it's that simple. He must have already

RE: mod_perl2 handler headache

2007-04-02 Thread foobar
Adam Prime x443 wrote: > > > That looks ok to me. Is there a ResponseHandler as well for the > gallery, or just the AccessHandler? > > The symptoms you're describing seem like OK is getting returned when no > content has been printed. Do you know if headers are even getting sent > with these

RE: mod_perl2 handler headache

2007-04-02 Thread Adam Prime x443
That looks ok to me. Is there a ResponseHandler as well for the gallery, or just the AccessHandler? The symptoms you're describing seem like OK is getting returned when no content has been printed. Do you know if headers are even getting sent with these requests? adam -Original Message--

RE: mod_perl2 handler headache

2007-04-02 Thread Adam Prime x443
you want: sub handler { my $r = shift; my $uri = $r->uri; return DECLINED if $url =~ /^\/gallery; # not a gallery request... do some stuff and return an XML document } -Original Message- From: foobar [mailto:[EMAIL PROTECTED] Sent: Monday, April 02, 2007 11:58 AM To:

Re: mod_perl2 handler headache

2007-04-02 Thread foobar
Perrin Harkins-3 wrote: > > On 4/2/07, foobar <[EMAIL PROTECTED]> wrote: >> I'm not sure if this is a configuration problem or a design fault. I can >> see >> that both handlers are called but why my image file length is zero bytes >> is >> beyond me. > > Sounds like a problem in the access ha

Re: mod_perl2 handler headache

2007-04-02 Thread Perrin Harkins
On 4/2/07, foobar <[EMAIL PROTECTED]> wrote: I'm not sure if this is a configuration problem or a design fault. I can see that both handlers are called but why my image file length is zero bytes is beyond me. Sounds like a problem in the access handler code. Can you show it to us? - Perrin

mod_perl2 handler headache

2007-04-02 Thread foobar
Hi, Im hoping someone here can help me, im really struggling with an annoying problem :( I have an Apache2 server running mod_perl2. I'm name based virtual host which has a location match directive to map requests for "/" to my Response Handler PerlResponseHandler MySite::Request Th

Logging (access log) +SubRequests

2007-04-02 Thread Anthony Gardner
Okay, I've just been asked can I whack an entry into the access log file for the subrequest made?! I know that subrequests don;t perform the logging phase but is there anything I can do to force it or for me to write to the access_log for that request? I've only been able to find how to write t