When implementing nginx redirection, the following warning appears:
[root@lnmp1 conf]# nginx -s reload
nginx: [warn] conflicting server name "www.yqq.org" on 0.0.0.0:80, ignored
reason:
www.yqq.org This domain name appears twice or even many times, resolving the same domain name to different directories. Generally, this error occurs when the configuration file is separated separately.
If you bind server name repeatedly, a warning will appear. However, this warning will not affect the operation of the server
moreover, this duplicate binding means that the nginx service running now is duplicate with the nginx service in the new configuration to be loaded. Therefore, this warning is unnecessary.
In the configuration file, the statement that also uses the domain name is annotated. If the domain name is loaded smoothly again, no warning will appear
Read More:
- Nginx startup error: nginx: [error] open() “/ var / run / nginx/ nginx.pid The solution of “failed (2: no such file or directory)”
- nginx: [error] open() “/usr/local/nginx/logs/nginx.pid“ failed (2: No such file or directory)
- nginx: [error] open() "/var/run/nginx/nginx.pid" failed (2: No such file or directory)
- Unable to read Scheme Document ‘ http://www.springframework.org/schema/beans/spring-beans-4.1.xsd ‘ [How to Fix]
- Unable to read scheme document‘ http://www.springframework.org/schema/spring-context.xsd The solution to the problem
- nginx: [error] invalid PID number ““ in “/data/nginx/logs/nginx.pid“
- Nginx error: nginx: [error] invalid PID number “” in “/run/nginx.pid”
- Ubuntu 20.04 builds nginx 1.18.0 and MAC file transfer / download to server
- /var/run/nginx/nginx.pid” failed (2: No such file or directory)
- Implementation of HTTPS file server based on nginx in win2012
- Nginx start error: job for nginx.service failed because the control process exited with error code
- nginx: [error] open() “/usr/local/var/run/nginx.pid” failed (2: No such file or directory)
- nginx: [error] invalid PID number in /var/run/nginx.pid
- nginx: [error] open() “/run/nginx.pid” failed (2: No such file or directory)
- nginx: open() “/var/run/nginx.pid“ failed (2: No such file or directory)
- Solve the problem of starting nginx nginx.pid error
- Nginx 502 Error: Failed to load resource: the server responded with a status of 502 (Bad Gateway)
- CentOS7 nginx Failed to read PID from file /run/nginx.pid: Invalid argument?
- Analysis of compilation errors of “error conflicting types for function”