Skip to content

Instantly share code, notes, and snippets.

View Redempter's full-sized avatar

Redempter

  • MavTek
  • Montreal, Canada
View GitHub Profile
@Redempter
Redempter / 10-php.conf
Created October 25, 2018 20:26 — forked from htuscher/10-php.conf
WebDevOps nginx custom error pages
error_page 404 = /notfound.html;
error_page 500 = /error.html;
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $request_filename;
fastcgi_read_timeout <PHP_TIMEOUT>;
fastcgi_intercept_errors on;