[Varnish] #587: Ability to load files from hard disk as error pages
Varnish
varnish-bugs at projects.linpro.no
Sun Nov 22 15:54:26 CET 2009
#587: Ability to load files from hard disk as error pages
-------------------------+--------------------------------------------------
Reporter: chris_se | Owner: phk
Type: enhancement | Status: new
Priority: lowest | Milestone:
Component: varnishd | Version: trunk
Severity: minor | Keywords:
-------------------------+--------------------------------------------------
It would be nice to be able to load files from the local hard disk as
error pages. Example of how it could look like:
{{{
sub vcl_error {
if (obj.status == 503) {
set obj.http.Content-Type = "text/html; charset=utf-8";
sendfile "/path/to/error503.html";
return (deliver);
}
}
}}}
Currently, this can be emulated with Inline C and
fopen/fread/VRT_synth_page but an implementation in varnish itself would
probably be much more efficient.
--
Ticket URL: <http://varnish.projects.linpro.no/ticket/587>
Varnish <http://varnish.projects.linpro.no/>
The Varnish HTTP Accelerator
More information about the varnish-bugs
mailing list