]> granicus.if.org Git - apache/commitdiff
add more examples, mention one reason to use SetHandler.
authorEric Covener <covener@apache.org>
Fri, 19 Dec 2014 23:41:58 +0000 (23:41 +0000)
committerEric Covener <covener@apache.org>
Fri, 19 Dec 2014 23:41:58 +0000 (23:41 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1646901 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_proxy_fcgi.xml

index d69848987c4d523296bf5d2f43de24b13202f09c..4a8ce078fbe63c6aec766d0194581b9c1b9979db 100644 (file)
@@ -129,13 +129,24 @@ ProxyPass /myapp/ balancer://myappcluster/
        reasons, you will want to define a <a href="../mod_proxy.html#worker">worker</a>
        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.
       </p>
     <example><title>Proxy via Handler</title>
       <highlight language="config">
 &lt;FilesMatch \.php$&gt;
+    # Note: The only part that varies is /path/to/app.sock
     SetHandler  "proxy:unix:/path/to/app.sock|fcgi://localhost/"
 &lt;/FilesMatch&gt;
+
+&lt;FilesMatch ...&gt;
+    SetHandler  "proxy:fcgi://localhost:9000"
+&lt;/FilesMatch&gt;
+
+&lt;FilesMatch ...&gt;
+    SetHandler  "proxy:balancer://myappcluster/"
+&lt;/FilesMatch&gt;
       </highlight>
    </example>
 </section>