@@ -4,8 +4,8 @@ Varnish Configuration
44---------------------
55
66Below you will find detailed Varnish configuration recommendations for the
7- features provided by this library. The configuration is provided for Varnish 3
8- and 4 .
7+ features provided by this library. The configuration is provided for Varnish 3,
8+ 4 and 5 .
99
1010Basic Varnish Configuration
1111~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -14,7 +14,7 @@ To invalidate cached objects in Varnish, begin by adding an `ACL`_ (for Varnish
14143 see `ACL for Varnish 3 `_) to your Varnish configuration. This ACL determines
1515which IPs are allowed to issue invalidation requests. To use the provided
1616configuration fragments, this ACL has to be named ``invalidators ``. The most
17- simple ACL, valid for both Varnish 4 and Varnish 3 , looks as follows:
17+ simple ACL, valid for all Varnish versions from 3 onwards , looks as follows:
1818
1919.. code-block :: varnish4
2020
@@ -61,7 +61,7 @@ To enable support add the following to ``your_varnish.vcl``:
6161
6262 .. code-block :: varnish4
6363
64- include "path-to-config/varnish-4 /fos_purge.vcl";
64+ include "path-to-config/varnish/fos_purge.vcl";
6565
6666 sub vcl_recv {
6767 call fos_purge_recv;
@@ -102,7 +102,7 @@ To enable support, add the following to ``your_varnish.vcl``:
102102
103103 .. code-block :: varnish4
104104
105- include "path-to-config/varnish-4 /fos_refresh.vcl";
105+ include "path-to-config/varnish/fos_refresh.vcl";
106106
107107 sub vcl_recv {
108108 call fos_refresh_recv;
@@ -131,7 +131,7 @@ To enable support add the following to ``your_varnish.vcl``:
131131
132132 .. code-block :: varnish4
133133
134- include "path-to-config/varnish-4 /fos_ban.vcl";
134+ include "path-to-config/varnish/fos_ban.vcl";
135135
136136 sub vcl_recv {
137137 call fos_ban_recv;
@@ -185,7 +185,7 @@ VCL will look like this:
185185
186186.. configuration-block ::
187187
188- .. literalinclude :: ../resources/config/varnish-4 /fos_ban.vcl
188+ .. literalinclude :: ../resources/config/varnish/fos_ban.vcl
189189 :language: varnish4
190190 :emphasize-lines: 17-22,49-50
191191 :linenos:
@@ -212,8 +212,8 @@ To enable support add the following to ``your_varnish.vcl``:
212212
213213 .. code-block :: varnish4
214214
215- include "path-to-config/varnish-4 /fos_user_context.vcl";
216- include "path-to-config/varnish-4 /fos_user_context_url.vcl";
215+ include "path-to-config/varnish/fos_user_context.vcl";
216+ include "path-to-config/varnish/fos_user_context_url.vcl";
217217
218218 sub vcl_recv {
219219 call fos_user_context_recv;
@@ -230,7 +230,7 @@ To enable support add the following to ``your_varnish.vcl``:
230230 .. code-block :: varnish3
231231
232232 include "path-to-config/varnish-3/fos_user_context.vcl";
233- include "path-to-config/varnish-4 /fos_user_context_url.vcl";
233+ include "path-to-config/varnish/fos_user_context_url.vcl";
234234
235235 sub vcl_recv {
236236 call fos_user_context_recv;
@@ -291,7 +291,7 @@ values are different for each request. Because of this, the hash request would
291291not be cached, but multiple hashes would be generated for one and the same user.
292292
293293To make the hash request cacheable, you must extract a stable user session id
294- *before calling ``fos_user_context_recv`` * . You can do this as
294+ *before * calling ``fos_user_context_recv ``. You can do this as
295295`explained in the Varnish documentation `_:
296296
297297.. code-block :: varnish4
@@ -331,7 +331,7 @@ inline C enabled: ``-p vcc_allow_inline_c=on``. Then add the following to
331331
332332 .. code-block :: varnish4
333333
334- include "path-to-config/varnish-4 /fos_custom_ttl.vcl";
334+ include "path-to-config/varnish/fos_custom_ttl.vcl";
335335
336336 sub vcl_backend_response {
337337 call fos_custom_ttl_backend_response;
@@ -364,7 +364,7 @@ To enable support add the following to ``your_varnish.vcl``:
364364
365365 .. code-block :: varnish4
366366
367- include "path-to-config/varnish-4 /fos_debug.vcl";
367+ include "path-to-config/varnish/fos_debug.vcl";
368368
369369 sub vcl_deliver {
370370 call fos_debug_deliver;
0 commit comments