Created
September 13, 2012 11:53
-
-
Save KristianLyng/3713843 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 betelgeuse { | |
| .host = "178.255.149.146"; | |
| } | |
| sub vcl_recv { | |
| set req.http.host = "kly.no"; | |
| if (req.request == "PURGE") { | |
| return (lookup); | |
| } | |
| } | |
| sub vcl_hit { | |
| if (req.request == "PURGE") { | |
| purge; | |
| error 750 "restart"; | |
| } | |
| } | |
| sub vcl_miss { | |
| if (req.request == "PURGE") { | |
| purge; | |
| error 750 "restart"; | |
| } | |
| } | |
| sub vcl_error { | |
| if (req.request == "PURGE" && obj.status == 750) { | |
| set req.request = "GET"; | |
| set req.url = "/tomfil"; | |
| return (restart); | |
| } | |
| } | |
| // Test vcl |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment