diff options
author | John Estabrook <jestabro@vyos.io> | 2021-02-26 11:10:47 -0600 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2021-02-26 13:14:26 -0600 |
commit | 2c798f7b9064bc9833935eae534a885b97d34738 (patch) | |
tree | 3eb8d2bbbf3829ff5a0902223373d8da403e64ff /data/templates | |
parent | c2650c041261244052c9ff3b8f653c98fd2bfefc (diff) | |
download | vyos-1x-2c798f7b9064bc9833935eae534a885b97d34738.tar.gz vyos-1x-2c798f7b9064bc9833935eae534a885b97d34738.zip |
https: T3357: redirect http request on non-standard https port
Diffstat (limited to 'data/templates')
-rw-r--r-- | data/templates/https/nginx.default.tmpl | 1 |
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 %} |