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 17:17:40 UTC
svn commit: r1641416 -
/httpd/httpd/branches/2.4.x/docs/manual/mod/mod_proxy_fcgi.xml
Author: covener
Date: Mon Nov 24 16:17:39 2014
New Revision: 1641416
URL: http://svn.apache.org/r1641416
Log:
Merge r1641414 from trunk:
steal the sethandler example from mod_proxy.html and mention worker issue
Modified:
httpd/httpd/branches/2.4.x/docs/manual/mod/mod_proxy_fcgi.xml
Modified: httpd/httpd/branches/2.4.x/docs/manual/mod/mod_proxy_fcgi.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/mod/mod_proxy_fcgi.xml?rev=1641416&r1=1641415&r2=1641416&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/mod/mod_proxy_fcgi.xml (original)
+++ httpd/httpd/branches/2.4.x/docs/manual/mod/mod_proxy_fcgi.xml Mon Nov 24 16:17:39 2014
@@ -120,6 +120,22 @@ ProxyPass /myapp/ balancer://myappcluste
</Proxy>
</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">
+<FilesMatch \.php$>
+ SetHandler "proxy:unix:/path/to/app.sock|fcgi://localhost/"
+</FilesMatch>
+ </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>