httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Bray <Tim.B...@Sun.COM>
Subject Re: static page by module
Date Tue, 04 Sep 2007 19:13:01 GMT

On Sep 4, 2007, at 1:52 AM, Marco Spinetti wrote:

> I'm a bit confused how to serve a static page by a module.
> I'm using apache 2.2.4: in particular cases I'd like that my module  
> replies with a static page (/www/static.html).
> Now in these cases my module replies with:

I think the easiest thing is to get the map_to_storage hook, then set  
the r->filename, r->canonical_filename, and the r->finfo fields  
then return OK and let httpd do it. -Tim

View raw message