9 messages in ru.sysoev.nginxsegmentation fault with include and v...
FromSent OnAttachments
Manlio PerilloApr 16, 2007 11:30 am 
Cliff WellsApr 16, 2007 12:49 pm 
Igor SysoevApr 16, 2007 1:03 pm 
Igor SysoevApr 16, 2007 1:17 pm 
Manlio PerilloApr 16, 2007 1:31 pm 
Manlio PerilloApr 16, 2007 1:36 pm 
Igor SysoevApr 16, 2007 1:42 pm 
Manlio PerilloApr 16, 2007 2:32 pm 
Manlio PerilloApr 19, 2007 6:15 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:segmentation fault with include and virtual hostsActions...
From:Manlio Perillo (manl@public.gmane.org)
Date:Apr 16, 2007 11:30:58 am
List:ru.sysoev.nginx

Hi.

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

This does not happen if I put the include inside the http directive (and removing the http directive from the sub configuration files).