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

后端 未结 4 1589
旧时难觅i
旧时难觅i 2020-12-15 03:01

I\'m new to NGINX and I\'m trying to setup minimal working thing. So I trying to run aiohttp mini-app with nginx and supervisor (by this example). But I can\'t configure Ngi

4条回答
  •  执念已碎
    2020-12-15 03:51

    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)

提交回复
热议问题