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