Package: nginx
Version: 0.7.64-1
Severity: normal
Tags: patch
After installation, nginx has a single virtual host which works as expected. If
you add more virtual hosts, none of them is specified as being the
"default" virtual host and a random one is chosen by the nginx server leading
to unpredictable behaviour. The expected behaviour would be that the
/etc/nginx/sites-available/default
virtual host is the default one until the user chooses otherwise. This is done
in the apache pagkage by naming the "default" virtual host as
"000-default".
To fix this issue, in the file /etc/nginx/sites-available/default , the line:
listen 80;
should be changed to:
listen 80 default;
This is taken from the nginx wiki found here:
http://wiki.nginx.org/NginxVirtualHostExample
Best regards,
Thomas Venieris
-- System Information:
Debian Release: 5.0.3
APT prefers proposed-updates
APT policy: (500, 'proposed-updates'), (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.32 (SMP w/2 CPU cores)
Locale: LANG=el_GR.UTF-8, LC_CTYPE=el_GR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]