]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
xforms
authorJim Jagielski <jim@apache.org>
Thu, 21 Jan 2016 21:30:00 +0000 (21:30 +0000)
committerJim Jagielski <jim@apache.org>
Thu, 21 Jan 2016 21:30:00 +0000 (21:30 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1726104 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/env.xml.fr
docs/manual/env.xml.ja
docs/manual/env.xml.ko
docs/manual/env.xml.tr
docs/manual/expr.html.en
docs/manual/expr.html.fr
docs/manual/expr.xml.fr
docs/manual/expr.xml.meta
docs/manual/mod/mod_proxy_hcheck.html.en

index 0286162fcd5829737753cd5d0673f3dc4d9a0a38..39c450d6a0b5fecd800038d4fefda6dd3c52aef0 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="ISO-8859-1" ?>
 <!DOCTYPE manualpage SYSTEM "./style/manualpage.dtd">
 <?xml-stylesheet type="text/xsl" href="./style/manual.fr.xsl"?>
-<!-- English Revision: 1674195:1725349 (outdated) -->
+<!-- English Revision: 1674195:1725855 (outdated) -->
 <!-- French translation : Lucien GENTIS -->
 <!-- Reviewed by : Vincent Deffontaines -->
 
index d6a0351d5878a293e9a3cc20a22f88c5f02215d3..656077c89c6b7907011d34d0d1cc5e32abd0e377 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" ?>
 <!DOCTYPE manualpage SYSTEM "./style/manualpage.dtd">
 <?xml-stylesheet type="text/xsl" href="./style/manual.ja.xsl"?>
-<!-- English Revision: 659902:1725349 (outdated) -->
+<!-- English Revision: 659902:1725855 (outdated) -->
 
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
index ae25efe876f020ad5fc23a2a4816508d9a6df636..bfe0c1f848c7ea6b0ea873089254aafc30a4bbee 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="EUC-KR" ?>
 <!DOCTYPE manualpage SYSTEM "./style/manualpage.dtd">
 <?xml-stylesheet type="text/xsl" href="./style/manual.ko.xsl"?>
-<!-- English Revision: 105989:1725349 (outdated) -->
+<!-- English Revision: 105989:1725855 (outdated) -->
 
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
index ea985d8b1468072d3cced03a09c834634f783fc9..2d395f7b129456709e75db671e6bb163615ee57c 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" ?>
 <!DOCTYPE manualpage SYSTEM "./style/manualpage.dtd">
 <?xml-stylesheet type="text/xsl" href="./style/manual.tr.xsl"?>
-<!-- English Revision: 1300910:1725349 (outdated) -->
+<!-- English Revision: 1300910:1725855 (outdated) -->
 <!-- =====================================================
  Translated by: Nilgün Belma Bugüner <nilgun belgeler.org>
    Reviewed by: Orhan Berent <berent belgeler.org>
index 54e86b1d9b362090c52374c5a0d3da3f9fd5eef9..27a100591c0037790a828f0882b966dff0b63f08 100644 (file)
@@ -23,7 +23,8 @@
 <div id="path">
 <a href="http://www.apache.org/">Apache</a> &gt; <a href="http://httpd.apache.org/">HTTP Server</a> &gt; <a href="http://httpd.apache.org/docs/">Documentation</a> &gt; <a href="./">Version 2.5</a></div><div id="page-content"><div id="preamble"><h1>Expressions in Apache HTTP Server</h1>
 <div class="toplang">
-<p><span>Available Languages: </span><a href="./en/expr.html" title="English">&nbsp;en&nbsp;</a> |
+<p><span>Available Languages: </span><a href="./edited/expr.html" hreflang="edited" rel="alternate" title="">&nbsp;edited&nbsp;</a> |
+<a href="./en/expr.html" title="English">&nbsp;en&nbsp;</a> |
 <a href="./fr/expr.html" hreflang="fr" rel="alternate" title="Français">&nbsp;fr&nbsp;</a></p>
 </div>
 
@@ -452,44 +453,42 @@ listfunction ::= listfuncname "<strong>(</strong>" word "<strong>)</strong>"</pr
         <td>Lookup operating system environment variable</td><td /></tr>
 <tr class="odd"><td><code>note</code></td>
         <td>Lookup request note</td><td /></tr>
-<tr><td><code>kept_body</code></td>
-        <td>Lookup response body if available in <code>r-&gt;kept_body</code></td><td /></tr>
-<tr class="odd"><td><code>env</code></td>
+<tr><td><code>env</code></td>
         <td>Return first match of <code>note</code>, <code>reqenv</code>,
             <code>osenv</code></td><td /></tr>
-<tr><td><code>tolower</code></td>
+<tr class="odd"><td><code>tolower</code></td>
         <td>Convert string to lower case</td><td /></tr>
-<tr class="odd"><td><code>toupper</code></td>
+<tr><td><code>toupper</code></td>
         <td>Convert string to upper case</td><td /></tr>
-<tr><td><code>escape</code></td>
+<tr class="odd"><td><code>escape</code></td>
         <td>Escape special characters in %hex encoding</td><td /></tr>
-<tr class="odd"><td><code>unescape</code></td>
+<tr><td><code>unescape</code></td>
         <td>Unescape %hex encoded string, leaving encoded slashes alone;
             return empty string if %00 is found</td><td /></tr>
-<tr><td><code>base64</code></td>
+<tr class="odd"><td><code>base64</code></td>
         <td>Encode the string using base64 encoding</td><td /></tr>
-<tr class="odd"><td><code>unbase64</code></td>
+<tr><td><code>unbase64</code></td>
         <td>Decode base64 encoded string, return truncated string if 0x00 is
             found</td><td /></tr>
-<tr><td><code>md5</code></td>
+<tr class="odd"><td><code>md5</code></td>
         <td>Hash the string using MD5, then encode the hash with hexadecimal
             encoding</td><td /></tr>
-<tr class="odd"><td><code>sha1</code></td>
+<tr><td><code>sha1</code></td>
         <td>Hash the string using SHA1, then encode the hash with hexadecimal
             encoding</td><td /></tr>
-<tr><td><code>file</code></td>
+<tr class="odd"><td><code>file</code></td>
         <td>Read contents from a file (including line endings, when present)
         </td><td>yes</td></tr>
-<tr class="odd"><td><code>filemod</code></td>
+<tr><td><code>filemod</code></td>
         <td>Return last modification time of a file (or 0 if file does not exist
             or is not regular file)</td><td>yes</td></tr>
-<tr><td><code>filesize</code></td>
+<tr class="odd"><td><code>filesize</code></td>
         <td>Return size of a file (or 0 if file does not exist or is not
             regular file)</td><td>yes</td></tr>
-<tr class="odd"><td><code>ldap</code></td>
+<tr><td><code>ldap</code></td>
         <td>Escape characters as required by LDAP distinguished name escaping
             (RFC4514) and LDAP filter escaping (RFC4515).</td><td /></tr>
-<tr><td><code>replace</code></td>
+<tr class="odd"><td><code>replace</code></td>
         <td>replace(string, "from", "to") replaces all occurences of "from"
             in the string with "to".</td><td /></tr>
 </table>
@@ -621,7 +620,8 @@ Header always set CustomHeader my-value "expr=%{REQUEST_URI} =~ m#^/special_path
     are available for versions 2.5.0 and later.</p>
 </div></div>
 <div class="bottomlang">
-<p><span>Available Languages: </span><a href="./en/expr.html" title="English">&nbsp;en&nbsp;</a> |
+<p><span>Available Languages: </span><a href="./edited/expr.html" hreflang="edited" rel="alternate" title="">&nbsp;edited&nbsp;</a> |
+<a href="./en/expr.html" title="English">&nbsp;en&nbsp;</a> |
 <a href="./fr/expr.html" hreflang="fr" rel="alternate" title="Français">&nbsp;fr&nbsp;</a></p>
 </div><div class="top"><a href="#page-header"><img src="./images/up.gif" alt="top" /></a></div><div class="section"><h2><a id="comments_section" name="comments_section">Comments</a></h2><div class="warning"><strong>Notice:</strong><br />This is not a Q&amp;A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed again by our moderators if they are either implemented or considered invalid/off-topic. Questions on how to manage the Apache HTTP Server should be directed at either our IRC channel, #httpd, on Freenode, or sent to our <a href="http://httpd.apache.org/lists.html">mailing lists</a>.</div>
 <script type="text/javascript"><!--//--><![CDATA[//><!--
index b9b15f96edc4a8437ba8977b6fe8671fd7bfb0e5..d5fd6a4059bd3095daf7676ca94e80cd480bb5cd 100644 (file)
@@ -23,7 +23,8 @@
 <div id="path">
 <a href="http://www.apache.org/">Apache</a> &gt; <a href="http://httpd.apache.org/">Serveur HTTP</a> &gt; <a href="http://httpd.apache.org/docs/">Documentation</a> &gt; <a href="./">Version 2.5</a></div><div id="page-content"><div id="preamble"><h1>Les expressions dans le serveur HTTP Apache</h1>
 <div class="toplang">
-<p><span>Langues Disponibles: </span><a href="./en/expr.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
+<p><span>Langues Disponibles: </span><a href="./edited/expr.html" hreflang="edited" rel="alternate" title="">&nbsp;edited&nbsp;</a> |
+<a href="./en/expr.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
 <a href="./fr/expr.html" title="Français">&nbsp;fr&nbsp;</a></p>
 </div>
 <div class="outofdate">Cette traduction peut être périmée. Vérifiez la version
@@ -650,7 +651,8 @@ Header always set CustomHeader my-value "expr=%{REQUEST_URI} =~ m#^/special_path
     de la version 2.5.0 du serveur HTTP Apache.</p>
 </div></div>
 <div class="bottomlang">
-<p><span>Langues Disponibles: </span><a href="./en/expr.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
+<p><span>Langues Disponibles: </span><a href="./edited/expr.html" hreflang="edited" rel="alternate" title="">&nbsp;edited&nbsp;</a> |
+<a href="./en/expr.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
 <a href="./fr/expr.html" title="Français">&nbsp;fr&nbsp;</a></p>
 </div><div class="top"><a href="#page-header"><img src="./images/up.gif" alt="top" /></a></div><div class="section"><h2><a id="comments_section" name="comments_section">Commentaires</a></h2><div class="warning"><strong>Notice:</strong><br />This is not a Q&amp;A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed again by our moderators if they are either implemented or considered invalid/off-topic. Questions on how to manage the Apache HTTP Server should be directed at either our IRC channel, #httpd, on Freenode, or sent to our <a href="http://httpd.apache.org/lists.html">mailing lists</a>.</div>
 <script type="text/javascript"><!--//--><![CDATA[//><!--
index 48a4e42b6647484c42eb138def82d82f0c2ce5a4..e8a6ec7a990d81d1ad791fae9fc569d687cd7a26 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="ISO-8859-1" ?>
 <!DOCTYPE manualpage SYSTEM "./style/manualpage.dtd">
 <?xml-stylesheet type="text/xsl" href="./style/manual.fr.xsl"?>
-<!-- English Revision: 1721978:1725755 (outdated) -->
+<!-- English Revision: 1721978:1726057 (outdated) -->
 <!-- French translation : Lucien GENTIS -->
 <!-- Reviewed by : Vincent Deffontaines -->
 
index ea324a8bb253d589dbddfb8780bc04583ce99ac0..086629a7ff25391c8291b2415c3cc7dc272d3d75 100644 (file)
@@ -7,6 +7,7 @@
   <relpath>.</relpath>
 
   <variants>
+    <variant>edited</variant>
     <variant>en</variant>
     <variant outdated="yes">fr</variant>
   </variants>
index e546f94579c91c3a05bae9f9a61304823b878f3d..7431cbbe0fa3776b2553eb5472c04d7be10ae327 100644 (file)
@@ -61,6 +61,7 @@
                        <tr><td>TCP</td><td>Check that a socket to the backend can be created: e.g. "are you up"</td><td /></tr>
                        <tr><td>OPTIONS</td><td>Send an <code>HTTP OPTIONS</code> request to the backend</td><td>*</td></tr>
                        <tr><td>HEAD</td><td>Send an <code>HTTP HEAD</code> request to the backend</td><td>*</td></tr>
+                       <tr><td>GET</td><td>Send an <code>HTTP GET</code> request to the backend</td></tr>
 
                                <tr><td colspan="3" /></tr>
                                <tr><td colspan="3">*: Unless <code>hcexpr</code> is used, a 2xx or 3xx HTTP status will be interpreted as <em>passing</em> the health check</td></tr>
 ProxyPass "/apps"     "http://backend.example.com/" hcexpr=ok234</pre>
 </div>
 
-    <p>NOTE: The expression can use curly-parens ("{}") as quoting deliminators in addition to normal quotes.</p>
+    <p><em>NOTE:</em> The expression can use curly-parens ("{}") as quoting deliminators in addition to normal quotes.</p>
+
+    <p>If using a health check method (eg: <code>GET</code>) which results in a response
+    body, that body itself can be checked via <code>ap_expr</code> using the <code>hc()</code>
+    expression function, which is unique to this module.</p>
+
+    <p>In the following example, we send the backend a <code>GET</code> request
+    and if the response body contains the phrase <em>Under maintenance</em>,
+    we want to disable the backend.</p>
+
+    <div class="example"><h3>ProxyHCExpr: Checking response body</h3><pre class="prettyprint lang-config">ProxyHCExpr in_maint {hc('body') !~ /Under maintenance/}
+ProxyPass "/apps"     "http://backend.example.com/" hcexpr=in_maint hcmethod=get hcuri=/status.php</pre>
+</div>
+
+    <p><em>NOTE:</em> Since response body can quite large, it is best if used against specific status pages.</p>
 
 </div>
 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>