Skip to content

Instantly share code, notes, and snippets.

@enisinanaj
Created December 8, 2019 16:45
Show Gist options
  • Save enisinanaj/3c9d141424a243eccfc0b40431b7125f to your computer and use it in GitHub Desktop.
Save enisinanaj/3c9d141424a243eccfc0b40431b7125f to your computer and use it in GitHub Desktop.
Basic Varnish-Cache 4 configuration
#
# This is an example VCL file for Varnish.
#
# It does not do anything by default, delegating control to the
# builtin VCL. The builtin VCL is called when there is no explicit
# return statement.
#
# See the VCL chapters in the Users Guide at https://www.varnish-cache.org/docs/
# and https://www.varnish-cache.org/trac/wiki/VCLExamples for more examples.
# Marker to tell the VCL compiler that this VCL has been adapted to the
# new 4.0 format.
vcl 4.0;
# Default backend definition. Set this to point to your content server.
backend default {
.host = "10.0.0.5";
.port = "8080";
}
sub vcl_recv {
return(pass);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment