@@ -162,10 +162,9 @@ Using mod_proxy_fcgi with Apache 2.4
162
162
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
163
163
164
164
If you are running Apache 2.4, you can easily use ``mod_proxy_fcgi `` to pass
165
- incoming requests to PHP-FPM. Configure PHP-FPM to listen on a TCP socket
166
- (``mod_proxy `` currently `does not support Unix sockets `_), enable ``mod_proxy ``
167
- and ``mod_proxy_fcgi `` in your Apache configuration and use the ``SetHandler ``
168
- directive to pass requests for PHP files to PHP FPM:
165
+ incoming requests to PHP-FPM. Configure PHP-FPM to listen on a TCP or Unix socket,
166
+ enable ``mod_proxy `` and ``mod_proxy_fcgi `` in your Apache configuration, and
167
+ use the ``SetHandler `` directive to pass requests for PHP files to PHP FPM:
169
168
170
169
.. code-block :: apache
171
170
@@ -183,6 +182,8 @@ directive to pass requests for PHP files to PHP FPM:
183
182
# with mod_rewrite or mod_autoindex
184
183
<FilesMatch \.php$>
185
184
SetHandler proxy:fcgi://127.0.0.1:9000
185
+ # for Unix sockets, Apache 2.4.10 or higher
186
+ # SetHandler proxy:unix:/path/to/fpm.sock|fcgi://dummy
186
187
</FilesMatch>
187
188
188
189
# If you use Apache version below 2.4.9 you must consider update or use this instead
@@ -338,6 +339,5 @@ The **minimum configuration** to get your application running under Nginx is:
338
339
For advanced Nginx configuration options, read the official `Nginx documentation `_.
339
340
340
341
.. _`Apache documentation` : http://httpd.apache.org/docs/
341
- .. _`does not support Unix sockets` : https://bz.apache.org/bugzilla/show_bug.cgi?id=54101
342
342
.. _`FastCgiExternalServer` : http://www.fastcgi.com/mod_fastcgi/docs/mod_fastcgi.html#FastCgiExternalServer
343
343
.. _`Nginx documentation` : http://wiki.nginx.org/Symfony
0 commit comments