mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 18:35:51 +02:00
Merge pull request #433 from wcbing/patch-1
fix: http-to-https use $host and 308
This commit is contained in:
commit
7fb84597cf
1 changed files with 2 additions and 2 deletions
|
@ -11,9 +11,9 @@ value = ""
|
|||
|
||||
{{- if .host }}
|
||||
if ($host == {{ .host }}) {
|
||||
return 307 https://$server_name$request_uri;
|
||||
return 308 https://$host$request_uri;
|
||||
}
|
||||
return 404;
|
||||
{{ else }}
|
||||
return 307 https://$server_name$request_uri;
|
||||
return 308 https://$host$request_uri;
|
||||
{{- end }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue