Skip to content

Commit

Permalink
nginx: use an internal rewrite location for error pages
Browse files Browse the repository at this point in the history
  • Loading branch information
purcell committed Oct 26, 2008
1 parent 714c412 commit 8a073f3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nginx-run
Expand Up @@ -102,7 +102,10 @@ http {
root ${APP_DIR};
}
error_page 500 502 503 504 /500.html;
error_page 500 502 503 504 @500;
location @500 {
rewrite .* /500.html last;
}
}
}
EOF
Expand Down

0 comments on commit 8a073f3

Please sign in to comment.