From 0a4c6c237d22bca4709e829731a1d6bd265b22f9 Mon Sep 17 00:00:00 2001 From: Eric Covener Date: Mon, 24 Nov 2014 16:17:09 +0000 Subject: [PATCH] steal the sethandler example from mod_proxy.html and mention worker issue git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1641414 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/mod/mod_proxy_fcgi.xml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/manual/mod/mod_proxy_fcgi.xml b/docs/manual/mod/mod_proxy_fcgi.xml index 575babc717..8fc0d5e9b0 100644 --- a/docs/manual/mod/mod_proxy_fcgi.xml +++ b/docs/manual/mod/mod_proxy_fcgi.xml @@ -120,6 +120,22 @@ ProxyPass /myapp/ balancer://myappcluster/ </Proxy> + + Proxy via Handler +

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: +

+ +<FilesMatch \.php$> + SetHandler "proxy:unix:/path/to/app.sock|fcgi://localhost/" +</FilesMatch> + +

This feature is available in Apache HTTP Server 2.4.10 and later. For performance + reasons, you will want to define a worker + representing the same fcgi:// backend.

+
Environment Variables -- 2.50.1