server { listen 80; listen [::]:80; root /var/www/cephalopodstudios.com; index index.php index.html index.htm index.nginx-debian.html; server_name cephalopodstudios.com www.cephalopodstudios.com; access_log /var/log/nginx/cephalopodstudios.com_access.log; error_log /var/log/nginx/cephalopodstudios.com_error.log; location / { # try_files $uri $uri/ =404; try_files $uri $uri/ /index.php?p=$request_uri; } location ~ \.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:/run/php/php7.3-fpm.sock; fastcgi_index index.php; include fastcgi.conf; } }