I tried to setup a Centos machine (tried 7.0 Core and 7.2 Core). After the OS has been installed performed
yum install epel-release and yum install nginx
I can see that the default path of the nginx.conf is under
/etc/nginx/nginx.conf
Tried to modify the path by removing the original path (/etc/nginx/nginx.conf) to a new path (/usr/local/nginx/config/nginx.conf) but after modifying the path, the service turned to "Failed" (code=exited, status=1/FAILURE) in red font color.
What I did was revert back to the original path (/etc/nginx/nginx.conf) and directly modified the nginx.conf
vi /etc/nginx.nginx.conf
tested the nginx by typing in: nginx -t, both ok and successful but this time around the service still showed up the same error message.
Tried to make a some research and all pointing out to a script or service but I'm pretty sure after testing the nginx -t, it should work now. No idea if there are other factors for this service to run.
Thanks
Jeff