Looks nice now
This commit is contained in:
parent
7977d297ac
commit
c930c040af
11 changed files with 97 additions and 189 deletions
20
sites-available/https
Normal file
20
sites-available/https
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
server {
|
||||
|
||||
listen 80;
|
||||
server_name _;
|
||||
listen [::]:80;
|
||||
server_name _;
|
||||
|
||||
if ($host = http://$host$request_uri) {
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
|
||||
|
||||
if ($host = http://www.$host$request_uri;) {
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue