"configuration file /etc/nginx/nginx.conf test failed": How do I know why this happened?

I nginx noob is checking this this tutorial on nginx 1.1.19 on ubuntu 12.04. I have this nginx configuration 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 to find out why the nginx.conf test failed?

+67
nginx
Mar 10 '14 at 16:37
source share
2 answers

sudo nginx -t should check all files and return errors and warnings.

+126
Mar 10 '14 at 10:50
source share

How to fix NGINX configuration file / etc / nginx / nginx.conf The test failed. Please help me solve this problem.

enter image description here

0
Dec 13 '18 at 17:01
source share



All Articles