Which Nginx and which config file is used
Solution 1:
You shall be able to see the master process:
florin@vm:~$ ps aux | grep nginx
root 884 0.0 0.0 76944 1308 ? Ss 10:28 0:00 nginx: master process /usr/sbin/nginx
The execute:
$ /usr/sbin/nginx -V 2>&1 | grep --colour=auto conf
It shall give you a --conf-path=/etc/nginx/nginx.conf somewhere around there.
Solution 2:
~# nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful