====== Laravel ====== server { listen 80; server_name www.switchart.tk switchart.tk; access_log /var/log/nginx/access-SITENAME.log; root /web/switchart.tk/public; index index.php index.html; location / { try_files $uri $uri/ /index.php?query_string; } location ~ \.php$ { #include snippets/fastcgi-php.conf; fastcgi_pass unix:/run/php/php7.2-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name; include fastcgi_params; } location ~ /\.(?!well-known).*{ deny all; } error_page 404 /404.html; } ----