Re: fix bug in http_referer_module that using incorrect input string length in the regex matching process when header Referer starts with https://

2013-08-11 Thread Weibin Yao
Hi, In the rerferer module, the length of scheme in regular referer expression is treated as 'http://'. It's incorrect for the https request. And the regular referer rule will be invalid. This patch could fix this bug. 2013/8/12 Liangbin Li : > --- ngx_http_referer_module.c > +++ ngx_http_referer

fix bug in http_referer_module that using incorrect input string length in the regex matching process when header Referer starts with https://

2013-08-11 Thread Liangbin Li
--- ngx_http_referer_module.c +++ ngx_http_referer_module.c @@ -147,10 +147,12 @@ if (ngx_strncasecmp(ref, (u_char *) "http://";, 7) == 0) { ref += 7; +len -= 7; goto valid_scheme; } else if (ngx_strncasecmp(ref, (u_char *) "https://";, 8) =

[ANN] ngx_openresty devel version 1.4.2.1 released

2013-08-11 Thread Yichun Zhang (agentzh)
Hi guys! I am glad to announce that the new development version of ngx_openresty, 1.4.2.1, is now released: http://openresty.org/#Download Below is the complete change log for this release, as compared to the last (devel) release, 1.4.1.3: * upgraded the Nginx core to 1.4.2. * se

Re: My filter module is not called

2013-08-11 Thread ruslan_osmanov
Yes, indeed, I had to put it into HTTP_FILTER_MODULES. Thank you! Posted at Nginx Forum: http://forum.nginx.org/read.php?2,241761,241767#msg-241767 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: My filter module is not called

2013-08-11 Thread ruslan_osmanov
Oh, sorry, the `config` file contains: ngx_addon_name=ngx_http_file_chunks_filter_module HTTP_MODULES="$HTTP_MODULES ngx_http_file_chunks_filter_module" HTTP_INCS="$HTTP_INCS /usr/include/libxml2 " CORE_LIBS="$CORE_LIBS -lxml2" NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_file_chunks

Re: My filter module is not called

2013-08-11 Thread ruslan_osmanov
Thank you for the reply. Hmm, maybe I build it different way. I have the following files to configure, make and install it: conf.sh: cd ~/src/nginx ./auto/configure --prefix=/home/ruslan \ --with-debug \ --conf-path=/home/ruslan/etc/nginx/nginx.conf \ --user=ruslan \

Re: My filter module is not called

2013-08-11 Thread cubicdaiya
Hi. 2013/8/11 ruslan_osmanov > There is some testing code in header/body filters. I'm launching the server > merely to see whether my code is invoked. All configuration and cleanup > stuff > seems to be working. But the header/body filters are not called at all(both > call > ngx_log_error). > >

Re: Poor performance when loading huge number of server section

2013-08-11 Thread Anb
Thank you, Ruslan. > How about mapping $server_name to upstream instead? > > map $server_name $upstream { > default ...; > [100k entries] > } > > server { > ... > proxy_pass http://$upstream; > ... > } It works if I use simple upstream like url:80, but still very slow when usi

My filter module is not called

2013-08-11 Thread ruslan_osmanov
Hi, I'm writing a filter module which will output static files according to information returned by an upstream handler like FastCGI, or Apache. There is some testing code in header/body filters. I'm launching the server merely to see whether my code is invoked. All configuration and cleanup stuf