nginx-0.7.9

Denis F. Latypoff denis at gostats.ru
Wed Aug 13 09:52:33 MSD 2008


Hello Igor,

Tuesday, August 12, 2008, 10:40:34 PM, you wrote:

> Изменения в nginx 0.7.9                                           12.08.2008

>     *) Добавление: теперь директивы gzip_types, ssi_types и
>        sub_filter_types используют хэш.

http {
    gzip                on;
    gzip_proxied        any;
    gzip_min_length     0;
    gzip_types          text/css
                        text/xml
                        text/plain
                        application/xml
                        application/x-javascript;

    server {

        listen          192.168.12.10:80;
        server_name     megaservername.ru;

#        location / {
#            root /path/to/root;
#        }
    }
}

Делаем запрос на статику '/file.js'. Если location не найден, то
вываливается корка: 

#0  0x0804c0bf in ngx_hash_find (hash=0x80b91a8, key=3571849281,
    name=0x80c21f0 "application/x-javascript", len=24)
    at src/core/ngx_hash.c:21
21          elt = hash->buckets[key % hash->size];
(gdb) bt
#0  0x0804c0bf in ngx_hash_find (hash=0x80b91a8, key=3571849281,
    name=0x80c21f0 "application/x-javascript", len=24)
    at src/core/ngx_hash.c:21
#1  0x08066fbd in ngx_http_test_content_type (r=0x80b4e90,
    types_hash=0x80b91a8) at src/http/ngx_http_core_module.c:1336
#2  0x0807f256 in ngx_http_gzip_header_filter (r=0x80b4e90)
    at src/http/modules/ngx_http_gzip_filter_module.c:213
#3  0x08080348 in ngx_http_ssi_header_filter (r=0x80b4e90)
    at src/http/modules/ngx_http_ssi_filter_module.c:328
#4  0x080837b9 in ngx_http_xslt_header_filter (r=0x80b4e90)
    at src/http/modules/ngx_http_xslt_filter_module.c:227
#5  0x0807e0c8 in ngx_http_headers_filter (r=0x80b4e90)
    at src/http/modules/ngx_http_headers_filter_module.c:152
#6  0x0807e9d9 in ngx_http_not_modified_header_filter (r=0x80b4e90)
    at src/http/modules/ngx_http_not_modified_filter_module.c:60
#7  0x08067183 in ngx_http_send_header (r=0x0)
    at src/http/ngx_http_core_module.c:1432
#8  0x0807c31a in ngx_http_static_handler (r=0x80b4e90)
    at src/http/modules/ngx_http_static_module.c:234
#9  0x08066a14 in ngx_http_core_content_phase (r=0x80b4e90, ph=0x80c55b8)
    at src/http/ngx_http_core_module.c:1023
#10 0x080663c9 in ngx_http_core_run_phases (r=0x80b4e90)
    at src/http/ngx_http_core_module.c:732
#11 0x0806638f in ngx_http_handler (r=0x80c2174)
    at src/http/ngx_http_core_module.c:715
#12 0x0806c9c8 in ngx_http_process_request (r=0x80b4e90)
    at src/http/ngx_http_request.c:1496
#13 0x0806be9f in ngx_http_process_request_headers (rev=0x80c1f9c)
    at src/http/ngx_http_request.c:965
#14 0x0806ba78 in ngx_http_process_request_line (rev=0xb7bd2070)
    at src/http/ngx_http_request.c:776
#15 0x0806b5c7 in ngx_http_init_request (rev=0xb7bd2070)
    at src/http/ngx_http_request.c:457
#16 0x0805c654 in ngx_event_process_posted (cycle=0x80a9c34, posted=0x80a01c0)
    at src/event/ngx_event_posted.c:39
#17 0x0805b48f in ngx_process_events_and_timers (cycle=0x80a9c34)
    at src/event/ngx_event.c:272
#18 0x0806230c in ngx_worker_process_cycle (cycle=0x80a9c34, data=0x0)
    at src/os/unix/ngx_process_cycle.c:767
#19 0x080606c1 in ngx_spawn_process (cycle=0x80a9c34,
    proc=0x806224c <ngx_worker_process_cycle>, data=0x0,
    name=0x80908a2 "worker process", respawn=1)
    at src/os/unix/ngx_process.c:187
#20 0x08061fb6 in ngx_reap_children (cycle=0x80a9c34)
    at src/os/unix/ngx_process_cycle.c:569
---Type <return> to continue, or q <return> to quit---
#21 0x0806163f in ngx_master_process_cycle (cycle=0x80a9c34)
    at src/os/unix/ngx_process_cycle.c:162
#22 0x0804a5dd in main (argc=1, argv=0xbf849334) at src/core/nginx.c:355



-- 
Best regards,
 Denis                            mailto:denis at gostats.ru






More information about the nginx-ru mailing list