mirror of
https://git.myvelabs.com/lab/nginx.git
synced 2025-12-17 21:26:13 +00:00
Add http_redirect
This commit is contained in:
parent
10b8562aa3
commit
08ea8f1a14
1 changed files with 7 additions and 0 deletions
7
http_redirect
Normal file
7
http_redirect
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
server {
|
||||
listen 80;
|
||||
server_name _;
|
||||
if ($scheme = "http") {
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue