File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ Using mod_proxy_fcgi with Apache 2.4
118
118
If you are running Apache 2.4, you can easily use ``mod_proxy_fcgi `` to pass
119
119
incoming requests to PHP-FPM. Configure PHP-FPM to listen on a TCP socket
120
120
(``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 ``
122
122
directive to pass requests for PHP files to PHP FPM:
123
123
124
124
.. code-block :: apache
@@ -133,14 +133,14 @@ directive to pass requests for PHP files to PHP FPM:
133
133
# SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1
134
134
135
135
# 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
137
137
# with mod_rewrite or mod_autoindex
138
138
<FilesMatch \.php$>
139
139
SetHandler proxy:fcgi://127.0.0.1:9000
140
140
</FilesMatch>
141
141
# If you use Apache version below 2.4.9 you must consider update or use this instead
142
142
# ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/var/www/project/web/$1
143
-
143
+
144
144
DocumentRoot /var/www/project/web
145
145
<Directory /var/www/project/web>
146
146
# enable the .htaccess rewrites
You can’t perform that action at this time.
0 commit comments