summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorEric Covener <covener@apache.org>2014-11-24 13:45:34 +0100
committerEric Covener <covener@apache.org>2014-11-24 13:45:34 +0100
commite15a68216fb12ebb0c8cddc519993f67821763b4 (patch)
tree8a7f21bc18e112676a1f9552f8fb4dd965f5dd28 /docs
parentReturn a match whenever we get to the end of the worker name, regardless (diff)
downloadapache2-e15a68216fb12ebb0c8cddc519993f67821763b4.tar.xz
apache2-e15a68216fb12ebb0c8cddc519993f67821763b4.zip
test/document php-fpm with proxy_fcgi
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1641382 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs')
-rw-r--r--docs/manual/mod/mod_proxy_fcgi.html.en14
-rw-r--r--docs/manual/mod/mod_proxy_fcgi.xml20
2 files changed, 34 insertions, 0 deletions
diff --git a/docs/manual/mod/mod_proxy_fcgi.html.en b/docs/manual/mod/mod_proxy_fcgi.html.en
index ddb3d3f372..31d945ceb0 100644
--- a/docs/manual/mod/mod_proxy_fcgi.html.en
+++ b/docs/manual/mod/mod_proxy_fcgi.html.en
@@ -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
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 @@
</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