Initialize ngx_buf_t in ngx_create_temp_buf()

2014-08-07 Thread crespin
Hello, I don't understand why b->last is used to initialize b->end. Why it's not : b->end = b->start + size; Regards, yves # HG changeset patch # User Yves Crespin # Date 1407480933 -7200 # Node ID 74265a0edba677c967f532de789a4589436aa5fb # Parent a62fffc16af816612a4acf34c7a4781f454fa5d1 n

Re: Proposal minor patch on ngx_http_upstream.c

2014-08-07 Thread crespin
Hello, Here is the corresponding patch. Regards, yves # HG changeset patch # User Yves Crespin # Date 1407480323 -7200 # Node ID a62fffc16af816612a4acf34c7a4781f454fa5d1 # Parent 8120c2937062998497546a3ecb38b78bb302fe34 Upstream: ngx_socket_errno can only be used if |recv()| failed if |recv(

Use /g (global) regex modifier in map

2014-08-07 Thread Gabriel Arrais
Is it possible somehow to use the global modifier in a regex map match? I'm trying to use the map directive to filter the query string leaving my proxy_cache_key with only known parameters. For the first test I've tried to use a map like below to just catch all parameters without really filtering

Any suggestions for active Ubuntu nginx-mainline repo?

2014-08-07 Thread talkingnews
For a while I was quite happily using the ubuntu nginx ppa repo to get my nginx mainline fix (https://launchpad.net/~nginx/+archive/ubuntu/development) However, for some weeks now, it seems to have become inactive and "stuck" on 1.7.1. I've tried emailing some of the names connected with it - eit

[ANN] Windows nginx 1.7.5.1 WhiteRabbit

2014-08-07 Thread itpp2012
19:48 7-8-2014 nginx 1.7.5.1 WhiteRabbit Based on nginx 1.7.5 (7-8-2014, last changeset 5801:ab48149b77a6) with; + Openssl-1.0.1i (CVE-2014-3508, CVE-2014-5139, CVE-2014-3509, CVE-2014-3505, CVE-2014-3506, CVE-2014-3507, CVE-2014-3510, CVE-2014-3511, CVE-2014-3512) + lua-nginx-module v0.9.11 (

Re: Override Content-Type header with proxied requests

2014-08-07 Thread manish-ezest
Hi Wandenberg, Is there any way to show the Content-Type in the header as well? --Manish Posted at Nginx Forum: http://forum.nginx.org/read.php?2,239473,252396#msg-252396 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinf

Re: Override Content-Type header with proxied requests

2014-08-07 Thread manish-ezest
Hi Wandenberg, As you suggested I added "proxy_hide_header Content-Type;" in location / {} directive and I am getting 200 but how would I check what is the Content-Type. I usually check with curl command. But with curl command I don't find the Content-Type since it is hidden now. Is there any oth

Re: Override Content-Type header with proxied requests

2014-08-07 Thread Wandenberg Peixoto
Did you tried to only hide the header with proxy_hide_header Content-Type; and let nginx use the mime.types to set the content type? Do not set the add_header Content-Type manually. Let me know the result. On Thu, Aug 7, 2014 at 12:57 PM, manish-ezest wrote: > Hello wandenberg, > > Thank you

Error compiling NGINX 1.7.4 with openssl 1.0.1i statically on RHEL7 system

2014-08-07 Thread Fabiano Furtado Pessoa Coelho
Hi... I'm trying to compile NGINX 1.7.4 com openssl 1.0.1i statically on RHEL7. I've downloaded the SPRM file from http://nginx.org/packages/mainline/rhel/7/SRPMS/nginx-1.7.4-1.el7.ngx.src.rpm and I modified the nginx.spec file to do it. I've added the line --with-openssl=/home/test/opens

Re: NGINX redirection issue

2014-08-07 Thread manish-ezest
Hello Maxim, Thank you for your response. Here is the my nginx settings **my NGINX.conf user nginx; worker_processes 1; error_log /var/log/nginx/error.log notice; pid /var/run/nginx.pid; worker_rlimit_nofile 3; events { worker_connections 1024; } http { include

Re: Override Content-Type header with proxied requests

2014-08-07 Thread manish-ezest
Hello wandenberg, Thank you for your response. I truly appreciate your help. I tried this options given below ##First Method### 1. Edit nginx.conf and add map $uri $custom_content_type { default "text/html"; ~(.*\.json)$ "application/json"; } 2. Put the cu

[PATCH] proposal to remove unused macro ngx_sleep()

2014-08-07 Thread crespin
Hello, ngx_sleep() macro is unused. regards, yves # HG changeset patch # User Yves Crespin # Date 1407420247 -7200 # Node ID 8120c2937062998497546a3ecb38b78bb302fe34 # Parent 97fcc94109c0ea7b929f7fa5a8c7ee95ecf7cb5c remove unused ngx_sleep() macro In win32 implementation, even for a long sle

[PATCH] use format %ui according to i type in ngx_poll_module.c

2014-08-07 Thread crespin
Hello, I notice a wrong format %d for ngx_uint_t variable in ngx_poll_module.c. Regards, yves # HG changeset patch # User Yves Crespin # Date 1407416683 -7200 # Node ID 97fcc94109c0ea7b929f7fa5a8c7ee95ecf7cb5c # Parent b71a279c696bcd18bd6b3c2845fe8e51d57ea1fd use format %ui according to i type

[PATCH] change nevents type in ngx_poll_module.c to ngx_uint_t

2014-08-07 Thread crespin
Hello, In ngx_epoll_module.c, nevents is defined as ngx_uint_t and ev->index is also a ngx_uint_t. So I proposed to change nevents type. I'm not sure about variable declaration: -ngx_int_t i, nready; +ngx_uint_t i; +ngx_int_t nready; ngx_uint_t

Re: [PATCH] print format for nevents

2014-08-07 Thread crespin
Hello, here is the corresponding patch. regards, yves > Yes, %d here is certainly incorrect, as int and ngx_int_t sizes > may differ. I don't think there are any platforms with poll() > where this may cause problems, but nevertheless it's worth fixing. > Changing this to %ui should be ok.

Re: NGINX redirection issue

2014-08-07 Thread Maxim Dounin
Hello! On Wed, Aug 06, 2014 at 11:37:42PM -0400, manish-ezest wrote: > Hello All, > > I am facing some issue regarding nginx redirection. I want to remove .html > extension from all the html pages and all the index.html pages. For example > > 1. > http://www.aaa.com/bbb/ccc.html should show th