trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r873403 - in /websites/staging/trafficserver/trunk: cgi-bin/ content/ content/docs/trunk/admin/configuration-files/remap.config.en.html
Date Thu, 08 Aug 2013 04:16:35 GMT
Author: buildbot
Date: Thu Aug  8 04:16:34 2013
New Revision: 873403

Log:
Staging update by buildbot for trafficserver

Modified:
    websites/staging/trafficserver/trunk/cgi-bin/   (props changed)
    websites/staging/trafficserver/trunk/content/   (props changed)
    websites/staging/trafficserver/trunk/content/docs/trunk/admin/configuration-files/remap.config.en.html

Propchange: websites/staging/trafficserver/trunk/cgi-bin/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Thu Aug  8 04:16:34 2013
@@ -1 +1 @@
-1510227
+1511576

Propchange: websites/staging/trafficserver/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Thu Aug  8 04:16:34 2013
@@ -1 +1 @@
-1510227
+1511576

Modified: websites/staging/trafficserver/trunk/content/docs/trunk/admin/configuration-files/remap.config.en.html
==============================================================================
--- websites/staging/trafficserver/trunk/content/docs/trunk/admin/configuration-files/remap.config.en.html
(original)
+++ websites/staging/trafficserver/trunk/content/docs/trunk/admin/configuration-files/remap.config.en.html
Thu Aug  8 04:16:34 2013
@@ -82,6 +82,10 @@
 <li><a href="#PluginChainingExamples">Examples</a></li>
 </ul>
 </li>
+<li><a href="#NamedFilters">Named Filters</a><ul>
+<li><a href="#NamedFiltersExamples">Examples</a></li>
+</ul>
+</li>
 </ul>
 </div>
 <p>The <code>remap.config</code> file contains mapping rules that Traffic
Server
@@ -375,6 +379,33 @@ returns 0, then the "chain" is broken).<
 
 <p>will pass "1" and "2" to plugin1.so and "3" to plugin2.so.</p>
 <p>This will pass "1" and "2" to plugin1.so and "3" to plugin2.so</p>
+<h1 id="NamedFilters">Named Filters</h1>
+<p>Named filters can be created and applied to blocks of mappings using
+the <code>.definefilter</code>, <code>.activatefilter</code>, and
<code>.deactivatefilter</code>
+directives. Named filters must be defined using <code>.definefilter</code> before
+being used. Once defined, <code>.activatefilter</code> can used to activate a
+filter for all mappings that follow until deactivated with
+<code>.deactivatefilter</code>.</p>
+<h2 id="NamedFiltersExamples">Examples</h2>
+<div class="codehilite"><pre>.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/
+</pre></div>
+
+
+<p>The filter <code>disable_delete_purge</code> will be applied to all
of the
+mapping rules. (It is activated before any mappings and is never
+deactivated.) The filter <code>internal_only</code> will only be applied to the
+second mapping.</p>
         </div>
       </div>
       <div class="fourcol last docsnav">



Mime
View raw message