| From | Sent On | Attachments |
|---|---|---|
| Manlio Perillo | Apr 16, 2007 11:30 am | |
| Cliff Wells | Apr 16, 2007 12:49 pm | |
| Igor Sysoev | Apr 16, 2007 1:03 pm | |
| Igor Sysoev | Apr 16, 2007 1:17 pm | |
| Manlio Perillo | Apr 16, 2007 1:31 pm | |
| Manlio Perillo | Apr 16, 2007 1:36 pm | |
| Igor Sysoev | Apr 16, 2007 1:42 pm | |
| Manlio Perillo | Apr 16, 2007 2:32 pm | |
| Manlio Perillo | Apr 19, 2007 6:15 am |
| Subject: | Re: segmentation fault with include and virtual hosts | |
|---|---|---|
| From: | Igor Sysoev (is-G...@public.gmane.org) | |
| Date: | Apr 16, 2007 1:17:45 pm | |
| List: | ru.sysoev.nginx | |
On Mon, Apr 16, 2007 at 08:31:21PM +0200, Manlio Perillo wrote:
I'm using nginx 0.5.13, with Debian Etch (the package from testing).
I'm tryng to organize my configuration files using the sites-available/sites-enabled directories.
Here is the main config file (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; }
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; }
include /etc/nginx/sites-enabled/*;
When I include two virtual host:
sites-available/1:
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; }
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html # error_page 500 502 503 504 /50x.html; location = /50x.html { root /var/www/nginx-default; } } }
sites-available/2: http { server { listen 80; server_name munin.localhost;
location / { root /var/www/munin/; autoindex on; } } }
I got a:
Starting nginx: /etc/init.d/nginx: line 27: 22905 Segmentation fault start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS
I could not reproduce the bug. Could you make sure that nginx has debug info, save coredump, and run gdb:
gdb -c /path/to/core /path/to/nginx bt q
-- Igor Sysoev http://sysoev.ru/en/





