summaryrefslogtreecommitdiff
path: root/data/templates/https/nginx.default.tmpl
diff options
context:
space:
mode:
authorCédric Jeanneret <cjeanneret@internux.ch>2020-10-29 12:02:25 +0100
committerCédric Jeanneret <cjeanneret@internux.ch>2020-10-29 12:02:25 +0100
commitaffc21819be92a0d19541a14184ceea7218c4ce8 (patch)
tree02c6d2ac5366c0284c2632fd2ec14d189ffc720c /data/templates/https/nginx.default.tmpl
parent58e99dc96e52e4c4b6c0da3b155fe59a039d41a7 (diff)
downloadvyos-1x-affc21819be92a0d19541a14184ceea7218c4ce8.tar.gz
vyos-1x-affc21819be92a0d19541a14184ceea7218c4ce8.zip
T3029 Correct generated nginx content
The redirection was using the wrong variable ($server_name), making the browser going to https://_ instead of the right variable.
Diffstat (limited to 'data/templates/https/nginx.default.tmpl')
-rw-r--r--data/templates/https/nginx.default.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/https/nginx.default.tmpl b/data/templates/https/nginx.default.tmpl
index a20be45ae..855ebff4f 100644
--- a/data/templates/https/nginx.default.tmpl
+++ b/data/templates/https/nginx.default.tmpl
@@ -5,7 +5,7 @@ server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
- return 301 https://$server_name$request_uri;
+ return 301 https://$host$request_uri;
}
{% for server in server_block_list %}