From 6f1f0464bc3bc8a863f43c348fa3b41d333b2a52 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sun, 12 Nov 2017 18:38:10 +0100 Subject: Improve a bit the filter-related documentation --- doc/source/config.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/source/config.rst b/doc/source/config.rst index ad031fd..fc0df2d 100644 --- a/doc/source/config.rst +++ b/doc/source/config.rst @@ -284,6 +284,10 @@ The ``param`` filter is also able to do some dereferencing: - The ``var`` filter will walk the calltrace until it finds the variable name, or the end of the calltrace, allowing the filter to match global variables: ``.var("_GET[param]")`` will match on the GET parameter ``param``. +The ``filename`` filter requires a leading ``/``, since paths are absolutes (like ``/var/www/mywebsite/lib/parse.php``). +If you would like to have only one configuration file for several vhost in different folders, +you can use the the ``filename_r`` directive to match on the filename (like ``/lib/parse\.php``). + For clarity, the presence of the ``allow`` or ``drop`` action is **mandatory**. .. warning:: -- cgit v1.3