diff options
author | John Estabrook <jestabro@vyos.io> | 2021-02-26 11:10:47 -0600 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2021-02-26 14:45:53 -0600 |
commit | 66b399b3f7ab5640c341355f6fd3234df661f85a (patch) | |
tree | 89dafaa486878c8a6d07e510c6610a5fe01f5d17 /data/templates | |
parent | 238e0e9866c437a171d5fef1e2a9c031951411f9 (diff) | |
download | vyos-1x-66b399b3f7ab5640c341355f6fd3234df661f85a.tar.gz vyos-1x-66b399b3f7ab5640c341355f6fd3234df661f85a.zip |
https: T3357: redirect http request on non-standard https port
(cherry picked from commit 2c798f7b9064bc9833935eae534a885b97d34738)
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 %} |