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

后端 未结 4 1618
旧时难觅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:36

    You may insert a part which should be inside http{} section into your nginx.conf and in /etc/nginx/sites-available/default leave just server{} section.

提交回复
热议问题