Problem scenario
In the Linux system, the conf folder is provided in the nginx installation package by default and the configuration file of nginx.conf includes the configuration articles in this folder by default.
I use the windows system this time, and also configures the include folder through the example. However, for the convenience of the figure, the include folder and the folder of nginx.conf file are consistent.
Analyze and solve:
Nginx error log prompt:
“worker_processes” directive is not allowed here in D:/nginx-1.22.0/conf/nginx. conf:3
After deleting the worker_processes instruction, an error is reported that other instructions are not allowed.
Later, it was found that the use of wildcards in include led to the inclusion of yourself. You can modify the include method.
Read More:
- Nginx Startup Error: “/var/run/nginx/nginx.pid” failed” [How to Solve]
- Nginx Startup Error: Job for nginx.service failed because the control process exited with error code
- Nginx error: nginx: [error] invalid PID number ““ in “/run/nginx.pid“
- [Solved] nginx: [error] open() “/usr/local/nginx/nginx.pid” failed (2: No such file or directory)
- Nginx Error: nginx: [emerg] the “ssl“ parameter requires ngx_http_ssl_module in /project/api/nginx.conf:
- [Solved] Nginx Restart Error: /run/nginx.pid failed (2: No such file or directory)
- Solve the problem of 404 Not Found error in nginx accessing dynamic interface
- Nginx Error: Swap file “/etc/nginx/.nginx.conf.swp“ already exists
- summary of configuration and deployment of uwsgi+nginx+flag in centos7 and why internal server error is prompted [official instructions]
- Restart and stop of nginx in Linux service
- Nginx Error: [emerg] bind() to [::]:80 failed (98: Address already in use)
- Nginx configuration 80 can be accessed by forcing jump 443 or not
- How to Fix No default.conf file in conf.d after Installing Nginx
- Nginx, which is suitable for front-end H5 requests, routes and forwards according to the URL and cuts the URL
- [Solved] FATAL CONFIG FILE ERROR: Bad directive or wrong number of arguments
- [Solved] Nginx cannot access pictures on FTP Error: Whitelabel error page
- Nginx Error: SSL: error:140AB18F:SSL routines:SSL_CTX_use_certificate:ee key too small
- nginx: [emerg] bind() to 0.0.0.0:80 failed (13: Permission denied)
- Common configuration methods of nginx
- [Solved] Linux Compile Error: error: ‘for’ loop initial declarations are only allowed in C99 mode