Skip to content

Instantly share code, notes, and snippets.

@repodevs
Created December 22, 2016 03:02
Show Gist options
  • Save repodevs/437f7dcff8afe0cf8f382a913b9abbea to your computer and use it in GitHub Desktop.
Save repodevs/437f7dcff8afe0cf8f382a913b9abbea to your computer and use it in GitHub Desktop.
nginx error page with custom css
## lets say we have erro page err.html in we css folder,
## we want nginx can serve the css... blah talk is cheap, lets see the conf \ :v /
error_page 500 502 503 504 = @errorz;
location @errorz {
root /var/www/html/e;
try_files $uri /index.html = 500 502 503 504;
}
## in e directory we have subfolde `css` `fonts` `images`
## you can imagine with your self :V /
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment