Sorry, I’m too busy these days to get back to you in time.
I used the nginx -t command, but I don’t understand what the error is.
I just installed it again and still have the same problem.
[ * ] Enable SFTP jail…
[ * ] Create admin account…
[ * ] Configuring NGINX…
Job for nginx.service failed because the control process exited with error code.
See “systemctl status nginx.service” and “journalctl -xe” for details.
Error: nginx start failed [email protected]:~# nginx -t
nginx: [emerg] host not found in set_real_ip_from “<!DOCTYPE” in /etc/nginx/conf.d/cloudflare.inc:4
nginx: configuration file /etc/nginx/nginx.conf test failed [email protected]:~#
My Solution Testing:
After I cleared the contents of cloudflare.inc [email protected]:~# nginx -s reload
nginx: [error] invalid PID number “” in “/run/nginx.pid” [email protected]:~# nginx -c /etc/nginx/nginx.conf [email protected]:~# nginx -s reload [email protected]:~# nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
So far, the system started successfully, but I’m not sure if cloudflare.inc will have an impact.