You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
367 B

  1. error_page 400 /400-error.html;
  2. error_page 401 /401-error.html;
  3. error_page 403 /403-error.html;
  4. error_page 404 /404-error.html;
  5. error_page 500 /500-error.html;
  6. error_page 503 /503-error.html;
  7. error_page 504 /504-error.html;
  8. location ~ /(.*)-error.html {
  9. try_files $1-error.html @error;
  10. internal;
  11. }
  12. location @error {
  13. root /var/www/error/_site;
  14. }