Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mozilla/ssl-config-generator.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGene Wood <gene_wood@cementhorizon.com>2021-04-03 00:06:15 +0300
committerGitHub <noreply@github.com>2021-04-03 00:06:15 +0300
commit74f9eec43b237a101c4de022831f1764ff8ad6ae (patch)
treeae0f769c602cb0b66a087d4aa794b7d48e658db7
parent5cbc27dbee66a8d0cd9d2104610f2ffbc41abe91 (diff)
parent5cbba1a4be32ee5e576d3f4fd29e7a297a737c2c (diff)
Merge pull request #123 from nmxcgeo/master
Nginx: Wrap "return 301" inside a `location` block
-rw-r--r--src/templates/partials/nginx.hbs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/templates/partials/nginx.hbs b/src/templates/partials/nginx.hbs
index d6c4bea..1507bbd 100644
--- a/src/templates/partials/nginx.hbs
+++ b/src/templates/partials/nginx.hbs
@@ -5,7 +5,9 @@ server {
listen 80 default_server;
listen [::]:80 default_server;
- return 301 https://$host$request_uri;
+ location / {
+ return 301 https://$host$request_uri;
+ }
}
{{/if}}
@@ -58,4 +60,4 @@ server {
resolver 127.0.0.1;
{{/if}}
{{/if}}
-} \ No newline at end of file
+}