Bonjour à tous !
server {
server_name *.exemple.fr;
rewrite ^(.*) http://exemple.fr$1 permanent;
}
server {
listen 80;
server_name exemple.fr;
root /home/exemple/www;
index index.php index.html;
sendfile off;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/www;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_index index.php;
fastcgi_pass php5-fpm-sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
}
}
J'aimerais savoir si cela est good
Merci