Custom error message

Knut-Olav Hoven hovenko at linpro.no
Mon Aug 13 13:11:59 CEST 2007


On Monday 13 August 2007 13:05:39 Pablo García wrote:
> You can always customize your apache error page.

No, I don't think I can, since PHP segfaults and takes Apache down with it.

>
> 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
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at projects.linpro.no
> http://projects.linpro.no/mailman/listinfo/varnish-misc



-- 
Knut-Olav Hoven
Systemutvikler               mob: +47 986 71 700
Linpro AS                    http://www.linpro.no/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20070813/ede7472d/attachment-0002.pgp>


More information about the varnish-misc mailing list