ПРОЕКТЫ 


  АРХИВ 


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]

Re: Segmentation fault (core dumped)



>Покажите конфиг с которым у вас
падает.

worker_processes  12;

events {
    worker_connections  1024;
}


http {
    include       mime.types;
    default_type  application/octet-stream;
    server_names_hash_bucket_size 2048;
    server_names_hash_max_size 4096;
            
    client_header_buffer_size 16k;
    large_client_header_buffers 16 16k;

    log_format  main  '$remote_addr - $remote_user [$time_local]
"$request" '
                      '$status $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for"
"$host"';

    access_log  /var/log/nginx/access.log  main;
    error_log   /var/log/nginx/error.log;
    

    sendfile        on;
    server_tokens       off;

    keepalive_timeout  65;

    gzip  on;
    gzip_min_length  10240;
    gzip_buffers     32 64k;
    gzip_types       application/x-javascript text/css text/xml
text/plain;


        client_max_body_size 16m;
        proxy_buffer_size 32k;
        proxy_buffers 32 32k;
        log_format  isp '$bytes_sent $request_length';
        server {
                listen XX.XXX.XXX.XXX:80;
                server_name zaglushkasm7.com.ua www.zaglushkasm7.com.ua;
                rewrite ^(/manager/.*)$ https://$host$1 permanent;
                error_page 404 = @fallback;
                location ~* ^/(webstat/|awstats|webmail/|myadmin/|manimg/) {
                        proxy_pass http://XX.XXX.XXX.XXX:8080;
                        proxy_redirect http://zaglushkasm7.com.ua:8080/ /;
                        proxy_set_header Host $host;
                        proxy_set_header X-Forwarded-For 
$proxy_add_x_forwarded_for;
                        proxy_set_header X-Real-IP $remote_addr;
                }
                location / {
                        proxy_pass http://XX.XXX.XXX.XXX:8080;
                        proxy_redirect http://zaglushkasm7.com.ua:8080/ /;
                        proxy_set_header Host $host;
                        proxy_set_header X-Forwarded-For 
$proxy_add_x_forwarded_for;
                        proxy_set_header X-Real-IP $remote_addr;
                }
                location ~*
^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar)$ {
                        root /hosting/sattelit/data/www/zaglushkasm7.com.ua;
                        access_log 
/hosting/httpd-logs/zaglushkasm7.com.ua.access.log ;
                        access_log /hosting/nginx-logs/sattelit isp;
                }
                location @fallback {
                        proxy_pass http://XX.XXX.XXX.XXX:8080;
                        proxy_set_header Host $host;
                        proxy_set_header X-Forwarded-For 
$proxy_add_x_forwarded_for;
                        proxy_set_header X-Real-IP $remote_addr;
                }
        }
...........
далее 2600 виртуалхостов с аналогичным
конфигом
...........
}


весь конфиг весит 3 метра 85000 строк
проблема в том что таким конфигом он 2
года отработал без проблем

Posted at Nginx Forum: 
http://forum.nginx.org/read.php?21,227045,227059#msg-227059

_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.