You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by co...@apache.org on 2014/11/24 13:45:35 UTC

svn commit: r1641382 - in /httpd/httpd/trunk/docs/manual/mod: mod_proxy_fcgi.html.en mod_proxy_fcgi.xml

Author: covener
Date: Mon Nov 24 12:45:34 2014
New Revision: 1641382

URL: http://svn.apache.org/r1641382
Log:
test/document php-fpm with proxy_fcgi


Modified:
    httpd/httpd/trunk/docs/manual/mod/mod_proxy_fcgi.html.en
    httpd/httpd/trunk/docs/manual/mod/mod_proxy_fcgi.xml

Modified: httpd/httpd/trunk/docs/manual/mod/mod_proxy_fcgi.html.en
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_proxy_fcgi.html.en?rev=1641382&r1=1641381&r2=1641382&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/mod_proxy_fcgi.html.en (original)
+++ httpd/httpd/trunk/docs/manual/mod/mod_proxy_fcgi.html.en Mon Nov 24 12:45:34 2014
@@ -90,6 +90,20 @@
     <div class="example"><h3>Single application instance, no connection reuse</h3><pre class="prettyprint lang-config">ProxyPass /myapp/ fcgi://localhost:4000/ disablereuse=on</pre>
 </div>
 
+    <p> 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.</p>
+    <div class="example"><h3>PHP-FPM</h3><pre class="prettyprint lang-config">ProxyPassMatch ^/myapp/.*\.php(/.*)?$ fcgi://localhost:9000/var/www/</pre>
+</div>
+
+    <p> 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.</p>
+    <div class="example"><h3>PHP-FPM with UDS</h3><pre class="prettyprint lang-config">ProxyPassMatch ^/(.*\.php(/.*)?)$ "unix:/var/run/php5-fpm.sock|fcgi://localhost/var/www/"</pre>
+</div>
+
     <p>The balanced gateway needs <code class="module"><a href="../mod/mod_proxy_balancer.html">mod_proxy_balancer</a></code> and
     at least one load balancer algorithm module, such as
     <code class="module"><a href="../mod/mod_lbmethod_byrequests.html">mod_lbmethod_byrequests</a></code>, in addition to the proxy

Modified: httpd/httpd/trunk/docs/manual/mod/mod_proxy_fcgi.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_proxy_fcgi.xml?rev=1641382&r1=1641381&r2=1641382&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/mod_proxy_fcgi.xml (original)
+++ httpd/httpd/trunk/docs/manual/mod/mod_proxy_fcgi.xml Mon Nov 24 12:45:34 2014
@@ -85,6 +85,26 @@
       </highlight>
     </example>
 
+    <p> 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.</p>
+    <example><title>PHP-FPM</title>
+    <highlight language="config">
+      ProxyPassMatch ^/myapp/.*\.php(/.*)?$ fcgi://localhost:9000/var/www/
+    </highlight>
+    </example>
+
+    <p> 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.</p>
+    <example><title>PHP-FPM with UDS</title>
+    <highlight language="config">
+      ProxyPassMatch ^/(.*\.php(/.*)?)$ "unix:/var/run/php5-fpm.sock|fcgi://localhost/var/www/"
+    </highlight>
+    </example>
+
     <p>The balanced gateway needs <module>mod_proxy_balancer</module> and
     at least one load balancer algorithm module, such as
     <module>mod_lbmethod_byrequests</module>, in addition to the proxy