Created
March 15, 2011 02:13
-
-
Save acdha/870205 to your computer and use it in GitHub Desktop.
Simple varnish config for boring sites
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
backend default { | |
.host = "127.0.0.1"; | |
.port = "8080"; | |
} | |
sub vcl_recv { | |
if (req.backend.healthy) { | |
set req.grace = 30s; | |
} else { | |
set req.grace = 30m; | |
} | |
} | |
sub vcl_fetch { | |
set beresp.grace = 30m; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment