Answer the question
In order to leave comments, you need to log in
nginx configuration error?
Hello.
Haven't dealt with Nginx before (I'm not familiar with server administration at all)
my config file
server{
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
root /home/gadfil/www/cinema;
index index.php index.html index.htm;
server_name my_ip;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
try_files $uri /index.php =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
nginx -t
nginx: [emerg] unexpected "}" in /etc/nginx/sites-enabled/cinema.save:5
nginx: configuration file /etc/nginx/nginx.conf test failed
Answer the question
In order to leave comments, you need to log in
most likely, when editing the /etc/nginx/sites-enabled/cinema file, the nano editor closed incorrectly. you need to delete the file /etc/nginx/sites-enabled/cinema.save if you didn't create it yourself
Error in /etc/nginx/sites-enabled/cinema.save , you need to look at it
You are showing us the wrong file, most likely. This one is correct, according to nginx, just checked.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question