1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><!--
4        XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
5              This file is generated from xml source: DO NOT EDIT
6        XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
7      -->
8<title>mod_proxy_connect - Apache HTTP Server</title>
9<link href="/style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
10<link href="/style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
11<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" />
12<script src="/style/scripts/prettify.min.js" type="text/javascript">
13</script>
14
15<link href="/images/favicon.ico" rel="shortcut icon" /></head>
16<body>
17<div id="page-header">
18<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>
19<p class="apache">Apache HTTP Server Version 2.4</p>
20<img alt="" src="/images/feather.gif" /></div>
21<div class="up"><a href="./"><img title="&lt;-" alt="&lt;-" src="/images/left.gif" /></a></div>
22<div id="path">
23<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.4</a> &gt; <a href="./">Modules</a></div>
24<div id="page-content">
25<div id="preamble"><h1>Apache Module mod_proxy_connect</h1>
26<div class="toplang">
27<p><span>Available Languages: </span><a href="/en/mod/mod_proxy_connect.html" title="English">&nbsp;en&nbsp;</a> |
28<a href="/fr/mod/mod_proxy_connect.html" hreflang="fr" rel="alternate" title="Fran�ais">&nbsp;fr&nbsp;</a> |
29<a href="/ja/mod/mod_proxy_connect.html" hreflang="ja" rel="alternate" title="Japanese">&nbsp;ja&nbsp;</a></p>
30</div>
31<table class="module"><tr><th><a href="module-dict.html#Description">Description:</a></th><td><code class="module"><a href="/mod/mod_proxy.html">mod_proxy</a></code> extension for
32<code>CONNECT</code> request handling</td></tr>
33<tr><th><a href="module-dict.html#Status">Status:</a></th><td>Extension</td></tr>
34<tr><th><a href="module-dict.html#ModuleIdentifier">Module�Identifier:</a></th><td>proxy_connect_module</td></tr>
35<tr><th><a href="module-dict.html#SourceFile">Source�File:</a></th><td>mod_proxy_connect.c</td></tr></table>
36<h3>Summary</h3>
37
38    <p>This module <em>requires</em> the service of <code class="module"><a href="/mod/mod_proxy.html">mod_proxy</a></code>. It provides support for the <code>CONNECT</code>
39    HTTP method. This method is mainly used to tunnel SSL requests
40    through proxy servers.</p>
41
42    <p>Thus, in order to get the ability of handling <code>CONNECT</code>
43    requests, <code class="module"><a href="/mod/mod_proxy.html">mod_proxy</a></code> and
44    <code class="module"><a href="/mod/mod_proxy_connect.html">mod_proxy_connect</a></code> have to be present in the server.</p>
45
46    <p>CONNECT is also used, when the server needs to send an HTTPS request
47    through a forward proxy. In this case the server acts as a CONNECT client.
48    This functionality is part of <code class="module"><a href="/mod/mod_proxy.html">mod_proxy</a></code> and
49    <code class="module"><a href="/mod/mod_proxy_connect.html">mod_proxy_connect</a></code> is not needed in this case.</p>
50
51    <div class="warning"><h3>Warning</h3>
52      <p>Do not enable proxying until you have <a href="mod_proxy.html#access">secured your server</a>. Open proxy
53      servers are dangerous both to your network and to the Internet at
54      large.</p>
55    </div>
56</div>
57<div id="quickview"><h3 class="directives">Directives</h3>
58<ul id="toc">
59<li><img alt="" src="/images/down.gif" /> <a href="#allowconnect">AllowCONNECT</a></li>
60</ul>
61<h3>Topics</h3>
62<ul id="topics">
63<li><img alt="" src="/images/down.gif" /> <a href="#notes">Request notes</a></li>
64</ul><h3>See also</h3>
65<ul class="seealso">
66<li><code class="module"><a href="/mod/mod_proxy.html">mod_proxy</a></code></li>
67</ul><ul class="seealso"><li><a href="#comments_section">Comments</a></li></ul></div>
68<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
69<div class="section">
70<h2><a name="notes" id="notes">Request notes</a></h2>
71    <p><code class="module"><a href="/mod/mod_proxy_connect.html">mod_proxy_connect</a></code> creates the following request notes for
72        logging using the <code>%{VARNAME}n</code> format in
73        <code class="directive"><a href="/mod/mod_log_config.html#logformat">LogFormat</a></code> or
74        <code class="directive"><a href="/mod/core.html#errorlogformat">ErrorLogFormat</a></code>:
75    </p>
76    <dl>
77        <dt>proxy-source-port</dt>
78        <dd>The local port used for the connection to the backend server.</dd>
79    </dl>
80</div>
81<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
82<div class="directive-section"><h2><a name="AllowCONNECT" id="AllowCONNECT">AllowCONNECT</a> <a name="allowconnect" id="allowconnect">Directive</a></h2>
83<table class="directive">
84<tr><th><a href="directive-dict.html#Description">Description:</a></th><td>Ports that are allowed to <code>CONNECT</code> through the
85proxy</td></tr>
86<tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>AllowCONNECT <var>port</var>[-<var>port</var>]
87[<var>port</var>[-<var>port</var>]] ...</code></td></tr>
88<tr><th><a href="directive-dict.html#Default">Default:</a></th><td><code>AllowCONNECT 443 563</code></td></tr>
89<tr><th><a href="directive-dict.html#Context">Context:</a></th><td>server config, virtual host</td></tr>
90<tr><th><a href="directive-dict.html#Status">Status:</a></th><td>Extension</td></tr>
91<tr><th><a href="directive-dict.html#Module">Module:</a></th><td>mod_proxy_connect</td></tr>
92<tr><th><a href="directive-dict.html#Compatibility">Compatibility:</a></th><td>Moved from <code class="module"><a href="/mod/mod_proxy.html">mod_proxy</a></code> in Apache 2.3.5.
93Port ranges available since Apache 2.3.7.</td></tr>
94</table>
95    <p>The <code class="directive">AllowCONNECT</code> directive specifies a list
96    of port numbers or ranges to which the proxy <code>CONNECT</code> method
97    may connect.  Today's browsers use this method when a <code>https</code>
98    connection is requested and proxy tunneling over HTTP is in effect.</p>
99
100    <p>By default, only the default https port (<code>443</code>) and the
101    default snews port (<code>563</code>) are enabled. Use the
102    <code class="directive">AllowCONNECT</code> directive to override this default and
103    allow connections to the listed ports only.</p>
104
105</div>
106</div>
107<div class="bottomlang">
108<p><span>Available Languages: </span><a href="/en/mod/mod_proxy_connect.html" title="English">&nbsp;en&nbsp;</a> |
109<a href="/fr/mod/mod_proxy_connect.html" hreflang="fr" rel="alternate" title="Fran�ais">&nbsp;fr&nbsp;</a> |
110<a href="/ja/mod/mod_proxy_connect.html" hreflang="ja" rel="alternate" title="Japanese">&nbsp;ja&nbsp;</a></p>
111</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>
112<script type="text/javascript"><!--//--><![CDATA[//><!--
113var comments_shortname = 'httpd';
114var comments_identifier = 'http://httpd.apache.org/docs/2.4/mod/mod_proxy_connect.html';
115(function(w, d) {
116    if (w.location.hostname.toLowerCase() == "httpd.apache.org") {
117        d.write('<div id="comments_thread"><\/div>');
118        var s = d.createElement('script');
119        s.type = 'text/javascript';
120        s.async = true;
121        s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier;
122        (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s);
123    }
124    else { 
125        d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>');
126    }
127})(window, document);
128//--><!]]></script></div><div id="footer">
129<p class="apache">Copyright 2014 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>
130<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[//><!--
131if (typeof(prettyPrint) !== 'undefined') {
132    prettyPrint();
133}
134//--><!]]></script>
135</body></html>