Add snippets and config
This commit is contained in:
11
snippets/letsencrypt.conf
Normal file
11
snippets/letsencrypt.conf
Normal file
@@ -0,0 +1,11 @@
|
||||
# -*-nginx-*-
|
||||
location /.well-known/ {
|
||||
default_type "text/plain";
|
||||
root /var/www/html;
|
||||
}
|
||||
location = /.well-known/acme-challenge/ {
|
||||
return 404;
|
||||
}
|
||||
location / {
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
Reference in New Issue
Block a user