From: Eric Covener Date: Mon, 24 Nov 2014 12:47:27 +0000 (+0000) Subject: Merge r1641311, r1641382 from trunk: X-Git-Tag: 2.4.11~160 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=24225d293c5856303e68edaeb2bdbe4a1c8ead35;p=apache Merge r1641311, r1641382 from trunk: surprising but confirmed by comment in mod_proxy test/document php-fpm with proxy_fcgi git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1641383 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_proxy.html.en b/docs/manual/mod/mod_proxy.html.en index e1ead4d752..8f3c2a65b1 100644 --- a/docs/manual/mod/mod_proxy.html.en +++ b/docs/manual/mod/mod_proxy.html.en @@ -1521,6 +1521,13 @@ ProxyPassReverse /mirror/foo/ https://backend.example.com/ RewriteRule directive with the [P] flag.

+
+

Default Substitution

+

When the URL parameter doesn't use any backreferences into the regular + expression, the original URL will be appended to the URL parameter. +

+
+

Security Warning

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/ RewriteRule directive with the [P] flag.

+ + Default Substitution +

When the URL parameter doesn't use any backreferences into the regular + expression, the original URL will be appended to the URL parameter. +

+
+ Security Warning

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 @@

Single application instance, no connection reuse

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.

+

PHP-FPM

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.

+

PHP-FPM with UDS

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.

+ PHP-FPM + + 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.

+ PHP-FPM with UDS + + 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