From 4598d327f2d1667de5a83a3f7a33c921df793c90 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 18 Aug 2019 16:27:14 +0200 Subject: [PATCH] server/status,errors --- in/personal/server/index.rst | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/in/personal/server/index.rst b/in/personal/server/index.rst index 0a0e82f..0f8302e 100644 --- a/in/personal/server/index.rst +++ b/in/personal/server/index.rst @@ -482,7 +482,6 @@ Security uwsgi_param request_host ${host}; uwsgi_param request_document ${document_uri}; uwsgi_param request_query ${query_string}; - uwsgi_param request_status ${status}; uwsgi_param request_method ${request_method}; uwsgi_param content_type ${content_type}; @@ -558,8 +557,8 @@ Sites root /d/projects/todo; } -Certificate -^^^^^^^^^^^ +Certificate and errors +^^^^^^^^^^^^^^^^^^^^^^ * /etc/nginx/rwx.work.conf @@ -568,6 +567,13 @@ Certificate include https.conf; ssl_certificate rwx.work.crt; ssl_certificate_key rwx.work.key; + location @error { + return https://rwx.work/error/${status}; + } + error_page 496 =496 @error; # Certificate Required + error_page + 404 # Not Found + @error; * /etc/nginx/rwx.work.key