Is it possible to get which conf the nginx is using only from a running nginx process?
To get the conf file path. sometimes ps aux reveal it, sometimes it doesn't. It might be just something like nginx: master process /usr/sbin/nginx (same as /proc/PID/cmdline)
- So is
nginx -Vthe only solution? - From this question, is it possible to dump conf data structure from nginx process directly? Or at least dump the conf file path?