trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jpe...@apache.org
Subject svn commit: r1511576 - /trafficserver/site/trunk/content/docs/trunk/admin/configuration-files/remap.config.en.mdtext
Date Thu, 08 Aug 2013 04:16:19 GMT
Author: jpeach
Date: Thu Aug  8 04:16:18 2013
New Revision: 1511576

URL: http://svn.apache.org/r1511576
Log:
TS-1597: document remap.config filtering directives

Author: Jim Riggs <jim@riggs.me>

Modified:
    trafficserver/site/trunk/content/docs/trunk/admin/configuration-files/remap.config.en.mdtext

Modified: trafficserver/site/trunk/content/docs/trunk/admin/configuration-files/remap.config.en.mdtext
URL: http://svn.apache.org/viewvc/trafficserver/site/trunk/content/docs/trunk/admin/configuration-files/remap.config.en.mdtext?rev=1511576&r1=1511575&r2=1511576&view=diff
==============================================================================
--- trafficserver/site/trunk/content/docs/trunk/admin/configuration-files/remap.config.en.mdtext
(original)
+++ trafficserver/site/trunk/content/docs/trunk/admin/configuration-files/remap.config.en.mdtext
Thu Aug  8 04:16:18 2013
@@ -254,3 +254,32 @@ will pass "1" and "2" to plugin1.so and 
 
 This will pass "1" and "2" to plugin1.so and "3" to plugin2.so
 
+# Named Filters # {#NamedFilters}
+
+Named filters can be created and applied to blocks of mappings using
+the `.definefilter`, `.activatefilter`, and `.deactivatefilter`
+directives. Named filters must be defined using `.definefilter` before
+being used. Once defined, `.activatefilter` can used to activate a
+filter for all mappings that follow until deactivated with
+`.deactivatefilter`.
+
+## Examples ## {#NamedFiltersExamples}
+
+    :::text
+    .definefilter disable_delete_purge @action=deny @method=delete @method=purge
+    .definefilter internal_only @action=allow @src_ip=192.168.0.1-192.168.0.254 @src_ip=10.0.0.1-10.0.0.254
+
+    .activatefilter disable_delete_purge
+
+    map http://foo.example.com/ http://bar.example.com/
+
+    .activatefilter internal_only
+    map http://www.example.com/admin http://internal.example.com/admin
+    .deactivatefilter internal_only
+
+    map http://www.example.com/ http://internal.example.com/
+
+The filter `disable_delete_purge` will be applied to all of the
+mapping rules. (It is activated before any mappings and is never
+deactivated.) The filter `internal_only` will only be applied to the
+second mapping.



Mime
View raw message