“configuration file /etc/nginx/nginx.conf test fai

2020-05-18 04:08发布

I'm an nginx noob trying out this this tutorial on nginx 1.1.19 on ubuntu 12.04. I have this nginx config file.

When I run this command the test fails:

$ sudo service nginx restart
Restarting nginx: nginx: [crit] pread() "/etc/nginx/sites-enabled/csv" failed (21: Is a directory)
nginx: configuration file /etc/nginx/nginx.conf test failed

How do I know why the nginx.conf test failed?

标签: nginx
1条回答
再贱就再见
2楼-- · 2020-05-18 04:51

sudo nginx -t should test all files and return errors and warnings locations

查看更多
登录 后发表回答