From: Joe Orton RewriteRule
directive with the
[P]
flag.
Take care when constructing the target URL of the rule, considering + the security impact from allowing the client influence over the set of + URLs to which your server will act as a proxy. Ensure that the scheme + and hostname part of the URL is either fixed, or does not allow the + client undue influence.
+If you require a more flexible reverse-proxy configuration, see the
[P]
flag.
Take care when constructing the target URL of the rule, considering + the security impact from allowing the client influence over the set of + URLs to which your server will act as a proxy. Ensure that the scheme + and hostname part of the URL is either fixed, or does not allow the + client undue influence.
+
-RewriteRule (.*)\.(jpg|gif|png) http://images.example.com$1.$2 [P]
+RewriteRule /(.*)\.(jpg|gif|png) http://images.example.com/$1.$2 [P]
Use of the [P] flag implies [L] - that is, the request is immediately
@@ -474,6 +474,15 @@ error from the proxy module. Use this flag to achieve a
more powerful implementation of the ProxyPass
directive,
to map remote content into the namespace of the local server.
Take care when constructing the target URL of the rule, considering +the security impact from allowing the client influence over the set of +URLs to which your server will act as a proxy. Ensure that the scheme +and hostname part of the URL is either fixed, or does not allow the +client undue influence.
+Note: mod_proxy
must be enabled in order
to use this flag.
Use of the [P] flag implies [L] - that is, the request is immediately
@@ -475,6 +475,15 @@ more powerful implementation of the
Take care when constructing the target URL of the rule, considering +the security impact from allowing the client influence over the set of +URLs to which your server will act as a proxy. Ensure that the scheme +and hostname part of the URL is either fixed, or does not allow the +client undue influence.
+Note: