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