Skip to content

Commit d41d1de

Browse files
committed
update text to use SetHandler (not ProxyPassMatch)
1 parent 0507225 commit d41d1de

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cookbook/configuration/web_server_configuration.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ Using mod_proxy_fcgi with Apache 2.4
118118
If you are running Apache 2.4, you can easily use ``mod_proxy_fcgi`` to pass
119119
incoming requests to PHP-FPM. Configure PHP-FPM to listen on a TCP socket
120120
(``mod_proxy`` currently `does not support unix sockets`_), enable ``mod_proxy``
121-
and ``mod_proxy_fcgi`` in your Apache configuration and use the ``ProxyPassMatch``
121+
and ``mod_proxy_fcgi`` in your Apache configuration and use the ``SetHandler``
122122
directive to pass requests for PHP files to PHP FPM:
123123

124124
.. code-block:: apache
@@ -133,14 +133,14 @@ directive to pass requests for PHP files to PHP FPM:
133133
# SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1
134134
135135
# For Apache 2.4.9 or higher
136-
# Using SetHandler avoids issues with using ProxyPassMatch in combination
136+
# Using SetHandler avoids issues with using ProxyPassMatch in combination
137137
# with mod_rewrite or mod_autoindex
138138
<FilesMatch \.php$>
139139
SetHandler proxy:fcgi://127.0.0.1:9000
140140
</FilesMatch>
141141
# If you use Apache version below 2.4.9 you must consider update or use this instead
142142
# ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/var/www/project/web/$1
143-
143+
144144
DocumentRoot /var/www/project/web
145145
<Directory /var/www/project/web>
146146
# enable the .htaccess rewrites

0 commit comments

Comments
 (0)