From: Christophe Jaillet
Date: Fri, 27 May 2016 20:46:16 +0000 (+0000)
Subject: Improve example layout
X-Git-Tag: 2.4.21~122
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=25a90dbbafd4917a041dd2c4b23a7fd5730328ca;p=apache
Improve example layout
Synch with trunk
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1745815 13f79535-47bb-0310-9956-ffa450edef68
---
diff --git a/docs/manual/mod/mod_proxy_fcgi.xml b/docs/manual/mod/mod_proxy_fcgi.xml
index cb638acfa5..fa5f27da28 100644
--- a/docs/manual/mod/mod_proxy_fcgi.xml
+++ b/docs/manual/mod/mod_proxy_fcgi.xml
@@ -65,8 +65,8 @@
Single application instance
- ProxyPass "/myapp/" "fcgi://localhost:4000/"
-
+ProxyPass "/myapp/" "fcgi://localhost:4000/"
+
mod_proxy_fcgi disables connection reuse by
@@ -78,17 +78,17 @@
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
- path for the PHP-FPM daemon to run. The request URL is implicitly added
+
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. 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/"
@@ -125,9 +125,9 @@ ProxyPass "/myapp/" "balancer://myappcluster/"
specified FastCGI server using reverse proxy.
This feature is available in Apache HTTP Server 2.4.10 and later. For performance
reasons, you will want to define a worker
- representing the same fcgi:// backend. The benefit of this form is that it
- allows the normal mapping of URI to filename to occur in the server, and the
- local filesystem result is passed to the backend. When FastCGI is
+ representing the same fcgi:// backend. The benefit of this form is that it
+ allows the normal mapping of URI to filename to occur in the server, and the
+ local filesystem result is passed to the backend. When FastCGI is
configured this way, the server can calculate the most accurate
PATH_INFO.
@@ -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"
@@ -175,19 +176,19 @@ ProxyPass "/myapp/" "balancer://myappcluster/"
is chosen (In 2.4.11 and later only):
- first-dot
- - PATH_INFO is split from the slash following the
+
- PATH_INFO is split from the slash following the
first "." in the URL.
- last-dot
- - PATH_INFO is split from the slash following the
+
- PATH_INFO is split from the slash following the
last "." in the URL.
- - full
- - PATH_INFO is calculated by an attempt to map the URL to the
+
- full
+ - PATH_INFO is calculated by an attempt to map the URL to the
local filesystem.
- unescape
- - PATH_INFO is the path component of the URL, unescaped /
+
- PATH_INFO is the path component of the URL, unescaped /
decoded.
- any other value
- - PATH_INFO is the same as the path component of the URL.
+
- PATH_INFO is the same as the path component of the URL.
Originally, this was the only proxy-fcgi-pathinfo option.