summaryrefslogtreecommitdiff
path: root/configs/nginx/redirect-to-https.conf
diff options
context:
space:
mode:
Diffstat (limited to 'configs/nginx/redirect-to-https.conf')
-rw-r--r--configs/nginx/redirect-to-https.conf4
1 files changed, 3 insertions, 1 deletions
diff --git a/configs/nginx/redirect-to-https.conf b/configs/nginx/redirect-to-https.conf
index 7cf185dd..385fb49a 100644
--- a/configs/nginx/redirect-to-https.conf
+++ b/configs/nginx/redirect-to-https.conf
@@ -1 +1,3 @@
-return 301 https://$host$request_uri;
+location / {
+ return 301 https://$host$request_uri;
+}