ПРОЕКТЫ 


  АРХИВ 


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]

вроде бага в rewrite_module



Вот с такой конфигой:
    perl_require  ngx_main.pm;
    perl_set  $nx_perl ngx_main::set_handler;
    server {
        listen          a.b.c.d:80;
        server_name     preved.test medved.test undef.test;
        set             $nx $nx_perl;
        location / {
                if ($nx = "UNDEF") {
                        return 500;
                }
                if ($nx = "BACKEND_DW") {
                        proxy_pass         http://127.0.0.1;
                }
                if ($nx = "BACKEND_PHP") {
                        proxy_pass         http://127.0.0.1:8080;
                }
                if ($nx != "PERL") {
                        root $nx;
                }
                perl ngx_main::perl_handler;
        }
    }

при любом запросе пишет в лог следующее:
2007/10/08 16:35:07 [notice] 4450#0: signal 20 (SIGCHLD) received
2007/10/08 16:35:07 [alert] 4450#0: worker process 4454 exited on signal 11
2007/10/08 16:35:07 [notice] 4450#0: start worker process 4464
2007/10/08 16:35:07 [notice] 4450#0: signal 23 (SIGIO) received
2007/10/08 16:35:07 [notice] 4450#0: signal 23 (SIGIO) received
2007/10/08 16:35:07 [notice] 4450#0: signal 20 (SIGCHLD) received
2007/10/08 16:35:07 [alert] 4450#0: worker process 4453 exited on signal 11
2007/10/08 16:35:07 [notice] 4450#0: start worker process 4465
2007/10/08 16:35:07 [notice] 4450#0: signal 23 (SIGIO) received

Если же конфигу чуть-чуть изменить:
                if ($nx != "PERL") {
заменить на
                if ($nx ~ "^\/") {
то всё работает.

nginx -V
nginx version: nginx/0.5.32
configure arguments: --user=nginx --group=nginx --pid-path=/var/httpd/nginx.pid 
--error-log-path=/var/httpd/nginx.log --http-log-path=/var/httpd/nginx.access 
--http-proxy-temp-path=/var/httpd/nginx_proxy 
--http-fastcgi-temp-path=/var/httpd/nginx_fastcgi 
--http-client-body-temp-path=/var/httpd/nginx_client --prefix=/usr/local/nginx 
--with-pcre=../pcre-7.4 --with-pcre-opt=-O2 -pipe -march=nocona 
--with-zlib=../zlib-1.2.3 --with-zlib-opt=-O2 -pipe -march=nocona 
--with-http_stub_status_module --with-http_perl_module --with-cc-opt=-I 
/usr/local/include -D FD_SETSIZE=2048 --with-ld-opt=-L /usr/local/lib


-- 
С уважением,
 jackal                          mailto:jackal@xxxxxxxxxxxx




 




Copyright © Lexa Software, 1996-2009.