perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lionel MARTIN" <martin...@hotmail.com>
Subject Re: which module for this purpose?
Date Thu, 14 Jun 2007 10:43:44 GMT
> All you need to do (assuming mod_perl2) is:
> - set the content-type (to whatever file type you are sending)
> - use $r->sendfile('filename')
>
> See
> http://perl.apache.org/docs/2.0/api/Apache2/RequestIO.html#C_sendfile_
>
> Clint
>
>

Unless Im mistaken, why not use instead the Apache default handler for these 
static files to be served?

Using the right directive for the directory containing the static files to 
be served:

SetHandler default-handler 


Mime
View raw message