|
|
# 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:** Sockets are only available with Apache version 2.4.10 or greater.
|
|
|
```
|
|
|
<FilesMatch ".+\.ph(p[3457]?|t|tml)$">
|
|
|
#SetHandler "proxy:unix:/run/php/php5.6-fpm.sock|fcgi://localhost"
|
|
|
SetHandler "proxy:fcgi://127.0.0.1:9000"
|
|
|
</FilesMatch>
|
|
|
``` |