]> granicus.if.org Git - apache/blob - docs/manual/mod/mod_proxy_express.html.en
Documentation rebuild after recent commits
[apache] / docs / manual / mod / mod_proxy_express.html.en
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 <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type" />
5 <!--
6         XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
7               This file is generated from xml source: DO NOT EDIT
8         XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
9       -->
10 <title>mod_proxy_express - Apache HTTP Server Version 2.5</title>
11 <link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
12 <link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
13 <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" />
14 <script src="../style/scripts/prettify.min.js" type="text/javascript">
15 </script>
16
17 <link href="../images/favicon.ico" rel="shortcut icon" /></head>
18 <body>
19 <div id="page-header">
20 <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>
21 <p class="apache">Apache HTTP Server Version 2.5</p>
22 <img alt="" src="../images/feather.png" /></div>
23 <div class="up"><a href="./"><img title="&lt;-" alt="&lt;-" src="../images/left.gif" /></a></div>
24 <div id="path">
25 <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>
26 <div id="page-content">
27 <div id="preamble"><h1>Apache Module mod_proxy_express</h1>
28 <div class="toplang">
29 <p><span>Available Languages: </span><a href="../en/mod/mod_proxy_express.html" title="English">&nbsp;en&nbsp;</a></p>
30 </div>
31 <table class="module"><tr><th><a href="module-dict.html#Description">Description:</a></th><td>Dynamic mass reverse proxy extension for
32 <code class="module"><a href="../mod/mod_proxy.html">mod_proxy</a></code></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_express_module</td></tr>
35 <tr><th><a href="module-dict.html#SourceFile">Source File:</a></th><td>mod_proxy_express.c</td></tr></table>
36 <h3>Summary</h3>
37
38     <p>This module creates dynamically configured mass reverse
39     proxies, by mapping the Host: header of the HTTP request to
40     a server name and backend URL stored in a DBM file.
41     This allows for easy use of a huge number of reverse proxies
42     with no configuration changes. It is much less feature-full
43     than <code class="module"><a href="../mod/mod_proxy_balancer.html">mod_proxy_balancer</a></code>, which also provides
44     dynamic growth, but is intended to handle much, much
45     larger numbers of backends. It is ideally suited as a
46     front-end HTTP switch.</p>
47
48     <p>This module <em>requires</em> the service of <code class="module"><a href="../mod/mod_proxy.html">mod_proxy</a></code>.</p>
49
50     <div class="warning"><h3>Warning</h3>
51       <p>Do not enable proxying until you have <a href="mod_proxy.html#access">secured your server</a>. Open proxy
52       servers are dangerous both to your network and to the Internet at
53       large.</p>
54     </div>
55
56 <div class="note"><h3>Limitations</h3>
57   <ul>
58     <li>This module is not intended to replace the dynamic capability of
59       <code class="module"><a href="../mod/mod_proxy_balancer.html">mod_proxy_balancer</a></code>. Instead, it is intended to be mostly
60       a lightweight and fast alternative to using <code class="module"><a href="../mod/mod_rewrite.html">mod_rewrite</a></code>
61       with <code class="directive">RewriteMap</code> and the <code>[P]</code> flag
62       for mapped reverse proxying.
63     </li>
64     <li>It does not support regex or pattern matching at all.
65     </li>
66     <li>It emulates:
67       <pre class="prettyprint lang-config">&lt;VirtualHost *:80&gt;
68    ServerName front.end.server
69    ProxyPass        "/" "back.end.server:port"
70    ProxyPassReverse "/" "back.end.server:port"
71 &lt;/VirtualHost&gt;</pre>
72
73       That is, the entire URL is appended to the mapped backend
74       URL. This is in keeping with the intent of being a simple
75       but fast reverse proxy switch.
76     </li>
77   </ul>
78 </div>
79
80 </div>
81 <div id="quickview"><h3 class="directives">Directives</h3>
82 <ul id="toc">
83 <li><img alt="" src="../images/down.gif" /> <a href="#proxyexpressdbmfile">ProxyExpressDBMFile</a></li>
84 <li><img alt="" src="../images/down.gif" /> <a href="#proxyexpressdbmtype">ProxyExpressDBMType</a></li>
85 <li><img alt="" src="../images/down.gif" /> <a href="#proxyexpressenable">ProxyExpressEnable</a></li>
86 </ul>
87 <h3>Bugfix checklist</h3><ul class="seealso"><li><a href="https://www.apache.org/dist/httpd/CHANGES_2.4">httpd changelog</a></li><li><a href="https://bz.apache.org/bugzilla/buglist.cgi?bug_status=__open__&amp;list_id=144532&amp;product=Apache%20httpd-2&amp;query_format=specific&amp;order=changeddate%20DESC%2Cpriority%2Cbug_severity&amp;component=mod_proxy_express">Known issues</a></li><li><a href="https://bz.apache.org/bugzilla/enter_bug.cgi?product=Apache%20httpd-2&amp;component=mod_proxy_express">Report a bug</a></li></ul><h3>See also</h3>
88 <ul class="seealso">
89 <li><code class="module"><a href="../mod/mod_proxy.html">mod_proxy</a></code></li>
90 <li><a href="#comments_section">Comments</a></li></ul></div>
91
92 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
93 <div class="directive-section"><h2><a name="ProxyExpressDBMFile" id="ProxyExpressDBMFile">ProxyExpressDBMFile</a> <a name="proxyexpressdbmfile" id="proxyexpressdbmfile">Directive</a></h2>
94 <table class="directive">
95 <tr><th><a href="directive-dict.html#Description">Description:</a></th><td>Pathname to DBM file.</td></tr>
96 <tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>ProxyExpressDBMFile &lt;pathname&gt;</code></td></tr>
97 <tr><th><a href="directive-dict.html#Default">Default:</a></th><td><code>None</code></td></tr>
98 <tr><th><a href="directive-dict.html#Context">Context:</a></th><td>server config, virtual host</td></tr>
99 <tr><th><a href="directive-dict.html#Status">Status:</a></th><td>Extension</td></tr>
100 <tr><th><a href="directive-dict.html#Module">Module:</a></th><td>mod_proxy_express</td></tr>
101 <tr><th><a href="directive-dict.html#Compatibility">Compatibility:</a></th><td>Available in Apache 2.3.13 and later</td></tr>
102 </table>
103   <p>The <code class="directive">ProxyExpressDBMFile</code> directive
104     points to the location of the Express map DBM file. This
105     file serves to map the incoming server name, obtained from
106     the Host: header, to a backend URL.</p>
107
108     <div class="note"><h3>Note</h3>
109       <p>The file is constructed from a plain text file format using
110         the <code><a href="../programs/httxt2dbm.html">httxt2dbm</a></code>
111         utility.</p>
112
113       <div class="example"><h3>ProxyExpress map file</h3><p><code>
114         ##<br />
115         ##express-map.txt:<br />
116         ##<br />
117         <br />
118         www1.example.com    http://192.168.211.2:8080<br />
119         www2.example.com   http://192.168.211.12:8088<br />
120         www3.example.com   http://192.168.212.10<br />
121       </code></p></div>
122
123       <div class="example"><h3>Create DBM file</h3><p><code>
124         httxt2dbm -i express-map.txt -o emap<br />
125         </code></p></div>
126
127       <div class="example"><h3>Configuration</h3><p><code>
128         ProxyExpressEnable on<br />
129         ProxyExpressDBMFile emap<br />
130         </code></p></div>
131     </div>
132
133 </div>
134 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
135 <div class="directive-section"><h2><a name="ProxyExpressDBMType" id="ProxyExpressDBMType">ProxyExpressDBMType</a> <a name="proxyexpressdbmtype" id="proxyexpressdbmtype">Directive</a></h2>
136 <table class="directive">
137 <tr><th><a href="directive-dict.html#Description">Description:</a></th><td>DBM type of file.</td></tr>
138 <tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>ProxyExpressDBMFile &lt;type&gt;</code></td></tr>
139 <tr><th><a href="directive-dict.html#Default">Default:</a></th><td><code>"default"</code></td></tr>
140 <tr><th><a href="directive-dict.html#Context">Context:</a></th><td>server config, virtual host</td></tr>
141 <tr><th><a href="directive-dict.html#Status">Status:</a></th><td>Extension</td></tr>
142 <tr><th><a href="directive-dict.html#Module">Module:</a></th><td>mod_proxy_express</td></tr>
143 <tr><th><a href="directive-dict.html#Compatibility">Compatibility:</a></th><td>Available in Apache 2.3.13 and later</td></tr>
144 </table>
145   <p>The <code class="directive">ProxyExpressDBMType</code> directive
146     controls the DBM type expected by the module. The default
147     is the default DBM type created with <code>
148     <a href="../programs/httxt2dbm.html">httxt2dbm</a></code>.</p>
149     <p>Possible values are (not all may be available at run time):</p>
150 <table class="bordered"><tr class="header"><th>Value</th><th>Description</th></tr>
151 <tr><td><code>db</code></td><td> Berkeley DB files</td></tr>
152 <tr class="odd"><td><code>gdbm</code></td><td> GDBM files</td></tr>
153 <tr><td><code>ndbm</code></td><td> NDBM files</td></tr>
154 <tr class="odd"><td><code>sdbm</code></td><td> SDBM files (always available)</td></tr>
155 <tr><td><code>default</code></td><td> default DBM type</td></tr>
156 </table>
157
158
159 </div>
160 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
161 <div class="directive-section"><h2><a name="ProxyExpressEnable" id="ProxyExpressEnable">ProxyExpressEnable</a> <a name="proxyexpressenable" id="proxyexpressenable">Directive</a></h2>
162 <table class="directive">
163 <tr><th><a href="directive-dict.html#Description">Description:</a></th><td>Enable the module functionality.</td></tr>
164 <tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>ProxyExpressEnable [on|off]</code></td></tr>
165 <tr><th><a href="directive-dict.html#Default">Default:</a></th><td><code>off</code></td></tr>
166 <tr><th><a href="directive-dict.html#Context">Context:</a></th><td>server config, virtual host</td></tr>
167 <tr><th><a href="directive-dict.html#Status">Status:</a></th><td>Extension</td></tr>
168 <tr><th><a href="directive-dict.html#Module">Module:</a></th><td>mod_proxy_express</td></tr>
169 <tr><th><a href="directive-dict.html#Compatibility">Compatibility:</a></th><td>Available in Apache 2.3.13 and later</td></tr>
170 </table>
171   <p>The <code class="directive">ProxyExpressEnable</code> directive
172     controls whether the module will be active.</p>
173
174 </div>
175 </div>
176 <div class="bottomlang">
177 <p><span>Available Languages: </span><a href="../en/mod/mod_proxy_express.html" title="English">&nbsp;en&nbsp;</a></p>
178 </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>
179 <script type="text/javascript"><!--//--><![CDATA[//><!--
180 var comments_shortname = 'httpd';
181 var comments_identifier = 'http://httpd.apache.org/docs/trunk/mod/mod_proxy_express.html';
182 (function(w, d) {
183     if (w.location.hostname.toLowerCase() == "httpd.apache.org") {
184         d.write('<div id="comments_thread"><\/div>');
185         var s = d.createElement('script');
186         s.type = 'text/javascript';
187         s.async = true;
188         s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier;
189         (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s);
190     }
191     else {
192         d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>');
193     }
194 })(window, document);
195 //--><!]]></script></div><div id="footer">
196 <p class="apache">Copyright 2016 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>
197 <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[//><!--
198 if (typeof(prettyPrint) !== 'undefined') {
199     prettyPrint();
200 }
201 //--><!]]></script>
202 </body></html>