Created
December 22, 2016 03:02
-
-
Save repodevs/437f7dcff8afe0cf8f382a913b9abbea to your computer and use it in GitHub Desktop.
nginx error page with custom css
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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