27 lines
563 B
Text
27 lines
563 B
Text
root /home/web/$server_name;
|
|
|
|
listen 80;
|
|
|
|
index index.html;
|
|
access_log /var/log/nginx/$server_name-access.log;
|
|
|
|
server_tokens off;
|
|
|
|
location = /favicon.ico {
|
|
log_not_found off;
|
|
access_log off;
|
|
}
|
|
|
|
location = /robots.txt {
|
|
allow all;
|
|
log_not_found off;
|
|
access_log off;
|
|
}
|
|
|
|
# Allow access to the ACME Challenge for Let's Encrypt stateless
|
|
location ~ ^/\.well-known/acme-challenge/([-_a-zA-Z0-9]+)$ {
|
|
auth_basic off;
|
|
allow all;
|
|
default_type text/plain;
|
|
return 200 "$1.1tLqJzpkjGuP-mOBeLJWDHh_obRyJ7JtHKbUZSuv3SU";
|
|
}
|