update nginx conf for better redirection
This commit is contained in:
parent
0286e6e217
commit
6ffdf0a286
|
|
@ -5,8 +5,15 @@
|
|||
# }
|
||||
server {
|
||||
listen 80;
|
||||
return 301 https://$host$request_uri; # Redirect HTTP sang HTTPS
|
||||
|
||||
server_name comp.soict.io;
|
||||
|
||||
location /.well-known/acme-challenge/ {
|
||||
root /var/www/certbot;
|
||||
}
|
||||
|
||||
location / {
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
}
|
||||
|
||||
server{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user