]> granicus.if.org Git - apache/commitdiff
Add docs for new directive SubstituteMaxLineLength
authorRainer Jung <rjung@apache.org>
Thu, 2 Oct 2014 11:49:43 +0000 (11:49 +0000)
committerRainer Jung <rjung@apache.org>
Thu, 2 Oct 2014 11:49:43 +0000 (11:49 +0000)
in mod_substitute.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1628950 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_substitute.xml

index 1250d9212758ffccb2adb291a4cde8f658fe802d..20cea14b4bbf33a8cd2012f4bd7449e4b3954fad 100644 (file)
@@ -129,4 +129,37 @@ Substitute "s|http://internal.blog.example.com/|http://www.example.com/blog/|i"
 </usage>
 </directivesynopsis>
 
+<directivesynopsis>
+<name>SubstituteMaxLineLength</name>
+<description>Set the maximum line size</description>
+<syntax>SubstituteMaxLineLength <var>bytes</var>(b|B|k|K|m|M|g|G)</syntax>
+<default>SubstituteMaxLineLength 1m</default>
+<contextlist><context>directory</context>
+<context>.htaccess</context></contextlist>
+<override>FileInfo</override>
+<compatibility>Available in httpd 2.5-dev and later</compatibility>
+
+<usage>
+    <p>The maximum line size handled by <module>mod_substitute</module>
+    is limited to restrict memory use. The limit can be configured
+    using <directive>SubstituteMaxLineLength</directive>.
+    The value can be given as the number of bytes and can be suffixed
+    with a single letter <code>b</code>, <code>B</code>, <code>k</code>,
+    <code>K</code>, <code>m</code>, <code>M</code>, <code>g</code>,
+    <code>G</code> to provide the size in bytes, kilobytes, megabytes
+    or gigabytes respectively.</p>
+
+    <example><title>Example</title>
+    <highlight language="config">
+&lt;Location /&gt;
+    AddOutputFilterByType SUBSTITUTE text/html
+    SubstituteMaxLineLength 10m
+    Substitute s/foo/bar/ni
+&lt;/Location&gt;
+        </highlight>
+    </example>
+
+</usage>
+</directivesynopsis>
+
 </modulesynopsis>