From 75b95b55492ee1ab3f4a0e73f5ad9fa1323bedf7 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 20 Feb 2012 08:55:45 +0000 Subject: [PATCH] move error pages, fixes #557 --- etc/nginx/vhost.in | 4 ++-- static/{ => html}/404.html | 0 static/{ => html}/50x.html | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) rename static/{ => html}/404.html (100%) rename static/{ => html}/50x.html (83%) diff --git a/etc/nginx/vhost.in b/etc/nginx/vhost.in index f92689f5..6f79a41f 100644 --- a/etc/nginx/vhost.in +++ b/etc/nginx/vhost.in @@ -52,12 +52,12 @@ server { error_page 404 /404.html; location /404.html { - root __PREFIX__/static; + root __PREFIX__/static/html; } # redirect server error pages to the static page /50x.html error_page 500 502 503 504 /50x.html; location /50x.html { - root __PREFIX__/static; + root __PREFIX__/static/html; } } diff --git a/static/404.html b/static/html/404.html similarity index 100% rename from static/404.html rename to static/html/404.html diff --git a/static/50x.html b/static/html/50x.html similarity index 83% rename from static/50x.html rename to static/html/50x.html index 8043b950..76ea6c2a 100644 --- a/static/50x.html +++ b/static/html/50x.html @@ -6,14 +6,13 @@ - +
We will be back in a moment.