Skip to content

Instantly share code, notes, and snippets.

@jasonbartz
Created April 28, 2011 17:55
Show Gist options
  • Save jasonbartz/946870 to your computer and use it in GitHub Desktop.
Save jasonbartz/946870 to your computer and use it in GitHub Desktop.
Multiple applications Varnish VCL
backend applications {
set backend.host = "IP_GOES_HERE";
set backend.port = "8080";
}
backend geoapps {
set backend.host = "IP_GOES_HERE";
set backend.port = "8080";
}
sub vcl_recv {
if ( req.http.host ~ "geoapps.scrippsnews.com" ) {
set req.backend = geoapps;
} else {
set req.backend = applications;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment