Description of problem: The current content of the nginx.conf file means that web application packagers cannot drop a file containing a configuration fragment into a conf.d directory and expect nginx to pick up the change. Nginx has the capability to do "include" style commands Version-Release number of selected component (if applicable):0.5.35-1 How reproducible: Steps to Reproduce: 1. View /etc/nginx/nginx.conf 2. 3. Actual results: No "include conf.d/*" type statement is available Expected results: A "include /etc/nginx/conf.d/*.conf" should be before the default virtual host definition to allow a web application to be installed smoothly. Additional info:
Created attachment 303039 [details] A patch to nginx.conf to achieve the desired result
*zonk* patch fails when conf.d directory empty. requires upstream fix. sorry.
What if by default there are core files in conf.d? The 3 'server' sections from the main nginx.conf, how about if they ares split into conf.d/default.conf conf.d/ssl.conf and conf.d/virtual.conf
i like it!
actually, on second thoughts, how about the ssl.conf and virtual.conf b/c they are commented out. If we put a uncommented out default server section in conf.d, it will create the possibility that the default conf file could be read before the "web application package" conf file, meaning that the "web application package" conf file would be the one to be ignored.
That works. I can do that. And add in a comment above the include saying that nginx will not start if there are no *.conf files in the conf.d directory. I'll also see if I can get that fixed upstream.
i've sent a patch to igor to allow "include /etc/nginx/conf.d/*.conf;" even when the glob returns no matches.
nginx-0.6.30 has been released, with the conf.d fixes.
nginx-0.6.30-1.fc8 has been submitted as an update for Fedora 8
nginx-0.6.31-1.fc8 has been submitted as an update for Fedora 8
Changing version to '9' as part of upcoming Fedora 9 GA. More information and reason for this action is here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping
nginx-0.6.31-1.fc9 has been pushed to the Fedora 9 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update nginx'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F9/FEDORA-2008-3877
nginx-0.6.31-1.fc8 has been pushed to the Fedora 8 stable repository. If problems still persist, please make note of it in this bug report.
nginx-0.6.31-1.fc9 has been pushed to the Fedora 9 stable repository. If problems still persist, please make note of it in this bug report.