github.com/krum110487/go-htaccess@v0.0.0-20240316004156-60641c8e7598/tests/data/apache_2_2_34/manual/mod/mod_proxy_http.html.en (about)

     1  <?xml version="1.0" encoding="ISO-8859-1"?>
     2  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
     3  <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
     4  <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type" />
     5  <!--
     6          XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
     7                This file is generated from xml source: DO NOT EDIT
     8          XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
     9        -->
    10  <title>mod_proxy_http - Apache HTTP Server Version 2.2</title>
    11  <link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
    12  <link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
    13  <link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /><link rel="stylesheet" type="text/css" href="../style/css/prettify.css" />
    14  <script src="../style/scripts/prettify.min.js" type="text/javascript">
    15  </script>
    16  
    17  <link href="../images/favicon.ico" rel="shortcut icon" /><link href="http://httpd.apache.org/docs/current/mod/mod_proxy_http.html" rel="canonical" /></head>
    18  <body>
    19  <div id="page-header">
    20  <p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p>
    21  <p class="apache">Apache HTTP Server Version 2.2</p>
    22  <img alt="" src="../images/feather.gif" /></div>
    23  <div class="up"><a href="./"><img title="&lt;-" alt="&lt;-" src="../images/left.gif" /></a></div>
    24  <div id="path">
    25  <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.2</a> &gt; <a href="./">Modules</a></div>
    26  <div id="page-content">
    27  <div class="retired"><h4>Please note</h4>
    28              <p> This document refers to a legacy release (<strong>2.2</strong>) of Apache httpd. The active release (<strong>2.4</strong>) is documented <a href="http://httpd.apache.org/docs/current">here</a>. If you have not already upgraded, please follow <a href="http://httpd.apache.org/docs/current/upgrading.html">this link</a> for more information.</p>
    29          <p>You may follow <a href="http://httpd.apache.org/docs/current/mod/mod_proxy_http.html">this link</a> to go to the current version of this document.</p></div><div id="preamble"><h1>Apache Module mod_proxy_http</h1>
    30  <div class="toplang">
    31  <p><span>Available Languages: </span><a href="../en/mod/mod_proxy_http.html" title="English">&nbsp;en&nbsp;</a> |
    32  <a href="../fr/mod/mod_proxy_http.html" hreflang="fr" rel="alternate" title="Français">&nbsp;fr&nbsp;</a> |
    33  <a href="../ja/mod/mod_proxy_http.html" hreflang="ja" rel="alternate" title="Japanese">&nbsp;ja&nbsp;</a></p>
    34  </div>
    35  <table class="module"><tr><th><a href="module-dict.html#Description">Description:</a></th><td>HTTP support module for
    36  <code class="module"><a href="../mod/mod_proxy.html">mod_proxy</a></code></td></tr>
    37  <tr><th><a href="module-dict.html#Status">Status:</a></th><td>Extension</td></tr>
    38  <tr><th><a href="module-dict.html#ModuleIdentifier">Module Identifier:</a></th><td>proxy_http_module</td></tr>
    39  <tr><th><a href="module-dict.html#SourceFile">Source File:</a></th><td>mod_proxy_http.c</td></tr></table>
    40  <h3>Summary</h3>
    41  
    42      <p>This module <em>requires</em> the service of <code class="module"><a href="../mod/mod_proxy.html">mod_proxy</a></code>. It provides the features used for
    43      proxying HTTP and HTTPS requests. <code class="module"><a href="../mod/mod_proxy_http.html">mod_proxy_http</a></code>
    44      supports HTTP/0.9, HTTP/1.0 and HTTP/1.1. It does <em>not</em>
    45      provide any caching abilities. If you want to set up a caching
    46      proxy, you might want to use the additional service of the
    47      <code class="module"><a href="../mod/mod_cache.html">mod_cache</a></code> module.</p>
    48  
    49      <p>Thus, in order to get the ability of handling HTTP proxy requests,
    50      <code class="module"><a href="../mod/mod_proxy.html">mod_proxy</a></code> and <code class="module"><a href="../mod/mod_proxy_http.html">mod_proxy_http</a></code>
    51      have to be present in the server.</p>
    52  
    53      <div class="warning"><h3>Warning</h3>
    54        <p>Do not enable proxying until you have <a href="mod_proxy.html#access">secured your server</a>. Open proxy
    55        servers are dangerous both to your network and to the Internet at
    56        large.</p>
    57      </div>
    58  </div>
    59  <div id="quickview"><h3>Topics</h3>
    60  <ul id="topics">
    61  <li><img alt="" src="../images/down.gif" /> <a href="#env">Environment Variables</a></li>
    62  </ul><h3 class="directives">Directives</h3>
    63  <p>This module provides no
    64              directives.</p>
    65  <h3>See also</h3>
    66  <ul class="seealso">
    67  <li><code class="module"><a href="../mod/mod_proxy.html">mod_proxy</a></code></li>
    68  <li><code class="module"><a href="../mod/mod_proxy_connect.html">mod_proxy_connect</a></code></li>
    69  </ul><ul class="seealso"><li><a href="#comments_section">Comments</a></li></ul></div>
    70  <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
    71  <div class="section">
    72  <h2><a name="env" id="env">Environment Variables</a></h2>
    73      <p>In addition to the configuration directives that control the
    74      behaviour of <code class="module"><a href="../mod/mod_proxy.html">mod_proxy</a></code>, there are a number of
    75      <dfn>environment variables</dfn> that control the HTTP protocol
    76      provider. Environment variables below that don't specify specific values
    77      are enabled when set to any value.</p>
    78      <dl>
    79          <dt>proxy-sendextracrlf</dt>
    80          <dd>Causes proxy to send an extra CR-LF newline on the end of a
    81          request.  This is a workaround for a bug in some browsers.</dd>
    82          <dt>force-proxy-request-1.0</dt>
    83          <dd>Forces the proxy to send requests to the backend as HTTP/1.0
    84          and disables HTTP/1.1 features.</dd>
    85          <dt>proxy-nokeepalive</dt>
    86          <dd>Forces the proxy to close the backend connection after
    87          each request.</dd>
    88          <dt>proxy-chain-auth</dt>
    89          <dd>If the proxy requires authentication, it will read and
    90          consume the proxy authentication credentials sent by the client.
    91          With <var>proxy-chain-auth</var> it will <em>also</em> forward
    92          the credentials to the next proxy in the chain.  This may
    93          be necessary if you have a chain of proxies that share
    94          authentication information.  <strong>Security Warning:</strong>
    95          Do not set this unless you know you need it, as it forwards
    96          sensitive information!</dd>
    97          <dt>proxy-sendcl</dt>
    98          <dd>HTTP/1.0 required all HTTP requests that include a body
    99          (e.g. POST requests) to include a <var>Content-Length</var>
   100          header.  This environment variable forces the Apache proxy to
   101          send this header to the backend server, regardless of what the
   102          Client sent to the proxy.  It ensures compatibility when
   103          proxying for an HTTP/1.0 or unknown backend.  However, it
   104          may require the entire request to be buffered by the proxy,
   105          so it becomes very inefficient for large requests.</dd>
   106          <dt>proxy-sendchunks or proxy-sendchunked</dt>
   107          <dd>This is the opposite of <var>proxy-sendcl</var>.  It allows
   108          request bodies to be sent to the backend using chunked transfer
   109          encoding.  This allows the request to be efficiently streamed,
   110          but requires that the backend server supports HTTP/1.1.</dd>
   111          <dt>proxy-interim-response</dt>
   112          <dd>This variable takes values <code>RFC</code> or
   113          <code>Suppress</code>.  Earlier httpd versions would suppress
   114          HTTP interim (1xx) responses sent from the backend.  This is
   115          technically a violation of the HTTP protocol.  In practice,
   116          if a backend sends an interim response, it may itself be
   117          extending the protocol in a manner we know nothing about,
   118          or just broken.  So this is now configurable: set
   119          <code>proxy-interim-response RFC</code> to be fully protocol
   120          compliant, or <code>proxy-interim-response Suppress</code>
   121          to suppress interim responses.</dd>
   122          <dt>proxy-initial-not-pooled</dt>
   123          <dd>If this variable is set no pooled connection will be reused
   124          if the client connection is an initial connection. This avoids
   125          the "proxy: error reading status line from remote server" error message
   126          caused by the race condition that the backend server closed the
   127          pooled connection after the connection check by the proxy and
   128          before data sent by the proxy reached the backend. It has to be
   129          kept in mind that setting this variable downgrades performance,
   130          especially with HTTP/1.0 clients.
   131          </dd>
   132      </dl>
   133  </div>
   134  </div>
   135  <div class="bottomlang">
   136  <p><span>Available Languages: </span><a href="../en/mod/mod_proxy_http.html" title="English">&nbsp;en&nbsp;</a> |
   137  <a href="../fr/mod/mod_proxy_http.html" hreflang="fr" rel="alternate" title="Français">&nbsp;fr&nbsp;</a> |
   138  <a href="../ja/mod/mod_proxy_http.html" hreflang="ja" rel="alternate" title="Japanese">&nbsp;ja&nbsp;</a></p>
   139  </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>
   140  <script type="text/javascript"><!--//--><![CDATA[//><!--
   141  var comments_shortname = 'httpd';
   142  var comments_identifier = 'http://httpd.apache.org/docs/2.2/mod/mod_proxy_http.html';
   143  (function(w, d) {
   144      if (w.location.hostname.toLowerCase() == "httpd.apache.org") {
   145          d.write('<div id="comments_thread"><\/div>');
   146          var s = d.createElement('script');
   147          s.type = 'text/javascript';
   148          s.async = true;
   149          s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier;
   150          (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s);
   151      }
   152      else { 
   153          d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>');
   154      }
   155  })(window, document);
   156  //--><!]]></script></div><div id="footer">
   157  <p class="apache">Copyright 2017 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p>
   158  <p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p></div><script type="text/javascript"><!--//--><![CDATA[//><!--
   159  if (typeof(prettyPrint) !== 'undefined') {
   160      prettyPrint();
   161  }
   162  //--><!]]></script>
   163  </body></html>