Code Monkey home page Code Monkey logo

varnish's Introduction

varnish's People

Contributors

bchavet avatar elijahlynn avatar

Stargazers

 avatar Roki avatar Ewout van Mansom avatar  avatar Adam Breaux avatar Kenan SALTIK avatar  avatar Sam K Hall avatar  avatar Guilherme Lopes avatar Paul Thedinga avatar Alex Schedrov avatar Nate Lampton avatar Yuya Saito avatar Simon Lindsay avatar Aurelien Navarre avatar Scott Lozier avatar Jepz avatar Marlon (Esolitos) Saglia avatar Pantelis Koukousoulas avatar Mario Angulo avatar James Cromwell avatar Simon R Jones avatar Pere Orga avatar  avatar Jon Pugh avatar

Watchers

blake hall avatar James Sansbury avatar Greg Dunlap avatar Andrew Berry avatar David Burns avatar Darren Petersen avatar Matt Kleve avatar Angus Mak avatar James Cloos avatar Seth Brown avatar Adrian Young avatar  avatar Michael Herchel avatar Claudia Ifrim avatar  avatar Kenan SALTIK avatar  avatar

varnish's Issues

Use std.fileread() instead of directly embedding 500 error page?

It's a fairly common practice to use std.fileread() to create synthetic HTML pages in Varnish. Perhaps we should include an example of how to do this?

sub vcl_error {
  set obj.http.Content-Type = "text/html; charset=utf-8";
  synthetic std.fileread("/etc/varnishd/500.html");
  return (deliver);
}

The current example we have is perhaps more universal in that it's easier to copy/paste, and it includes the error message as part of the response, both of which are useful features. But there may be a lot of sites out there that would like a more elaborate error page, in which embedding directly in the VCL may not be practical.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.