httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marco Spinetti <>
Subject static page by module
Date Tue, 04 Sep 2007 08:52:03 GMT
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:

apr_table_set(r->headers_out, "Location", sconf->html);
apr_table_set(r->headers_out, "Content-Location", sconf->html);
apr_table_unset(r->headers_out, "Content-Length");
apr_table_unset(r->headers_out, "Content-Type");

but in this way the client makes a new request to the page static.html.
I'm like to serve the page immediatly without any other request.
Is it possible?
Best regards


View raw message