Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Httpd Wiki" for change 
notification.

The following page has been changed by RichBowen:
http://wiki.apache.org/httpd/RewriteFlags/P

New page:
The P flag causes the resulting URL to be requested by proxy, using mod_proxy. 
This allows for complex proxying of content to a variety of back-end servers. 
You do need to have mod_proxy installed in order to use the [P] flag.

{{{
RewriteEngine On
RewriteCond %{Request_URI} !^/images
RewriteCond %{Request_URI} !^/css
RewriteRule ^(.*)$ http://other.server.com:90$1 [P]
ProxyPassReverse / http://other.server.com:90/
}}}

The above ruleset causes all URLs, except those for the /images and /css 
directories, to be proxied through to another server, running on port 90. The 
ProxyPassReverse directive is to ensure that redirects returning from that 
server are correctly passed back to the client. (See 
[http://httpd.apache.org/docs-2.0/mod/mod_proxy.html#proxypassreverse the 
ProxyPassReverse documentation] for more details.)

The more verbose [Proxy] syntax is also permitted.

'' Back to ["RewriteFlags"] ''

Reply via email to