Custom error message

Pablo García malevo at gmail.com
Mon Aug 13 13:05:39 CEST 2007


You can always customize your apache error page.

Regards, Pablo

On 8/13/07, Poul-Henning Kamp <phk at phk.freebsd.dk> wrote:
> In message <200708131223.39508.hovenko at linpro.no>, Knut-Olav Hoven writes:
>
> >On Monday 13 August 2007 12:11:47 Dag-Erling Sm=F8rgrav wrote:
> >> Knut-Olav Hoven <hovenko at linpro.no> writes:
> >> > How can I customize the error messages that Varnish return?
> >>
> >> Not easily; edit bin/varnishd/cache_synthetic.c and recompile.
> >
> >Ok.
> >
> >So I can't intercept the response in vcl, detect if the response code is 503
> >and then trigger a new 503 error with a different message or HTML code?
>
> You can change the status but not the HTML ... yet.
>
> We have ideas for this area, basically, you would detect the 503,
> edit req.url and restart the transaction with the new url.
>
> Not yet implemented however.
>
> We have also talked about being able to have local content on the
> varnish server, likely in the form of a .tar file, but this is also
> yet to be implemented.
>
>
> --
> Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
> phk at FreeBSD.ORG         | TCP/IP since RFC 956
> FreeBSD committer       | BSD since 4.3-tahoe
> Never attribute to malice what can adequately be explained by incompetence.
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at projects.linpro.no
> http://projects.linpro.no/mailman/listinfo/varnish-misc
>



More information about the varnish-misc mailing list