server { listen 80; listen 443 ssl; http2 on; server_name <>; set $base <>; root $base/public_html; access_log /var/log/nginx/<>-access.log; error_log /var/log/nginx/<>-error.log warn; ssl_certificate <>/live/<>/fullchain.pem; ssl_certificate_key <>/live/<>/privkey.pem; include conf.d/include/ssl-ciphers.conf; index index.php index.html index.htm; location / { try_files $uri $uri/ /index.php?$query_string; include conf.d/include/force-ssl.conf; } location ~ \.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:/var/run/php/php-fpm.sock; include conf.d/include/php_fastcgi.conf; } include conf.d/include/general.conf; include conf.d/include/letsencrypt-acme-challenge.conf; }