From 52164481632cf0aad704b5885279717c99314a6d Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Mon, 7 Apr 2014 23:48:30 +0300 Subject: [PATCH] vesta-nginx 404 error handler --- src/rpm/conf/nginx.conf | 2 +- web/error/404/index.html | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 web/error/404/index.html diff --git a/src/rpm/conf/nginx.conf b/src/rpm/conf/nginx.conf index 53ca3ed41..164302e54 100644 --- a/src/rpm/conf/nginx.conf +++ b/src/rpm/conf/nginx.conf @@ -88,7 +88,7 @@ http { ssl_session_cache shared:SSL:10m; ssl_session_timeout 10m; - error_page 404 /error/index.html; + error_page 404 /error/404/index.html; error_page 403 /error/index.html; error_page 500 /error/index.html; diff --git a/web/error/404/index.html b/web/error/404/index.html new file mode 100644 index 000000000..c6012331a --- /dev/null +++ b/web/error/404/index.html @@ -0,0 +1,26 @@ + + + 404 — page not found + + + + + + +

Page Not Found

+ +
+ Try start again from home page or go back to previous page +
+ +