Created
May 3, 2016 14:52
-
-
Save terrytrent/0c46c8cf697f590429f1061fbc46f7dd to your computer and use it in GitHub Desktop.
This file contains 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
error_page 400 /error/400.html; | |
error_page 401 /error/401.html; | |
error_page 402 /error/402.html; | |
error_page 403 /error/403.html; | |
error_page 404 /error/404.html; | |
error_page 405 /error/405.html; | |
error_page 406 /error/406.html; | |
error_page 407 /error/407.html; | |
error_page 408 /error/408.html; | |
error_page 409 /error/409.html; | |
error_page 410 /error/410.html; | |
error_page 411 /error/411.html; | |
error_page 412 /error/412.html; | |
error_page 413 /error/413.html; | |
error_page 414 /error/414.html; | |
error_page 415 /error/415.html; | |
error_page 500 /error/500.html; | |
error_page 501 /error/501.html; | |
error_page 502 /error/502.html; | |
error_page 503 /error/503.html; | |
error_page 504 /error/504.html; | |
error_page 505 /error/505.html; | |
location ^~ /error/ { | |
alias /usr/share/nginx/errorPages/; | |
internal; | |
allow all; | |
auth_basic off; | |
} | |
location /assets/ { | |
alias /usr/share/nginx/error-pages/assets/; | |
allow all; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment