"In the location / part, I've added index.php to the
index line. root /var/www/nginx-default; means that the document
root is the directory /var/www/nginx-default.
"The important part for PHP is the location ~ .php$ {} stanza.
Uncomment it to enable it. Please make sure that you change the
fastcgi_param line to fastcgi_param SCRIPT_FILENAME
/var/www/nginx-default$fastcgi_script_name; (replace
/var/www/nginx-default with your vhost's document root) because
otherwise the PHP interpreter won't find the PHP script that you
call in your browser.
"Make sure that there are some spaces between include and
fastcgi_params; - in the default file this is written as one word
which is a bug."