Previously, I had Nginx installed through yum on my CentOS 6 machine. This gave me /etc/nginx/conf.d
folder, in which I created a separate file per site containing server
directive and other configuration.
Now, I have to add Phusion Passenger support to Nginx, and uninstalled the one from the main repositories and manually compiled it to /opt/nginx
. This time it gives nginx.conf
file, to add my server
definition blocks.
Is there any way to tell Nginx to load vhost files from a folder, say /opt/nginx/conf.d
?