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">
fd9abdda70912b99b24e3bf1a38f26fde908a74cnd<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
fd9abdda70912b99b24e3bf1a38f26fde908a74cnd<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type" />
fd9abdda70912b99b24e3bf1a38f26fde908a74cnd<!--
73ba54c33b4fcad0e13005e10ea8648c9fe4265bnd XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
73ba54c33b4fcad0e13005e10ea8648c9fe4265bnd This file is generated from xml source: DO NOT EDIT
73ba54c33b4fcad0e13005e10ea8648c9fe4265bnd XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
73ba54c33b4fcad0e13005e10ea8648c9fe4265bnd -->
96ad5d81ee4a2cc66a4ae19893efc8aa6d06fae7jailletc<title>mod_proxy_http - Apache HTTP Server Version 2.5</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" />
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen<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" />
2e545ce2450a9953665f701bb05350f0d3f26275nd<script src="/style/scripts/prettify.min.js" type="text/javascript">
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen</script>
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen
73ba54c33b4fcad0e13005e10ea8648c9fe4265bnd<link href="/images/favicon.ico" rel="shortcut icon" /></head>
73ba54c33b4fcad0e13005e10ea8648c9fe4265bnd<body>
73ba54c33b4fcad0e13005e10ea8648c9fe4265bnd<div id="page-header">
af33a4994ae2ff15bc67d19ff1a7feb906745bf8rbowen<p class="menu"><a href="/mod/">Modules</a> | <a href="/mod/quickreference.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>
3f08db06526d6901aa08c110b5bc7dde6bc39905nd<p class="apache">Apache HTTP Server Version 2.5</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">
3f08db06526d6901aa08c110b5bc7dde6bc39905nd<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> &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> |
f086b4b402fa9a2fefc7dda85de2a3cc1cd0a654rjung<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>
c44eeebd065e2c8cd028016b45c58afb480aaf8fdruggeri<div id="quickview"><h3>Topics</h3>
cb7d9035e080e6838f657dc10bdd5e26df08273ajsl<ul id="topics">
cb7d9035e080e6838f657dc10bdd5e26df08273ajsl<li><img alt="" src="/images/down.gif" /> <a href="#env">Environment Variables</a></li>
1402198007c0cc5e6def206b7e1ae4bdf6104622sf<li><img alt="" src="/images/down.gif" /> <a href="#notes">Request notes</a></li>
c44eeebd065e2c8cd028016b45c58afb480aaf8fdruggeri</ul><h3 class="directives">Directives</h3>
c44eeebd065e2c8cd028016b45c58afb480aaf8fdruggeri<p>This module provides no
c44eeebd065e2c8cd028016b45c58afb480aaf8fdruggeri directives.</p>
c44eeebd065e2c8cd028016b45c58afb480aaf8fdruggeri<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>
30471a4650391f57975f60bbb6e4a90be7b284bfhumbedooh</ul><ul class="seealso"><li><a href="#comments_section">Comments</a></li></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
7859c11126b92a9ff7ca9ebf9ec0c7dee8ddb70fcovener provider. Environment variables below that don't specify specific values
7859c11126b92a9ff7ca9ebf9ec0c7dee8ddb70fcovener are enabled when set to any value.</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>
20a774cd18213533ddad053b3402724d244ab0decovener <dd>If this variable is set, no pooled connection will be reused
20a774cd18213533ddad053b3402724d244ab0decovener if the client request is the initial request on the frontend 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>
1402198007c0cc5e6def206b7e1ae4bdf6104622sf</div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
1402198007c0cc5e6def206b7e1ae4bdf6104622sf<div class="section">
1402198007c0cc5e6def206b7e1ae4bdf6104622sf<h2><a name="notes" id="notes">Request notes</a></h2>
1402198007c0cc5e6def206b7e1ae4bdf6104622sf <p><code class="module"><a href="/mod/mod_proxy_http.html">mod_proxy_http</a></code> creates the following request notes for
1402198007c0cc5e6def206b7e1ae4bdf6104622sf logging using the <code>%{VARNAME}n</code> format in
1402198007c0cc5e6def206b7e1ae4bdf6104622sf <code class="directive"><a href="/mod/mod_log_config.html#logformat">LogFormat</a></code> or
1402198007c0cc5e6def206b7e1ae4bdf6104622sf <code class="directive"><a href="/mod/core.html#errorlogformat">ErrorLogFormat</a></code>:
1402198007c0cc5e6def206b7e1ae4bdf6104622sf </p>
1402198007c0cc5e6def206b7e1ae4bdf6104622sf <dl>
1402198007c0cc5e6def206b7e1ae4bdf6104622sf <dt>proxy-source-port</dt>
1402198007c0cc5e6def206b7e1ae4bdf6104622sf <dd>The local port used for the connection to the backend server.</dd>
1402198007c0cc5e6def206b7e1ae4bdf6104622sf <dt>proxy-status</dt>
1402198007c0cc5e6def206b7e1ae4bdf6104622sf <dd>The HTTP status received from the backend server.</dd>
1402198007c0cc5e6def206b7e1ae4bdf6104622sf </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> |
f086b4b402fa9a2fefc7dda85de2a3cc1cd0a654rjung<a href="/fr/mod/mod_proxy_http.html" hreflang="fr" rel="alternate" title="Fran�ais">&nbsp;fr&nbsp;</a></p>
727872d18412fc021f03969b8641810d8896820bhumbedooh</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>
0d0ba3a410038e179b695446bb149cce6264e0abnd<script type="text/javascript"><!--//--><![CDATA[//><!--
727872d18412fc021f03969b8641810d8896820bhumbedoohvar comments_shortname = 'httpd';
cc7e1025de9ac63bd4db6fe7f71c158b2cf09fe4humbedoohvar comments_identifier = 'http://httpd.apache.org/docs/trunk/mod/mod_proxy_http.html';
0d0ba3a410038e179b695446bb149cce6264e0abnd(function(w, d) {
cc7e1025de9ac63bd4db6fe7f71c158b2cf09fe4humbedooh if (w.location.hostname.toLowerCase() == "httpd.apache.org") {
727872d18412fc021f03969b8641810d8896820bhumbedooh d.write('<div id="comments_thread"><\/div>');
0d0ba3a410038e179b695446bb149cce6264e0abnd var s = d.createElement('script');
0d0ba3a410038e179b695446bb149cce6264e0abnd s.type = 'text/javascript';
0d0ba3a410038e179b695446bb149cce6264e0abnd s.async = true;
ac082aefa89416cbdc9a1836eaf3bed9698201c8humbedooh s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier;
0d0ba3a410038e179b695446bb149cce6264e0abnd (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s);
0d0ba3a410038e179b695446bb149cce6264e0abnd }
0d0ba3a410038e179b695446bb149cce6264e0abnd else {
727872d18412fc021f03969b8641810d8896820bhumbedooh d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>');
0d0ba3a410038e179b695446bb149cce6264e0abnd }
0d0ba3a410038e179b695446bb149cce6264e0abnd})(window, document);
30471a4650391f57975f60bbb6e4a90be7b284bfhumbedooh//--><!]]></script></div><div id="footer">
205f749042ed530040a4f0080dbcb47ceae8a374rjung<p class="apache">Copyright 2015 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>
af33a4994ae2ff15bc67d19ff1a7feb906745bf8rbowen<p class="menu"><a href="/mod/">Modules</a> | <a href="/mod/quickreference.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[//><!--
0d0ba3a410038e179b695446bb149cce6264e0abndif (typeof(prettyPrint) !== 'undefined') {
7fec19672a491661b2fe4b29f685bc7f4efa64d4nd prettyPrint();
7fec19672a491661b2fe4b29f685bc7f4efa64d4nd}
7fec19672a491661b2fe4b29f685bc7f4efa64d4nd//--><!]]></script>
73ba54c33b4fcad0e13005e10ea8648c9fe4265bnd</body></html>