Bonjour a tous,
j' ai bidouiller mon fichier /etc/nginx/default
est celui ci ne veut plus relancer nginx du coup mon site est down
un coup de main svp ?
server {
listen 80 default_server;
server_name domaine.fr;
rewrite ^/(.*) http://www.domaine.fr/$1 permanent;
}
root /opt/radio/www;
index index.html index.php;
location / {
try_files $uri $uri/ /index.html;
}
location ~ \.php$ {
include fastcgi_params;
try_files $uri $uri/ /index.php;
# fastcgi_pass 127.0.0.1:9000;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param HTTP_HOST $host;
}
location ^~ /assets/ {
root /opt/radio/www;
gzip_static on;
expires max;
add_header Cache-Control public;
}
location ~ \.(js.gz|js.gzip)$
{
{
access_log off;
add_header Content-Type ‘text/javascript’;
add_header Content-Encoding ‘gzip’;
expires max;
}
location ~ \.(css.gz|css.gzip)$
{
access_log off;
add_header Content-Type ‘text/css’;
expires max;
}
}
voici l'erreur lors d'un restart
2015/07/09 18:48:37 [emerg] 7874#7874: "location" directive is not allowed here in /etc/nginx/sites-enabled/default:12
cordialement