How to find out the Nginx's main configuration file on a server?

nginx -t

See also: