From: Eric Covener RewriteRule
directive with the
[P]
flag.
When the URL parameter doesn't use any backreferences into the regular + expression, the original URL will be appended to the URL parameter. +
+Take care when constructing the target URL of the rule, considering
diff --git a/docs/manual/mod/mod_proxy.xml b/docs/manual/mod/mod_proxy.xml
index e28e3be300..11e72edebd 100644
--- a/docs/manual/mod/mod_proxy.xml
+++ b/docs/manual/mod/mod_proxy.xml
@@ -1375,6 +1375,13 @@ ProxyPassReverse /mirror/foo/ https://backend.example.com/
[P]
flag.
When the URL parameter doesn't use any backreferences into the regular + expression, the original URL will be appended to the URL parameter. +
+Take care when constructing the target URL of the rule, considering diff --git a/docs/manual/mod/mod_proxy_fcgi.html.en b/docs/manual/mod/mod_proxy_fcgi.html.en index 4cfca11425..fa797d6d94 100644 --- a/docs/manual/mod/mod_proxy_fcgi.html.en +++ b/docs/manual/mod/mod_proxy_fcgi.html.en @@ -91,6 +91,20 @@
ProxyPass /myapp/ fcgi://localhost:4000/ disablereuse=on
The following example passes the request URI as a filesystem + path for the PHP-FPM daemon to run. The request URL is implicitly added + to the 2nd parameter. The hostname and port following fcgi:// are where + PHP-FPM is listening.
+ProxyPassMatch ^/myapp/.*\.php(/.*)?$ fcgi://localhost:9000/var/www/+
The following example passes the request URI as a filesystem + path for the PHP-FPM daemon to run. In this case, PHP-FPM is listening on + a unix domain socket (UDS). Requires 2.4.9 or later. With this syntax, + the hostname and optional port following fci:// are ignored.
+ProxyPassMatch ^/(.*\.php(/.*)?)$ "unix:/var/run/php5-fpm.sock|fcgi://localhost/var/www/"+
The balanced gateway needs mod_proxy_balancer
and
at least one load balancer algorithm module, such as
mod_lbmethod_byrequests
, in addition to the proxy
diff --git a/docs/manual/mod/mod_proxy_fcgi.xml b/docs/manual/mod/mod_proxy_fcgi.xml
index fb3c7f8b54..575babc717 100644
--- a/docs/manual/mod/mod_proxy_fcgi.xml
+++ b/docs/manual/mod/mod_proxy_fcgi.xml
@@ -85,6 +85,26 @@
+
The following example passes the request URI as a filesystem + path for the PHP-FPM daemon to run. The request URL is implicitly added + to the 2nd parameter. The hostname and port following fcgi:// are where + PHP-FPM is listening.
+The following example passes the request URI as a filesystem + path for the PHP-FPM daemon to run. In this case, PHP-FPM is listening on + a unix domain socket (UDS). Requires 2.4.9 or later. With this syntax, + the hostname and optional port following fci:// are ignored.
+The balanced gateway needs