[Varnish] #274: Is it possible to deliver custom error page ?
Varnish
varnish-bugs at projects.linpro.no
Tue Jul 15 15:09:03 CEST 2008
#274: Is it possible to deliver custom error page ?
-----------------------------+----------------------------------------------
Reporter: franck.leprette | Owner: des
Type: defect | Status: new
Priority: normal | Milestone:
Component: build | Version: trunk
Severity: normal | Keywords:
-----------------------------+----------------------------------------------
Hello,
My name is Franck LEPRETTE , I'm currently working with varnish with
ezpublish and i have a problem.
The version is :
# varnishd -V
varnishd (varnish-1.1.2)
Copyright (c) 2006-2007 Linpro AS / Verdens Gang AS
THe operating system is Debian Etch and our web servers are Apache2.
We override the error page with our cms ezpublish , and now when someone
tries to get an inexistant URL, he is redirected to the home page with a
warning text (but we still send the 404 error code).
The problem is that varnish doesn't deliver this page, and we still get a
404 error code with no custom page.
Do you know how to configure varnish in order to get it work ?
I tried this code but it doesn't seem to work :
sub vcl_fetch
{ if (obj.status == 404) {pass;} }
I also tried to find some documentation about this problem, but i didn't
found any. Do you know if it's possible to perform this operation and how
?
Thanks in advance.
Kind regards
--
Ticket URL: <http://varnish.projects.linpro.no/ticket/274>
Varnish <http://varnish.projects.linpro.no/>
The Varnish HTTP Accelerator
More information about the varnish-bugs
mailing list