Nginx error failed (21: Is a directory)

nginx error

the nginx you just downloaded put an item with a static page in it. The error report is as follows: is there any configuration missing

is it necessary to modify include servers/*;

if the basic configuration nginx.conf remains intact?

clipboard.png

nginx nginx
nginx: [crit] pread () / usr/local/etc/nginx/servers/statics "failed (21: Is a directory)

problem description

the environmental background of the problems and what methods you have tried

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

Apr.08,2022

item misplaced and placed in / usr/local/etc/nginx/servers

Change

to

/ usr/local/Cellar/nginx/1.15.8/html/ the following will be fine


there can be no 'folders' in your nginx.conf,include servers/*,servers directory, only 'configuration files'


I changed include servers/* to include servers/*.conf

Menu