I am new to nginx and raspberries.
I installed nginx using
sudo apt-get install
And everything was in order. The problem arose when I tried to restart nginx, it threw this error
Work for nginx.service failed. See "Systemctl status ngins.service" and "journaldtl -xn" for details.
After the investigation, I found that the problem is the following error:
unexpected end of file waiting for ";" or "}" in / etc / nginx / sites -enabled / default: 20
My default file is:
# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples. ## server { #listen 80; ## listen for ipv4; this line is default and implied #listen [::]:80 default_server ipv6only=on; ## listen for ipv6 listen 80; server_name $domain_name; root /var/www; index index.html index.htm; access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log; # Make site accessible from http:
Hope you can help me :)
source share