nginx 运行时报错
我在部署flask应用时用的nginx配置
http{
server {
listen 80;
server_name 192.168.25.129;
location / {
include uwsgi_params;
uwsgi_pass 127.0.0.1:8001;
uwsgi_param UWSGI_PYHOME /home/chen/movie/venv;
uwsgi_param UWSGI_CHDIR /home/chen/movie;
uwsgi_param UWSGI_SCRIPT manage:app;
}
}
}
这是我的nginx.config配置
报
nginx: [emerg] "events" directive is not allowed here in /usr/local/nginx/conf/nginx.conf:13
跪求一份可以用的flask nginx配置