ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ssi on -> segfault



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

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

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

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

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

root@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; }
    }
}




 




Copyright © Lexa Software, 1996-2009.