mod_proxy_http.html.en revision 20a774cd18213533ddad053b3402724d244ab0de
0N/A<?xml version="1.0" encoding="ISO-8859-1"?>
1879N/A<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
0N/A<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><!--
0N/A XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
0N/A This file is generated from xml source: DO NOT EDIT
0N/A XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
0N/A -->
0N/A<title>mod_proxy_http - Apache HTTP Server Version 2.5</title>
0N/A<link href="/style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
0N/A<link href="/style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
0N/A<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" />
0N/A<script src="/style/scripts/prettify.min.js" type="text/javascript">
0N/A</script>
0N/A
0N/A<link href="/images/favicon.ico" rel="shortcut icon" /></head>
0N/A<body>
0N/A<div id="page-header">
0N/A<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>
1472N/A<p class="apache">Apache HTTP Server Version 2.5</p>
1472N/A<img alt="" src="/images/feather.gif" /></div>
1472N/A<div class="up"><a href="./"><img title="&lt;-" alt="&lt;-" src="/images/left.gif" /></a></div>
0N/A<div id="path">
0N/A<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>
0N/A<div id="page-content">
1879N/A<div id="preamble"><h1>Apache Module mod_proxy_http</h1>
1879N/A<div class="toplang">
1879N/A<p><span>Available Languages: </span><a href="/en/mod/mod_proxy_http.html" title="English">&nbsp;en&nbsp;</a> |
1879N/A<a href="/fr/mod/mod_proxy_http.html" hreflang="fr" rel="alternate" title="Fran�ais">&nbsp;fr&nbsp;</a></p>
1879N/A</div>
1879N/A<table class="module"><tr><th><a href="module-dict.html#Description">Description:</a></th><td>HTTP support module for
0N/A<code class="module"><a href="/mod/mod_proxy.html">mod_proxy</a></code></td></tr>
0N/A<tr><th><a href="module-dict.html#Status">Status:</a></th><td>Extension</td></tr>
0N/A<tr><th><a href="module-dict.html#ModuleIdentifier">Module�Identifier:</a></th><td>proxy_http_module</td></tr>
0N/A<tr><th><a href="module-dict.html#SourceFile">Source�File:</a></th><td>mod_proxy_http.c</td></tr></table>
0N/A<h3>Summary</h3>
0N/A
0N/A <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
0N/A proxying HTTP and HTTPS requests. <code class="module"><a href="/mod/mod_proxy_http.html">mod_proxy_http</a></code>
0N/A supports HTTP/0.9, HTTP/1.0 and HTTP/1.1. It does <em>not</em>
0N/A provide any caching abilities. If you want to set up a caching
0N/A proxy, you might want to use the additional service of the
0N/A <code class="module"><a href="/mod/mod_cache.html">mod_cache</a></code> module.</p>
0N/A
0N/A <p>Thus, in order to get the ability of handling HTTP proxy requests,
0N/A <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>
0N/A have to be present in the server.</p>
0N/A
0N/A <div class="warning"><h3>Warning</h3>
0N/A <p>Do not enable proxying until you have <a href="mod_proxy.html#access">secured your server</a>. Open proxy
0N/A servers are dangerous both to your network and to the Internet at
0N/A large.</p>
0N/A </div>
0N/A</div>
0N/A<div id="quickview"><h3 class="directives">Directives</h3>
0N/A<p>This module provides no
0N/A directives.</p>
0N/A<h3>Topics</h3>
0N/A<ul id="topics">
0N/A<li><img alt="" src="/images/down.gif" /> <a href="#env">Environment Variables</a></li>
0N/A<li><img alt="" src="/images/down.gif" /> <a href="#notes">Request notes</a></li>
0N/A</ul><h3>See also</h3>
0N/A<ul class="seealso">
0N/A<li><code class="module"><a href="/mod/mod_proxy.html">mod_proxy</a></code></li>
0N/A<li><code class="module"><a href="/mod/mod_proxy_connect.html">mod_proxy_connect</a></code></li>
0N/A</ul><ul class="seealso"><li><a href="#comments_section">Comments</a></li></ul></div>
0N/A<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
0N/A<div class="section">
0N/A<h2><a name="env" id="env">Environment Variables</a></h2>
0N/A <p>In addition to the configuration directives that control the
0N/A behaviour of <code class="module"><a href="/mod/mod_proxy.html">mod_proxy</a></code>, there are a number of
0N/A <dfn>environment variables</dfn> that control the HTTP protocol
0N/A provider. Environment variables below that don't specify specific values
0N/A are enabled when set to any value.</p>
0N/A <dl>
0N/A <dt>proxy-sendextracrlf</dt>
0N/A <dd>Causes proxy to send an extra CR-LF newline on the end of a
0N/A request. This is a workaround for a bug in some browsers.</dd>
0N/A <dt>force-proxy-request-1.0</dt>
0N/A <dd>Forces the proxy to send requests to the backend as HTTP/1.0
0N/A and disables HTTP/1.1 features.</dd>
0N/A <dt>proxy-nokeepalive</dt>
0N/A <dd>Forces the proxy to close the backend connection after
0N/A each request.</dd>
0N/A <dt>proxy-chain-auth</dt>
0N/A <dd>If the proxy requires authentication, it will read and
0N/A consume the proxy authentication credentials sent by the client.
0N/A With <var>proxy-chain-auth</var> it will <em>also</em> forward
0N/A the credentials to the next proxy in the chain. This may
0N/A be necessary if you have a chain of proxies that share
0N/A authentication information. <strong>Security Warning:</strong>
0N/A Do not set this unless you know you need it, as it forwards
0N/A sensitive information!</dd>
0N/A <dt>proxy-sendcl</dt>
0N/A <dd>HTTP/1.0 required all HTTP requests that include a body
0N/A (e.g. POST requests) to include a <var>Content-Length</var>
0N/A header. This environment variable forces the Apache proxy to
0N/A send this header to the backend server, regardless of what the
0N/A Client sent to the proxy. It ensures compatibility when
0N/A proxying for an HTTP/1.0 or unknown backend. However, it
0N/A may require the entire request to be buffered by the proxy,
0N/A so it becomes very inefficient for large requests.</dd>
0N/A <dt>proxy-sendchunks or proxy-sendchunked</dt>
0N/A <dd>This is the opposite of <var>proxy-sendcl</var>. It allows
0N/A request bodies to be sent to the backend using chunked transfer
0N/A encoding. This allows the request to be efficiently streamed,
0N/A but requires that the backend server supports HTTP/1.1.</dd>
0N/A <dt>proxy-interim-response</dt>
0N/A <dd>This variable takes values <code>RFC</code> (the default) or
0N/A <code>Suppress</code>. Earlier httpd versions would suppress
0N/A HTTP interim (1xx) responses sent from the backend. This is
0N/A technically a violation of the HTTP protocol. In practice,
0N/A if a backend sends an interim response, it may itself be
0N/A extending the protocol in a manner we know nothing about,
0N/A or just broken. So this is now configurable: set
0N/A <code>proxy-interim-response RFC</code> to be fully protocol
0N/A compliant, or <code>proxy-interim-response Suppress</code>
0N/A to suppress interim responses.</dd>
0N/A <dt>proxy-initial-not-pooled</dt>
0N/A <dd>If this variable is set, no pooled connection will be reused
0N/A if the client request is the initial request on the frontend connection. This avoids
0N/A the "proxy: error reading status line from remote server" error message
0N/A caused by the race condition that the backend server closed the
0N/A pooled connection after the connection check by the proxy and
0N/A before data sent by the proxy reached the backend. It has to be
0N/A kept in mind that setting this variable downgrades performance,
0N/A especially with HTTP/1.0 clients.
0N/A </dd>
0N/A </dl>
0N/A</div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
0N/A<div class="section">
0N/A<h2><a name="notes" id="notes">Request notes</a></h2>
0N/A <p><code class="module"><a href="/mod/mod_proxy_http.html">mod_proxy_http</a></code> creates the following request notes for
0N/A logging using the <code>%{VARNAME}n</code> format in
0N/A <code class="directive"><a href="/mod/mod_log_config.html#logformat">LogFormat</a></code> or
0N/A <code class="directive"><a href="/mod/core.html#errorlogformat">ErrorLogFormat</a></code>:
0N/A </p>
0N/A <dl>
0N/A <dt>proxy-source-port</dt>
0N/A <dd>The local port used for the connection to the backend server.</dd>
0N/A <dt>proxy-status</dt>
0N/A <dd>The HTTP status received from the backend server.</dd>
0N/A </dl>
0N/A</div>
0N/A</div>
0N/A<div class="bottomlang">
0N/A<p><span>Available Languages: </span><a href="/en/mod/mod_proxy_http.html" title="English">&nbsp;en&nbsp;</a> |
0N/A<a href="/fr/mod/mod_proxy_http.html" hreflang="fr" rel="alternate" title="Fran�ais">&nbsp;fr&nbsp;</a></p>
0N/A</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>
0N/A<script type="text/javascript"><!--//--><![CDATA[//><!--
0N/Avar comments_shortname = 'httpd';
0N/Avar comments_identifier = 'http://httpd.apache.org/docs/trunk/mod/mod_proxy_http.html';
0N/A(function(w, d) {
0N/A if (w.location.hostname.toLowerCase() == "httpd.apache.org") {
0N/A d.write('<div id="comments_thread"><\/div>');
0N/A var s = d.createElement('script');
0N/A s.type = 'text/javascript';
0N/A s.async = true;
0N/A s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier;
0N/A (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s);
0N/A }
0N/A else {
0N/A d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>');
0N/A }
0N/A})(window, document);
0N/A//--><!]]></script></div><div id="footer">
0N/A<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>
0N/A<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[//><!--
0N/Aif (typeof(prettyPrint) !== 'undefined') {
0N/A prettyPrint();
0N/A}
0N/A//--><!]]></script>
0N/A</body></html>