I am trying to install Phusion Passenger module for Nginx. There was Nginx installed in /usr/sbin/nginx
. The installer gem downloaded Nginx sources and compiled them with Passenger support into /opt/nginx/sbin/nginx
. I copied this file into /usr/sbin/nginx
.
So currently I am in doubt which Nginx is running and which config file I should edit.
Is there some way to determine the location of actually used Nginx and which configuration file does it use?
You shall be able to see the master process with:
Then execute:
It shall give you a
--conf-path=/etc/nginx/nginx.conf
somewhere around there.