Essaye avec
location ~ \.php$ {
fastcgi_index index.php;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
}
Au niveau de ton serveur ssl (celui qui ecoute sur le 443). Si ca ne fonctionne toujours pas, c'est que ca vient de la conf de php-fpm.
Il ecoute bien sur un socket et non sur un port ?
Cf :
root@linux:/etc# grep "listen" /etc/php5/fpm/pool.d/www.conf | grep -v ";"
listen = /var/run/php5-fpm.sock
listen.owner = www-data
listen.group = www-data
root@linux:/etc#
Sinon, vérifier qu'il est bien lancé :
root@linux:/etc# ps aux|grep php-fpm
root 542 0.0 0.0 12740 2084 pts/1 S+ 20:49 0:00 grep php-fpm
root 1049 0.0 0.3 360720 15532 ? Ss nov.30 1:10 php-fpm: master process (/etc/php5/fpm/php-fpm.conf)
www-data 9080 0.0 0.7 369856 29712 ? S déc.06 1:09 php-fpm: pool www
www-data 23400 0.0 0.6 367560 28236 ? S déc.07 1:02 php-fpm: pool www
www-data 25783 0.0 0.6 365532 27188 ? S déc.05 2:58 php-fpm: pool www
root@linux:/etc#
PS: N'oublies pas de redémarrer les services pour lesquels tu mets à jour la conf (/etc/init.d/<service> restart).