Created
September 11, 2014 19:36
-
-
Save baldur/591012e6dc688363e1dd to your computer and use it in GitHub Desktop.
This file contains hidden or 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 cache { | |
.host = "s3bucket"; | |
} | |
backend tilestash { | |
.host = "tilestashhost"; | |
.port = "8000"; | |
} | |
sub vcl_recv { | |
if (req.restarts == 0) { | |
set req.backend = default; | |
} else { | |
set req.backend = backup; | |
} | |
} | |
sub vcl_fetch { | |
if (beresp.status == 404) { | |
return (restart); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment