projects
/
discourse_docker.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9030e49
)
Update web.ssl.template.yml
author
Roldan
<RoldanLT@users.noreply.github.com>
Mon, 5 Jun 2017 16:41:16 +0000
(
00:41
+0800)
committer
GitHub
<noreply@github.com>
Mon, 5 Jun 2017 16:41:16 +0000
(
00:41
+0800)
Use proper return 301 instead of rewrite for HTTPS redirect
templates/web.ssl.template.yml
patch
|
blob
|
blame
|
history
diff --git
a/templates/web.ssl.template.yml
b/templates/web.ssl.template.yml
index 7c358a932845c4d5e78124b73544919b73d6e45c..76b600eac024815f2eb8b29a4c5c478a56f00967 100644
(file)
--- a/
templates/web.ssl.template.yml
+++ b/
templates/web.ssl.template.yml
@@
-9,7
+9,7
@@
run:
to: |
server {
listen 80;
- re
write ^ https://$$ENV_DISCOURSE_HOSTNAME$request_uri? permanent
;
+ re
turn 301 https://$$ENV_DISCOURSE_HOSTNAME$request_uri
;
}
server {
- replace: