Description of problem:
The recent update to version 1.0.12-1 contains the configuration /etc/nginx/conf.d/default.conf which has a "server_name _;" directive. If your current nginx setup uses "server_name _;" too, the default.conf can override it, depending on the filenames of your configs in conf.d.
Nginx gives a warning during start, but if the update is part of a larger update requiring a reboot, this goes unnoticed. As a result, all websites will display the default "nginx on epel" website until the default.conf is removed and nginx is reloaded.
Removing/Renaming default.conf only helps until the next update because the file will then be added again.
Version-Release number of selected component (if applicable):
Update from 0.8.54 to 1.0.12
Steps to Reproduce:
1. Install 0.8.54
2. Add /etc/nginx/conf.d/z.conf containing "server_name _;" server block
3. Update to 1.0.12 and restart nginx or reboot
The new default.conf overrides z.conf
No overridden website configs
You can uncomment the contents of default.conf and it will not be overwritten on update. Instead, a default.conf.rpmnew will be created (which can be ignored).
Agreed, but it's rather annoying when an update modifies the working configuration and leaves the service not working as expected.
nginx-1.2.4-1.fc18 has been submitted as an update for Fedora 18.
I have centralized configuration into nginx.conf, which is the upstream default. In other words, I have removed default.conf/ssl.conf/virtual.conf.
From f18 and el7 onwards, you should no longer have this problem.
I chose not to fix this for el6, f17, f16 as deprecating the separate configuration files within conf.d/ could result in unexpected downtime: after upgrading nginx, those files are all moved to filename.rpmsave, regardless of whether they have been edited or not, and so the configuration of the web server may be unintentionally broken.
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing nginx-1.2.4-1.fc18'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
nginx-1.2.4-1.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report.