From: Eric Covener Date: Sat, 20 Dec 2014 15:38:35 +0000 (+0000) Subject: xforms X-Git-Tag: 2.5.0-alpha~3601 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=905930ac7c6f0051a1f755ff1b9919c5c45b821b;p=apache xforms git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1647006 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_proxy_fcgi.html.en b/docs/manual/mod/mod_proxy_fcgi.html.en index fd394e4de8..7e141cf552 100644 --- a/docs/manual/mod/mod_proxy_fcgi.html.en +++ b/docs/manual/mod/mod_proxy_fcgi.html.en @@ -76,32 +76,29 @@

Single application instance

ProxyPass /myapp/ fcgi://localhost:4000/
-

This application should be able to handle multiple concurrent - connections. mod_proxy enables connection reuse by - default, so after a request has been completed the connection will be - held open by that httpd child process and won't be reused until that - httpd process routes another request to the application. If the - FastCGI application is unable to handle enough concurrent connections - from httpd, requests can block waiting for the application to close - an existing connection. One way to resolve this is to disable connection - reuse on the ProxyPass directive, as shown in - the following example:

+

mod_proxy_fcgi disables connection reuse by + default, so after a request has been completed the connection will NOT be + held open by that httpd child process and won't be reused. If the + FastCGI application is able to handle concurrent connections + from httpd, you can opt-in to connection reuse as shown in the following + example:

-

Single application instance, no connection reuse

ProxyPass /myapp/ fcgi://localhost:4000/ disablereuse=on
+

Single application instance, connection reuse

ProxyPass /myapp/ fcgi://localhost:4000/ disablereuse=off

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/
+ PHP-FPM is listening. Connection pooling is enabled.

+

PHP-FPM

ProxyPassMatch ^/myapp/.*\.php(/.*)?$ fcgi://localhost:9000/var/www/ disablereuse=off

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 fcgi:// are ignored.

-

PHP-FPM with UDS

ProxyPassMatch ^/(.*\.php(/.*)?)$ "unix:/var/run/php5-fpm.sock|fcgi://localhost/var/www/"
+

PHP-FPM with UDS

      # UDS does not currently support connection reuse
+      ProxyPassMatch ^/(.*\.php(/.*)?)$ "unix:/var/run/php5-fpm.sock|fcgi://localhost/var/www/"

The balanced gateway needs mod_proxy_balancer and