summaryrefslogtreecommitdiff
path: root/data/templates/https
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2021-02-26 11:10:47 -0600
committerJohn Estabrook <jestabro@vyos.io>2021-02-26 13:14:26 -0600
commit2c798f7b9064bc9833935eae534a885b97d34738 (patch)
tree3eb8d2bbbf3829ff5a0902223373d8da403e64ff /data/templates/https
parentc2650c041261244052c9ff3b8f653c98fd2bfefc (diff)
downloadvyos-1x-2c798f7b9064bc9833935eae534a885b97d34738.tar.gz
vyos-1x-2c798f7b9064bc9833935eae534a885b97d34738.zip
https: T3357: redirect http request on non-standard https port
Diffstat (limited to 'data/templates/https')
-rw-r--r--data/templates/https/nginx.default.tmpl1
1 files changed, 1 insertions, 0 deletions
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 %}