From dd13471b26bb397ec6b26dc7a381a5e642c7b4b1 Mon Sep 17 00:00:00 2001 From: Olivier DEBAUCHE Date: Thu, 17 Jun 2021 09:06:15 +0200 Subject: [PATCH] Create default.vcl --- default.vcl | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 default.vcl diff --git a/default.vcl b/default.vcl new file mode 100644 index 0000000..a11336d --- /dev/null +++ b/default.vcl @@ -0,0 +1,28 @@ +vcl 4.1; + +# Default backend definition. Set this to point to your content server. +backend default { + .host = "127.0.0.1"; + .port = "8080"; +} + +sub vcl_recv { + # Happens before we check if we have this in cache already. + # + # Typically you clean up the request here, removing cookies you don't need, + # rewriting the request, etc. +} + +sub vcl_backend_response { + # Happens after we have read the response headers from the backend. + # + # Here you clean the response headers, removing silly Set-Cookie headers + # and other mistakes your backend does. +} + +sub vcl_deliver { + # Happens when we have all the pieces we need, and are about to send the + # response to the client. + # + # You can do accounting or modifying the final object here. +}