PHP 8.5.2
Preview: example.vcl Size: 1.16 KB
/usr/share/doc/varnish/example.vcl

#
# 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 for a comprehensive documentation
# at https://www.varnish-cache.org/docs/.

# Marker to tell the VCL compiler that this VCL has been written with the
# 4.0 or 4.1 syntax.
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.
}

Directory Contents

Dirs: 1 × Files: 8

Name Size Perms Modified Actions
html DIR
- drwxr-xr-x 2026-01-23 09:03:27
Edit Download
1.48 KB lrw-r--r-- 2024-05-09 10:06:11
Edit Download
192 B lrw-r--r-- 2024-05-09 10:06:11
Edit Download
74.72 KB lrw-r--r-- 2024-05-09 10:06:11
Edit Download
337.15 KB lrw-r--r-- 2024-05-09 10:06:11
Edit Download
1.29 KB lrw-r--r-- 2024-05-09 10:06:11
Edit Download
1.16 KB lrw-r--r-- 2024-05-09 10:06:11
Edit Download
794 B lrw-r--r-- 2024-05-09 10:06:11
Edit Download
958 B lrw-r--r-- 2024-05-09 10:06:11
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).