From: Christophe Jaillet Date: Fri, 27 May 2016 20:38:44 +0000 (+0000) Subject: Improve example layout X-Git-Tag: 2.5.0-alpha~1564 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=516ebdb61d40dd44a7b444c0f0db69b0b071e29c;p=apache Improve example layout Synch with 2.4.x git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1745812 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_proxy_fcgi.xml b/docs/manual/mod/mod_proxy_fcgi.xml index d1a975397f..30cfb7b306 100644 --- a/docs/manual/mod/mod_proxy_fcgi.xml +++ b/docs/manual/mod/mod_proxy_fcgi.xml @@ -65,7 +65,7 @@ Single application instance - ProxyPass "/myapp/" "fcgi://localhost:4000/" +ProxyPass "/myapp/" "fcgi://localhost:4000/" @@ -76,10 +76,10 @@ from httpd, you can opt-in to connection reuse as shown in the following example:

- Single application instance, connection reuse + Single application instance, connection reuse (2.4.11 and later) - ProxyPass "/myapp/" "fcgi://localhost:4000/" enablereuse=on - +ProxyPass "/myapp/" "fcgi://localhost:4000/" enablereuse=on +

The following example passes the request URI as a filesystem @@ -88,7 +88,7 @@ PHP-FPM is listening. Connection pooling is enabled.

PHP-FPM - ProxyPassMatch "^/myapp/.*\.php(/.*)?$" "fcgi://localhost:9000/var/www/" enablereuse=on +ProxyPassMatch "^/myapp/.*\.php(/.*)?$" "fcgi://localhost:9000/var/www/" enablereuse=on @@ -98,8 +98,8 @@ the hostname and optional port following fcgi:// are ignored.

PHP-FPM with UDS - # UDS does not currently support connection reuse - ProxyPassMatch "^/(.*\.php(/.*)?)$" "unix:/var/run/php5-fpm.sock|fcgi://localhost/var/www/" +# UDS does not currently support connection reuse +ProxyPassMatch "^/(.*\.php(/.*)?)$" "unix:/var/run/php5-fpm.sock|fcgi://localhost/var/www/" @@ -112,9 +112,9 @@ Balanced gateway to multiple application instances ProxyPass "/myapp/" "balancer://myappcluster/" -<Proxy balancer://myappcluster/> - BalancerMember fcgi://localhost:4000 - BalancerMember fcgi://localhost:4001 +<Proxy "balancer://myappcluster/"> + BalancerMember "fcgi://localhost:4000" + BalancerMember "fcgi://localhost:4001" </Proxy> @@ -137,12 +137,13 @@ ProxyPass "/myapp/" "balancer://myappcluster/" # Note: The only part that varies is /path/to/app.sock SetHandler "proxy:unix:/path/to/app.sock|fcgi://localhost/" </FilesMatch> - # Define a matching worker. - # The part that is matched to the SetHandler is the part that - # follows the pipe. If you need to distinguish, "localhost; can - # be anything unique. - <Proxy fcgi://localhost/ enablereuse=on max=10> - </Proxy> + +# Define a matching worker. +# The part that is matched to the SetHandler is the part that +# follows the pipe. If you need to distinguish, "localhost; can +# be anything unique. +<Proxy fcgi://localhost/ enablereuse=on max=10> +</Proxy> <FilesMatch ...> SetHandler "proxy:fcgi://localhost:9000" @@ -172,7 +173,7 @@ ProxyPass "/myapp/" "balancer://myappcluster/" a "best guess" for PATH_INFO, set this env-var. This is a workaround for a bug in some FCGI implementations. This variable can be set to multiple values to tweak at how the best guess - is chosen: + is chosen (In 2.4.11 and later only):
first-dot
PATH_INFO is split from the slash following the