Description of problem:
The default nginx configuration will cause problems when using the existing vhost config file
Install nginx.el5, you will have /etc/nginx/nginx.conf which will contain:
# The default server
There will also be /etc/nginx/conf.d/virtual.conf which has an example of how to set up a vhost. Define a simple name-based vhost inside:
# set up root, etc
At http://localhost/, you will get the testvhost.localhost host.
At http://localhos/, you should get the default vhost (_).
testvhost.localhost works as expected.
In order to get the expected result, I've moved the "include conf.d" part after the default server setup.
This exists in all the Fedora releases too. Fixing there also.
nginx-0.6.39-5.el5 has been submitted as an update for Fedora EPEL 5.
nginx-0.6.39-5.el5 has been pushed to the Fedora EPEL 5 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/nginx-0.6.39-5.el5
nginx-0.6.39-5.el5 has been pushed to the Fedora EPEL 5 stable repository. If problems still persist, please make note of it in this bug report.