Skip to content

Instantly share code, notes, and snippets.

@obriat
obriat / gist:86f0e3b772bcf55e80aa2e01468f5b3a
Last active September 8, 2017 09:11
Error 500 handling with PHP-FPM
Config Apache PHP-FPM
<FilesMatch \.php$>
SetHandler "proxy:fcgi://127.0.0.1:5555"
# Catch backend errors
ProxyErrorOverride On
# Return a custom error
ErrorDocument 500 "==== hoho ====="
</FilesMatch>