mod_proxy_http.html.en revision 936f8a599187e745a6381a662c2165b611bf4dbf
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin<?xml version="1.0" encoding="ISO-8859-1"?>
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><!--
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin This file is generated from xml source: DO NOT EDIT
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin -->
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin<title>mod_proxy_http - Apache HTTP Server</title>
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin<link href="/style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin<link href="/style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen<link href="/style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" />
2e545ce2450a9953665f701bb05350f0d3f26275nd<link href="/images/favicon.ico" rel="shortcut icon" /></head>
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen<body>
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen<div id="page-header">
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin<p class="menu"><a href="/mod/">Modules</a> | <a href="/mod/directives.html">Directives</a> | <a href="/faq/">FAQ</a> | <a href="/glossary.html">Glossary</a> | <a href="/sitemap.html">Sitemap</a></p>
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin<p class="apache">Apache HTTP Server Version 2.3</p>
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin<img alt="" src="/images/feather.gif" /></div>
af33a4994ae2ff15bc67d19ff1a7feb906745bf8rbowen<div class="up"><a href="./"><img title="&lt;-" alt="&lt;-" src="/images/left.gif" /></a></div>
3f08db06526d6901aa08c110b5bc7dde6bc39905nd<div id="path">
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin<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.3</a> &gt; <a href="./">Modules</a></div>
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin<div id="page-content">
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin<div id="preamble"><h1>Apache Module mod_proxy_http</h1>
3f08db06526d6901aa08c110b5bc7dde6bc39905nd<div class="toplang">
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin<p><span>Available Languages: </span><a href="/en/mod/mod_proxy_http.html" title="English">&nbsp;en&nbsp;</a> |
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin<a href="/fr/mod/mod_proxy_http.html" hreflang="fr" rel="alternate" title="Fran�ais">&nbsp;fr&nbsp;</a></p>
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin</div>
f086b4b402fa9a2fefc7dda85de2a3cc1cd0a654rjung<table class="module"><tr><th><a href="module-dict.html#Description">Description:</a></th><td>HTTP support module for
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin<code class="module"><a href="/mod/mod_proxy.html">mod_proxy</a></code></td></tr>
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin<tr><th><a href="module-dict.html#Status">Status:</a></th><td>Extension</td></tr>
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin<tr><th><a href="module-dict.html#ModuleIdentifier">Module�Identifier:</a></th><td>proxy_http_module</td></tr>
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin<tr><th><a href="module-dict.html#SourceFile">Source�File:</a></th><td>mod_proxy_http.c</td></tr></table>
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin<h3>Summary</h3>
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin <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
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin proxying HTTP and HTTPS requests. <code class="module"><a href="/mod/mod_proxy_http.html">mod_proxy_http</a></code>
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin supports HTTP/0.9, HTTP/1.0 and HTTP/1.1. It does <em>not</em>
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin provide any caching abilities. If you want to set up a caching
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin proxy, you might want to use the additional service of the
6d20aeba2c4aa0938bc6e0659d13adc7670ff421poirier <code class="module"><a href="/mod/mod_cache.html">mod_cache</a></code> module.</p>
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin <p>Thus, in order to get the ability of handling HTTP proxy requests,
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin <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>
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin have to be present in the server.</p>
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin <div class="warning"><h3>Warning</h3>
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin <p>Do not enable proxying until you have <a href="mod_proxy.html#access">secured your server</a>. Open proxy
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin servers are dangerous both to your network and to the Internet at
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin large.</p>
30471a4650391f57975f60bbb6e4a90be7b284bfhumbedooh </div>
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin</div>
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin<div id="quickview"><h3 class="directives">Directives</h3>
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin<p>This module provides no
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin directives.</p>
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin<h3>Topics</h3>
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin<ul id="topics">
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin<li><img alt="" src="/images/down.gif" /> <a href="#env">Environment Variables</a></li>
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin</ul><h3>See also</h3>
4aa603e6448b99f9371397d439795c91a93637eand<ul class="seealso">
a4784b5a082381b03e972caf3aa052a64c68f06dhumbedooh<li><code class="module"><a href="/mod/mod_proxy.html">mod_proxy</a></code></li>
a4784b5a082381b03e972caf3aa052a64c68f06dhumbedooh<li><code class="module"><a href="/mod/mod_proxy_connect.html">mod_proxy_connect</a></code></li>
4aa603e6448b99f9371397d439795c91a93637eand</ul></div>
a4784b5a082381b03e972caf3aa052a64c68f06dhumbedooh<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin<div class="section">
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin<h2><a name="env" id="env">Environment Variables</a></h2>
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin <p>In addition to the configuration directives that control the
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin behaviour of <code class="module"><a href="/mod/mod_proxy.html">mod_proxy</a></code>, there are a number of
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin <dfn>environment variables</dfn> that control the HTTP protocol
4aa603e6448b99f9371397d439795c91a93637eand provider:</p>
a4784b5a082381b03e972caf3aa052a64c68f06dhumbedooh <dl>
a4784b5a082381b03e972caf3aa052a64c68f06dhumbedooh <dt>proxy-sendextracrlf</dt>
4aa603e6448b99f9371397d439795c91a93637eand <dd>Causes proxy to send an extra CR-LF newline on the end of a
a4784b5a082381b03e972caf3aa052a64c68f06dhumbedooh request. This is a workaround for a bug in some browsers.</dd>
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin <dt>force-proxy-request-1.0</dt>
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin <dd>Forces the proxy to send requests to the backend as HTTP/1.0
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin and disables HTTP/1.1 features.</dd>
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin <dt>proxy-nokeepalive</dt>
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin <dd>Forces the proxy to close the backend connection after
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin each request.</dd>
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin <dt>proxy-chain-auth</dt>
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin <dd>If the proxy requires authentication, it will read and
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin consume the proxy authentication credentials sent by the client.
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin With <var>proxy-chain-auth</var> it will <em>also</em> forward
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin the credentials to the next proxy in the chain. This may
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin be necessary if you have a chain of proxies that share
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin authentication information. <strong>Security Warning:</strong>
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin Do not set this unless you know you need it, as it forwards
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin sensitive information!</dd>
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin <dt>proxy-sendcl</dt>
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin <dd>HTTP/1.0 required all HTTP requests that include a body
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin (e.g. POST requests) to include a <var>Content-Length</var>
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin header. This environment variable forces the Apache proxy to
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin send this header to the backend server, regardless of what the
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin Client sent to the proxy. It ensures compatibility when
f086b4b402fa9a2fefc7dda85de2a3cc1cd0a654rjung proxying for an HTTP/1.0 or unknown backend. However, it
727872d18412fc021f03969b8641810d8896820bhumbedooh may require the entire request to be buffered by the proxy,
0d0ba3a410038e179b695446bb149cce6264e0abnd so it becomes very inefficient for large requests.</dd>
727872d18412fc021f03969b8641810d8896820bhumbedooh <dt>proxy-sendchunks or proxy-sendchunked</dt>
cc7e1025de9ac63bd4db6fe7f71c158b2cf09fe4humbedooh <dd>This is the opposite of <var>proxy-sendcl</var>. It allows
0d0ba3a410038e179b695446bb149cce6264e0abnd request bodies to be sent to the backend using chunked transfer
cc7e1025de9ac63bd4db6fe7f71c158b2cf09fe4humbedooh encoding. This allows the request to be efficiently streamed,
727872d18412fc021f03969b8641810d8896820bhumbedooh but requires that the backend server supports HTTP/1.1.</dd>
0d0ba3a410038e179b695446bb149cce6264e0abnd <dt>proxy-interim-response</dt>
0d0ba3a410038e179b695446bb149cce6264e0abnd <dd>This variable takes values <code>RFC</code> or
0d0ba3a410038e179b695446bb149cce6264e0abnd <code>Suppress</code>. Earlier httpd versions would suppress
ac082aefa89416cbdc9a1836eaf3bed9698201c8humbedooh HTTP interim (1xx) responses sent from the backend. This is
0d0ba3a410038e179b695446bb149cce6264e0abnd technically a violation of the HTTP protocol. In practice,
0d0ba3a410038e179b695446bb149cce6264e0abnd if a backend sends an interim response, it may itself be
0d0ba3a410038e179b695446bb149cce6264e0abnd extending the protocol in a manner we know nothing about,
727872d18412fc021f03969b8641810d8896820bhumbedooh or just broken. So this is now configurable: set
0d0ba3a410038e179b695446bb149cce6264e0abnd <code>proxy-interim-response RFC</code> to be fully protocol
0d0ba3a410038e179b695446bb149cce6264e0abnd compliant, or <code>proxy-interim-response Suppress</code>
30471a4650391f57975f60bbb6e4a90be7b284bfhumbedooh to suppress interim responses.</dd>
07dc96d063d49299da433f84b5c5681da9bbdf68rbowen <dt>proxy-initial-not-pooled</dt>
af33a4994ae2ff15bc67d19ff1a7feb906745bf8rbowen <dd>If this variable is set no pooled connection will be reused
0d0ba3a410038e179b695446bb149cce6264e0abnd if the client connection is an initial connection. This avoids
7fec19672a491661b2fe4b29f685bc7f4efa64d4nd the "proxy: error reading status line from remote server" error message
7fec19672a491661b2fe4b29f685bc7f4efa64d4nd caused by the race condition that the backend server closed the
7fec19672a491661b2fe4b29f685bc7f4efa64d4nd pooled connection after the connection check by the proxy and
4a3b6b890a52931991a7ed042d5973ef2039c623minfrin before data sent by the proxy reached the backend. It has to be
kept in mind that setting this variable downgrades performance,
especially with HTTP/1.0 clients.
</dd>
</dl>
</div>
</div>
<div class="bottomlang">
<p><span>Available Languages: </span><a href="/en/mod/mod_proxy_http.html" title="English">&nbsp;en&nbsp;</a> |
<a href="/fr/mod/mod_proxy_http.html" hreflang="fr" rel="alternate" title="Fran�ais">&nbsp;fr&nbsp;</a></p>
</div><div id="footer">
<p class="apache">Copyright 2010 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>
<p class="menu"><a href="/mod/">Modules</a> | <a href="/mod/directives.html">Directives</a> | <a href="/faq/">FAQ</a> | <a href="/glossary.html">Glossary</a> | <a href="/sitemap.html">Sitemap</a></p></div>
</body></html>