How can I tell Varnish to show a custom html error page instead of the default "Guru Meditation" message?
Tell me more
×
Server Fault is a question and answer site for
professional system and network administrators. It's 100% free, no registration required.
|
|
The Varnish FAQ suggests using vcl_error for this (and it's how I've done it): This is the default VCL for the error page:
if you want a custom version, simply override the function in your config and replace the markup in the If you want to have different markup for different error codes you can do that fairly easily too:
|
||||
|
|
|
The default vcl code above (and in the official FAQ) is incorrect . Here is verbatim paste from default.vcl:
|
|||
|
|