]> granicus.if.org Git - apache/commitdiff
Merge r1641414 from trunk:
authorEric Covener <covener@apache.org>
Mon, 24 Nov 2014 16:17:39 +0000 (16:17 +0000)
committerEric Covener <covener@apache.org>
Mon, 24 Nov 2014 16:17:39 +0000 (16:17 +0000)
steal the sethandler example from mod_proxy.html and mention worker issue

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1641416 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_proxy_fcgi.xml

index 575babc717298c70072382c55c026adddb949aaf..8fc0d5e9b0cb81d1a80e9080e15127988cade393 100644 (file)
@@ -120,6 +120,22 @@ ProxyPass /myapp/ balancer://myappcluster/
 &lt;/Proxy&gt;
     </highlight>
     </example>
+
+    <example><title>Proxy via Handler</title>
+      <p>You can also force a request to be handled as a reverse-proxy
+        request, by creating a suitable Handler pass-through. The example
+        configuration below will pass all requests for PHP scripts to the
+        specified FastCGI server using reverse proxy:
+      </p>
+      <highlight language="config">
+&lt;FilesMatch \.php$&gt;
+    SetHandler  "proxy:unix:/path/to/app.sock|fcgi://localhost/"
+&lt;/FilesMatch&gt;
+      </highlight>
+   <p>This feature is available in Apache HTTP Server 2.4.10 and later. For performance
+   reasons, you will want to define a <a href="../mod_proxy.html#worker">worker</a>
+   representing the same fcgi:// backend.</p>
+   </example>
 </section>
 
 <section id="env"><title>Environment Variables</title>