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 (APR_FINFO_MTIME|APR_FINFO_INODE|APR_FINFO_SIZE seem to be enough), then return OK and let httpd do it. -Tim

Reply via email to