perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoffrey Young <ge...@modperlcookbook.org>
Subject Re: help with perlfixuphandler
Date Thu, 29 Apr 2004 21:01:10 GMT


Cristóvão B. B. Dalla Costa wrote:
> Hello
> 
> We're developing an application which returns large files depending on
> the URL provided. For cleanliness and easier updates we do not want to
> set an Apache Alias for each file, instead we're looking them up in a
> database.
> 
> Originally, we had a PerlHandler identify the file and print it out, but
> it's obviously not the optimal solution, which would be to have Apache
> itself send the file.
> 
> We then set up a PerlFixupHandler which sets the file to send with
> $r->filename, but that's having no effect.

that's odd.  if you set $r->filename($file) from a PerlFixupHandler and have
 apache's default handler (either no SetHandler or SetHandler
default_handler) service the content phase, all should work out fin

> 
> We're using mod_perl 1.29 with apache 1.3.19.

then see

http://search.cpan.org/~lindner/Apache-CacheContent-0.12/

for an example of how this kind of thing can work.  further discussion is in
recipe 14.5 in the mod_perl developer's cookbook.

HTH

--Geoff

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Mime
View raw message