proxy.xml revision 53abc235688d883cfa15cdfec354ba03128f357a
b4a287513d176e4355dd56ea47b27228e0e5d75fjerenkrantz<?xml-stylesheet type="text/xsl" href="/style/manual.en.xsl"?>
b4a287513d176e4355dd56ea47b27228e0e5d75fjerenkrantz<!-- $LastChangedRevision$ -->
cd47196ef7dd7647418fa9b9cb8297cfa614c100rbb Licensed to the Apache Software Foundation (ASF) under one or more
7bb9fddff37df5cde21b7c4880360f5199875874trawick contributor license agreements. See the NOTICE file distributed with
b4a287513d176e4355dd56ea47b27228e0e5d75fjerenkrantz this work for additional information regarding copyright ownership.
b4a287513d176e4355dd56ea47b27228e0e5d75fjerenkrantz The ASF licenses this file to You under the Apache License, Version 2.0
b4a287513d176e4355dd56ea47b27228e0e5d75fjerenkrantz (the "License"); you may not use this file except in compliance with
b4a287513d176e4355dd56ea47b27228e0e5d75fjerenkrantz the License. You may obtain a copy of the License at
b4a287513d176e4355dd56ea47b27228e0e5d75fjerenkrantz Unless required by applicable law or agreed to in writing, software
b4a287513d176e4355dd56ea47b27228e0e5d75fjerenkrantz distributed under the License is distributed on an "AS IS" BASIS,
b4a287513d176e4355dd56ea47b27228e0e5d75fjerenkrantz WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
b4a287513d176e4355dd56ea47b27228e0e5d75fjerenkrantz See the License for the specific language governing permissions and
b4a287513d176e4355dd56ea47b27228e0e5d75fjerenkrantz limitations under the License.
b4a287513d176e4355dd56ea47b27228e0e5d75fjerenkrantz <parentdocument href="./">Rewrite</parentdocument>
b4a287513d176e4355dd56ea47b27228e0e5d75fjerenkrantz<p>This document supplements the <module>mod_rewrite</module>
b4a287513d176e4355dd56ea47b27228e0e5d75fjerenkrantz<a href="/mod/mod_rewrite.html">reference documentation</a>. It describes
b4a287513d176e4355dd56ea47b27228e0e5d75fjerenkrantzhow to use the RewriteRule's [P] flag to proxy content to another server.
84572252cfafd33c91d893b34dec34fcbca34371ndA number of recipes are provided that describe common scenarios.</p>
480706fbb16436bfdff23c83c8993875ae7ece92minfrin<seealso><a href="/mod/mod_rewrite.html">Module documentation</a></seealso>
480706fbb16436bfdff23c83c8993875ae7ece92minfrin<seealso><a href="intro.html">mod_rewrite introduction</a></seealso>
480706fbb16436bfdff23c83c8993875ae7ece92minfrin<seealso><a href="remapping.html">Redirection and remapping</a></seealso>
480706fbb16436bfdff23c83c8993875ae7ece92minfrin<seealso><a href="access.html">Controlling access</a></seealso>
b4a287513d176e4355dd56ea47b27228e0e5d75fjerenkrantz<seealso><a href="vhosts.html">Virtual hosts</a></seealso>
b4a287513d176e4355dd56ea47b27228e0e5d75fjerenkrantz<!--<seealso><a href="proxy.html">Proxying</a></seealso>-->
b4a287513d176e4355dd56ea47b27228e0e5d75fjerenkrantz<seealso><a href="rewritemap.html">Using RewriteMap</a></seealso>
aefffd0b370de6f499564ff7e0576c931a53fccdstoddard<seealso><a href="advanced.html">Advanced techniques</a></seealso>
b4a287513d176e4355dd56ea47b27228e0e5d75fjerenkrantz<seealso><a href="avoid.html">When not to use mod_rewrite</a></seealso>
7abe86bacd7821fb83a784398037defc64060a2emanoj mod_rewrite provides the [P] flag, which allows URLs to be passed,
c803b0d84b48f151504b87ec3f196cb433149592rbb via mod_proxy, to another server. Two examples are given here. In
RewriteRule ^<strong>widget/</strong>(.*)$ <strong>http://product.example.com/widget/</strong>$1 [<strong>P</strong>]<br />
ProxyPassReverse / http://old.example.com/