Nginx configuration, with global defaults and support for a PHP site
I compared the two server configurations and the only thing that appears to match between the two is the location ~ \.php$ directive, as well as the index directive, though in the latter configuration that is under the directive location /

Perhaps the common configurations could be put into the file included via include (i.e. fastcgi-php.conf).