Ср, 21 февраля, 15:49

nginx and letsencrypt locations

server {
    listen 80;
    server_name example.com;

    location / {
       return 301 https://$server_name$request_uri;
    }
   
    location /.well-known/acme-challenge/ {
      root /var/www/html;
    }
 }