1 2 3 4 5 6 7 8 9 10 11 12 |
server { listen 80; server_name example.com; location / { return 301 https://$server_name$request_uri; } location /.well-known/acme-challenge/ { root /var/www/html; } } |
1 2 3 4 5 6 7 8 9 10 11 12 |
server { listen 80; server_name example.com; location / { return 301 https://$server_name$request_uri; } location /.well-known/acme-challenge/ { root /var/www/html; } } |