nginx with PHP 339 B

1234567891011
  1. #user html;
  2. user www-data;
  3. location ~ \.php$ {
  4. root /var/www;
  5. fastcgi_pass unix:/run/php-fpm/php-fpm.sock;
  6. fastcgi_index index.php;
  7. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  8. # include fastcgi.conf;
  9. include fastcgi_params;
  10. }