Package: nginx
Version: 0.5.13-1
Severity: normal

I have attached the configuration file that reproduces the problem.
Note that having multiple http directives is not allowed, however this seems to 
be not enforced.

Here is the error I got:
[EMAIL PROTECTED]:/etc/nginx$ sudo /etc/init.d/nginx start
Starting nginx: /etc/init.d/nginx: line 27: 29163 Segmentation fault      
start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid --exec $DAEMON 
-- $DAEMON_OPTS

The segmentation fault is only raised when using multiple virtual hosts 
listening at the same port.

*** nginx.conf
user www-data;
worker_processes  1;

error_log  /var/log/nginx/error.log;
pid        /var/run/nginx.pid;

events {
    use epoll;
    worker_connections  1024;
}

debug_points stop;
working_directory /etc/nginx;
error_log /var/log/nginx/debug.log debug_core;

http {
    include       /etc/nginx/mime.types;
    default_type  application/octet-stream;

    access_log  /var/log/nginx/access.log;

    sendfile        on;
    #tcp_nopush     on;

    #keepalive_timeout  0;
    keepalive_timeout  65;
    tcp_nodelay        on;

    gzip  on;
}

http {
    server {
        listen       80;
        server_name  localhost;

        access_log  /var/log/nginx/localhost.access.log;

        location / {
            root   /var/www/nginx-default;
            index  index.html index.htm;
        }
    }
}

http {    
    server {
        listen       80;
        server_name  doc.localhost;
        
        location / {
            root /usr/share/doc;
            autoindex on;
            access_log off;
            
            default_type  text/plain;
        }
    }
}


-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-686
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)

Versions of packages nginx depends on:
ii  libc6                       2.3.6.ds1-13 GNU C Library: Shared libraries
ii  libpcre3                    6.7-1        Perl 5 Compatible Regular Expressi
ii  libssl0.9.8                 0.9.8c-4     SSL shared libraries
ii  zlib1g                      1:1.2.3-13   compression library - runtime

nginx recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to