Re: Alias and PerlOutputFilterHandler in virtual host configuration

2009-02-15 Thread Torsten Foertsch
On Sun 15 Feb 2009, Roger Munk wrote: > On Sun, Feb 15, 2009 at 5:12 PM, André Warnier wrote: > > see http://perl.apache.org/docs/2.0/api/APR/Table.html#C_get_ > > (you only get the first one this way) > > my @cookies = $f->r->headers_out->get("Set-Cookie"); > > would get you an array with both. >

Re: Alias and PerlOutputFilterHandler in virtual host configuration

2009-02-15 Thread Roger Munk
On Sun, Feb 15, 2009 at 5:12 PM, André Warnier wrote: > see http://perl.apache.org/docs/2.0/api/APR/Table.html#C_get_ > (you only get the first one this way) > my @cookies = $f->r->headers_out->get("Set-Cookie"); > would get you an array with both. Thanks, when I tried receiving the cookies in an

Re: Bug with cgi->header() + mod_perl ?

2009-02-15 Thread Perrin Harkins
In the code you showed, nothing calls sub1, so I wasn't sure what you were thinking would happen there. If your real code does call it first on every request, then it should work. There's no need to worry about concurrency. Even when using threads, each interpreter is separate and nothing is sha

Re: Bug with cgi->header() + mod_perl ?

2009-02-15 Thread André Warnier
Sorry, this list does not automatically set the reply-to, and I always forget.. Perrin Harkins wrote: On Sat, Feb 14, 2009 at 5:50 AM, André Warnier wrote: Less nice, less neat, less classic, terrible style, whatever you want, but which also works : Yeah, I wouldn't really recommend this.

Re: Manipulating @INC and tremendous blank page

2009-02-15 Thread Perrin Harkins
On Fri, Feb 13, 2009 at 11:30 PM, wrote: > I am using FindBin and added the FindBin::again() as recommanded > in hope to switch to ModPerl::RegistryPrefork soon. > I am using both use lib and unshift @INC but still, for some reasons, > even with ModPerl::PerlRunPrefork got some pages that could n

Re: Bug with cgi->header() + mod_perl ?

2009-02-15 Thread Perrin Harkins
On Sat, Feb 14, 2009 at 5:50 AM, André Warnier wrote: > Less nice, less neat, less classic, terrible style, whatever you want, but > which also works : Yeah, I wouldn't really recommend this. Passing your $cgi object to subs that need it is the best solution. > I am not quite sure why it works,

Re: dynamic caching

2009-02-15 Thread Perrin Harkins
On Fri, Feb 13, 2009 at 10:52 PM, wrote: > I wish to cache a full dynamic application like Web Services (SOAP). > I was thinking if it's possible to make a proxy with modperl to do that > caching? You could write a filter to do that, but you don't need to. Just use the mod_cache stuff apache h

Re: Alias and PerlOutputFilterHandler in virtual host configuration

2009-02-15 Thread André Warnier
Roger Munk wrote: On Sun, Feb 15, 2009 at 4:05 PM, Torsten Foertsch wrote: If your page is generated by php and you only want to postprocess it on its way out then drop the SetHandler. The PerlOutputFilterHandler does not need a "SetHandler modperl". Thanks, that was perfect. One more follow

Re: Alias and PerlOutputFilterHandler in virtual host configuration

2009-02-15 Thread André Warnier
Roger Munk wrote: I have the following directives in my sites-available/default configuration: DocumentRoot /var/www/ Alias /portal/ /var/www/drupal6/ PerlRequire "/etc/apache2/ModPerl/TE/ST.pm" SetHandler modperl PerlOutputFilterHandler TE::

Re: Alias and PerlOutputFilterHandler in virtual host configuration

2009-02-15 Thread Roger Munk
On Sun, Feb 15, 2009 at 4:05 PM, Torsten Foertsch wrote: > If your page is generated by php and you only want to postprocess it on > its way out then drop the SetHandler. The PerlOutputFilterHandler does > not need a "SetHandler modperl". Thanks, that was perfect. One more follow-up question. I

Re: Alias and PerlOutputFilterHandler in virtual host configuration

2009-02-15 Thread Torsten Foertsch
On Sun 15 Feb 2009, Roger Munk wrote: > I have the following directives in my sites-available/default > configuration: > >        DocumentRoot /var/www/ >        Alias /portal/ /var/www/drupal6/ >        PerlRequire "/etc/apache2/ModPerl/TE/ST.pm" >         >             SetHandler modperl >      

Alias and PerlOutputFilterHandler in virtual host configuration

2009-02-15 Thread Roger Munk
I have the following directives in my sites-available/default configuration: DocumentRoot /var/www/ Alias /portal/ /var/www/drupal6/ PerlRequire "/etc/apache2/ModPerl/TE/ST.pm" SetHandler modperl PerlOutputFilterHandler TE::ST When th