Skip to content

Instantly share code, notes, and snippets.

@hukl
Created July 15, 2011 15:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hukl/1084904 to your computer and use it in GitHub Desktop.
Save hukl/1084904 to your computer and use it in GitHub Desktop.
Varnish Conf for local / subnet cache of ruby gems index
backend default {
.host = "production.s3.rubygems.org";
.port = "80";
}
sub vcl_recv {
set req.http.Host = "production.s3.rubygems.org";
return(lookup);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment