I got my
/etc/init.d/nginx init script from here: https://www.nginx.com/resources/wiki/start/topics/examples/redhatnginxinit/
include /etc/nginx/conf.d/*.conf; which includes the config files of my website.
/etc/init.d/nginx start, it seems nginx is not loading those config files, and it returns 502 on access.
on the other hand, start nginx with command
nginx works just fine.
what's wrong here?