I am using
ubuntu which by default has the
sites-available/enabled directory structure similar to
Apache to store the sites configuration files. I have compiled
nginx (because I need a third party module) using the below configuration:
./configure \ --prefix=/opt/nginx/version \ --http-log-path=/var/log/nginx/access.log \ --error-log-path=/var/log/nginx/error.log \ --pid-path=/var/run/nginx.pid \ --with-http_ssl_module \ --user=nginx \ --group=nginx \ --add-module=...
Nginx is working fine, but right now I need to configure all my sites in
/opt/nginx/version/conf/nginx.conf which isn't as maintainable as with the
sites-available/enabled directory structure whereby I can create 1 file per site and decide which ones are enabled with symlinks.
I had a look at the install options but all I see is
--conf-path to specify the path to
Is there a way to reuse the
sites-available/enabled directory structure with a compiled nginx?