From 2c798f7b9064bc9833935eae534a885b97d34738 Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Fri, 26 Feb 2021 11:10:47 -0600 Subject: https: T3357: redirect http request on non-standard https port --- data/templates/https/nginx.default.tmpl | 1 + 1 file changed, 1 insertion(+) (limited to 'data') diff --git a/data/templates/https/nginx.default.tmpl b/data/templates/https/nginx.default.tmpl index 855ebff4f..81f8b3b8c 100644 --- a/data/templates/https/nginx.default.tmpl +++ b/data/templates/https/nginx.default.tmpl @@ -50,6 +50,7 @@ server { {% endif %} } + error_page 497 =301 https://$host:{{ server.port }}$request_uri; error_page 501 502 503 =200 @50*_json; {% if api_set %} -- cgit v1.2.3