Bug in the nginx-0.7.xx include .../conf.d/*.conf process ?
varia at e-healthexpert.org
Sun Mar 22 15:07:42 MSK 2009
In Debian/Ubuntu systems (also in .rpm based systems?) /conf.d/*.conf
files are used to (automatically) supersede any configuration originally
put in the main .conf file (nginx.conf) by the program
In the file /etc/nginx/nginx.conf (or
/usr/local/nginx/conf/nginx.conf, if installed from source) there is
supposed to that, loading alternative config files: include
In nginx-0.7.43 creating a file at .../conf.d/my_own.conf with the
keepalive_timeout 10 10;
Will lead, when trying to restart nginx, to a nginx halt with an
error message like:
" [emerg] 9242#0: "keepalive_timeout" directive is duplicate in
In the absence of a better opinion, it seems that it would make more
sense if, instead, the new values superseed any already existant
parameters in nginx.conf and nginx give the user a warning message
listing the parameters being superseeded.
Ideally any 20-my_own.conf file would be read after and superseed any
values in a 10-my_own.conf file, wich in turn would be read after and
superseed any values in nginx.conf
Regarding any new parameters not present in any previous *.conf,
nginx would simply read and add them without any further warning.
More information about the nginx