nginx: [emerg] “http” directive is not allowed here in /etc/nginx/sites-enabled/default:1

I am assuming that you have http in your /etc/nginx/nginx.conf file which then tells nginx to include sites-enabled/*;

So then you have

 http
    http
       server

As the http directive should only happen once just remove the http directive from your sites-enabled config file(s)

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)