ssi on -> segfault

Andrey N. Oktyabrski ano at antora.ru
Thu Jun 2 17:19:30 MSD 2005


Здравствуйте.

Поразительный эффект:
root at brake:/usr/local/etc/nginx> grep 'ssi on' nginx.conf
         location ~* \.shtml$ { ssi on; }

root at brake:/usr/local/etc/nginx> nginx -t
Segmentation fault (core dumped)

root at brake:/usr/local/etc/nginx> sed -i '' 's/^\(.*ssi on.*\)$/#\1/' 
nginx.conf

root at brake:/usr/local/etc/nginx> grep 'ssi on' nginx.conf
#       location ~* \.shtml$ { ssi on; }

root at brake:/usr/local/etc/nginx> nginx -t
2005/06/02 17:05:03 [info] 21586#0: the configuration file 
/usr/local/etc/nginx/nginx.conf syntax is ok
2005/06/02 17:05:03 [info] 21586#0: the configuration file 
"/usr/local/etc/nginx/nginx.conf" was tested successfully

Причём, что самое плохое, не всегда и не на любой машинке :-( Может, я 
чего не так сделал...

user            www www;
worker_processes        4;

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


events {
     connections 1024;
     use         kqueue;
}

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

     sendfile            on;
     tcp_nodelay         on;
     tcp_nopush          on;

     keepalive_timeout   120;

     gzip                on;
     gzip_http_version   1.0;
     gzip_proxied        any;
     gzip_min_length     4096;
     gzip_buffers        4 8k;
     gzip_types          text/plain text/xml application/xml;

     post_accept_timeout 120;

     charset             on;
     source_charset      koi8-r;
     default_charset     koi8-r;
     include             koi-win;

     log_format vhost    '%addr - - [%time] "%request" %status %length 
"%{Referer}i" "%{User-Agent}i" %{Host}i';
     access_log          /var/log/nginx/access.log vhost;

     proxy_redirect      off;
     proxy_set_header    Host            $host;
     proxy_set_header    X-Real-IP       $remote_addr;
     proxy_set_header    X-Forwarded-For $proxy_add_x_forwarded_for;

     server { server_name brake.domain.ru;
         root    /home/cbr/public_html;
         index   index.html index.shtml;
         error_log       /var/log/nginx/error_fcgi.log   debug;
         location /status { stub_status on; }
         location ~* \.shtml$ { ssi on; }
     }
}





More information about the nginx-ru mailing list