I have a little question. I already found a solution, but I want to know the reason for the error.
So, I have a main config file (nginx.conf) that includes vhost configs.
Example hierarchical tree:
├── nginx.conf
├── sites_enabled
│ ├── sub.mydomain.com
│ └── sub2.mydomain.com
For including vhosts, I use this line:
include /etc/nginx/sites_enabled/*;
I use two different machines with the same OS and Nginx version. On machine A, it works successfully. But on machine B, I get the following error:
nginx: [emerg] pread() returned only 614 bytes instead of 632 in /etc/nginx/sites_enabled/sub.mydomain.com
If I rename my subconfigs to sub_mydomain_com
, for example, it works.
I just want to understand the reasons for this error. So, why do I get this error? Why I get error only on one machine?