server { listen 443 ssl http2; server_name #HOSTNAME#; root /web/#HOSTNAME#/public; # Logs access_log /web/#HOSTNAME#/logs/access.log; error_log /web/#HOSTNAME#/logs/error.log; index index.php index.html index.htm; error_page 404 /404.html; include snippets/ssl.conf; ssl_certificate /etc/letsencrypt/live/#HOSTNAME#/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/#HOSTNAME#/privkey.pem; include snippets/php.conf; include snippets/allow_wellknown.conf; include snippets/deny_dotfiles.conf; include snippets/favicon_robots.conf; location / { try_files $uri $uri/ /index.php?$args; } }