Last active
August 29, 2015 14:08
-
-
Save jaibeee/3f2429c294995c183d01 to your computer and use it in GitHub Desktop.
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
sub vcl_recv { | |
if (req.url ~ "^/api/*") { | |
unset req.http.cookie; | |
unset req.http.cache - control; | |
unset req.http.pragma; | |
unset req.http.expires; | |
unset req.http.etag; | |
unset req.http.X - Forwarded - For; | |
if (req.restarts == 0) { | |
set req.http.X - host = req.http.host; | |
set req.backend = s3; | |
set req.http.host = "tests3bucket.amazonaws.com"; | |
return(lookup); | |
} else { | |
set req.backend = default; | |
set req.http.host = req.http.X - host; | |
return(lookup); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment