Apache FPM Configuration
Pitfalls & Caveats
LocationMatch
The usage of LocationMatch
may cause problems with virtual PHP files like /admin/ajax.php
.
When using LocationMatch
the RewriteRules
within the .htaccess
will be ignored.
We recommend to use the FilesMatch
directive instead.
Note: Unix sockets are only available with Apache version 2.4.10 or greater.
<FilesMatch ".+\.ph(p[34578]?|t|tml)$">
#SetHandler "proxy:unix:/run/php/php5.6-fpm.sock|fcgi://localhost"
SetHandler "proxy:fcgi://127.0.0.1:9000"
</FilesMatch>