bon ben merci pour ton aide j'ai repris le tuto de magicalex et j'ai complété les partis manquantes et sa refonctionne
ouvrir le fichier php
nano /etc/nginx/conf.d/php.conf
et copier/coller
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;
}
Ouvrir le fichier cache
nano /etc/nginx/conf.d/cache.conf
et copier/coller
location ~* \.(jpg|jpeg|gif|css|png|js|woff|ttf|svg|eot)$ {
expires 30d;
access_log off;
}
on redémarre nginx
service nginx restart