diff options
| author | jvoisin | 2017-11-12 18:38:10 +0100 |
|---|---|---|
| committer | jvoisin | 2017-11-12 18:38:10 +0100 |
| commit | 6f1f0464bc3bc8a863f43c348fa3b41d333b2a52 (patch) | |
| tree | 046ff0878d69e9dc9f0edabf382542e9655d3fa5 /doc | |
| parent | e6b7258081bab6589429d5b49736bbd33ad5e5f6 (diff) | |
Improve a bit the filter-related documentation
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/source/config.rst | 4 |
1 files changed, 4 insertions, 0 deletions
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: | |||
| 284 | - The ``var`` filter will walk the calltrace until it finds the variable name, or the end of the calltrace, | 284 | - The ``var`` filter will walk the calltrace until it finds the variable name, or the end of the calltrace, |
| 285 | allowing the filter to match global variables: ``.var("_GET[param]")`` will match on the GET parameter ``param``. | 285 | allowing the filter to match global variables: ``.var("_GET[param]")`` will match on the GET parameter ``param``. |
| 286 | 286 | ||
| 287 | The ``filename`` filter requires a leading ``/``, since paths are absolutes (like ``/var/www/mywebsite/lib/parse.php``). | ||
| 288 | If you would like to have only one configuration file for several vhost in different folders, | ||
| 289 | you can use the the ``filename_r`` directive to match on the filename (like ``/lib/parse\.php``). | ||
| 290 | |||
| 287 | For clarity, the presence of the ``allow`` or ``drop`` action is **mandatory**. | 291 | For clarity, the presence of the ``allow`` or ``drop`` action is **mandatory**. |
| 288 | 292 | ||
| 289 | .. warning:: | 293 | .. warning:: |
