From: Eric Covener
Date: Fri, 19 Dec 2014 23:41:58 +0000 (+0000)
Subject: add more examples, mention one reason to use SetHandler.
X-Git-Tag: 2.5.0-alpha~3604
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=43bb1e9675af4606faf43d1e5232ffe62f41babf;p=apache
add more examples, mention one reason to use SetHandler.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1646901 13f79535-47bb-0310-9956-ffa450edef68
---
diff --git a/docs/manual/mod/mod_proxy_fcgi.xml b/docs/manual/mod/mod_proxy_fcgi.xml
index d69848987c..4a8ce078fb 100644
--- a/docs/manual/mod/mod_proxy_fcgi.xml
+++ b/docs/manual/mod/mod_proxy_fcgi.xml
@@ -129,13 +129,24 @@ ProxyPass /myapp/ balancer://myappcluster/
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.
+ local filesystem result is passed to the backend. When FastCGI is
+ configured this way, the server can calculate the most accurate
+ PATH_INFO.
Proxy via Handler
<FilesMatch \.php$>
+ # Note: The only part that varies is /path/to/app.sock
SetHandler "proxy:unix:/path/to/app.sock|fcgi://localhost/"
</FilesMatch>
+
+<FilesMatch ...>
+ SetHandler "proxy:fcgi://localhost:9000"
+</FilesMatch>
+
+<FilesMatch ...>
+ SetHandler "proxy:balancer://myappcluster/"
+</FilesMatch>