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