plone - User-friendly error pages from Varnish -


we using varnish @ front of plone. in case plone goes down or serves internal error we'd show user-friendly static html page css styling + images. ("the server being updated page")

how configure varnish this?

you can customize synthetic page being served on vlc_error. default.vcl configuration file shows how this, serving famous "guru meditation" error page (ahh, wonderful amiga days).

an example customization:

    sub vcl_error {         set obj.http.content-type = "text/html; charset=utf-8";         synthetic {"     <?xml version="1.0" encoding="utf-8"?>     <!doctype html public "-//w3c//dtd xhtml 1.0 strict//en"      "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd">     <html>       <head>         <title>sorry, server under maintainance - website"</title>         <style src="css/style.css"></style>       </head>       <body>         <h1>the server being updated</h1>         <p>please check later. meanwhile, here's picture of rabbit pancake on head:</p>         <img src="img/wabbit.jpg" alt="awwwww!" />       </body>     </html>     "};     return (deliver); } 

Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -