Documentation of buf struct

2015-06-28 Thread Rv Rv
I am not very clear on the purpose of different data members within the buf structure.(appended below) After looking through the code, I can figure out the purpose of  - pos,last (sliding window)  - file_pos, file_last, start, end ,(data start and end) - tag, (which module o

Supporting special characters in URI for location block

2015-05-29 Thread Rv Rv
I have a URI with spanish characters that needs to be handled in location block specific to it e.g. I want to do location {} However, nginx does not seem to match URI in location block  with spanish (or any other characters including chinese). Is this functionality supported?Thanks__

How to print at non emergency, critical, error from nginx configuration log

2014-10-10 Thread Rv Rv
Hello, If I use ngx_conf_log_error during parsing an nginx configuration (post config phase), the messages at NGX_LOG_INFO are not printed to the error log even when I set it the error log to log debug level. I can see the NGX_LOG_ERR, NGX_LOG_WARN , NGX_LOG_EMERG etc though. I scanned throug

Reason for storing duplicate copies of response header value e.g. content_encoding in headers_out

2014-07-11 Thread Rv Rv
Nginx stores the response headers in the headers ngx_http_headers_out_t ngx_list_t    headers  and also for certain headers , in a corresponding variable in headers_out e.g.     ngx_table_elt_t  *content_encoding; The body filter e.g. gunzip  operate only on co

Is it ok to call header filters twice for the same response

2014-06-28 Thread Rv Rv
Hello   When we configure nginx without modsecurity body filter, then the response is processed in two stages. First the headers are processed followed by the body filters If however, modsecurity is configured, then modsecurity body filter may *once again* call the entire chain of headers filter

Re: Accessing the location configuration of module 2 during post configuration processing of module 1 for a particular server

2014-06-16 Thread Rv Rv
ed.  What is the nginx recommended way to get this value. As noted in earlier post, I am not seeing the correct values in post configuration - and so perhaps that is not the right way. Thanks for your continued inputs Hello! On Thu, Jun 12, 2014 at 01:46:58PM +0800, Rv Rv wrote: [...] > In

Re: Accessing the location configuration of module 2 during post configuration processing of module 1 for a particular server

2014-06-11 Thread Rv Rv
test these values to ensure that they are sane when nginx is executed with -t option Thanks Hello! On Tue, Jun 10, 2014 at 02:09:13AM +0800, Rv Rv wrote: > How do we access the configuration of a an unrelated module in a  > given module. This may be required for example to check if t

Accessing the location configuration of module 2 during post configuration processing of module 1 for a particular server

2014-06-09 Thread Rv Rv
How do we access the configuration of a an unrelated module in a given module. This may be required for example to check if the directives pertaining to module 2 were specified in location for a particular server that has directives for module 1 in its configuration. From what I understand, cod

proxy_buffer_size values are honored even if proxy_buffering is off

2014-05-04 Thread Rv Rv
At the http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_buffer_size, the documentation implies that the configuration proxy_buffer_size , proxy_buffers and proxy_busy_buffers will be honored only when proxy_buffering is turned on. I had been seeing truncated responses of files wh

Will nginx decompress a compressed request

2014-01-29 Thread Rv Rv
>From this thread on the mailing list >http://forum.nginx.org/read.php?11,96472,214266 , it appears that nginx does >not support decompressing HTTP request from a client. The thread however is 2 >years old and am wondering if there have been any changes. I have not found >any though in the docu

How to control the order of execution modules in nginx

2014-01-29 Thread Rv Rv
From http://www.evanmiller.org/nginx-modules-guide.html, "The order of their execution is determined at compile-time". Is there a way to control this. ngx_modules.c has the list and order of execution. How do I change the order of execution of modules within a particular phase e.g. if I have thr

Modifying the request body

2014-01-26 Thread Rv Rv
I have nginx deployed as a proxy server. The client sends a POST request which needs to be modified before forwarding it to the origin server. Is there any module / filter available in nginx. The best I could find was a patch by Maxim as outlined at  http://mailman.nginx.org/pipermail/nginx-deve

Rewriting GET request parameters while configured as a reverse proxy

2014-01-21 Thread Rv Rv
Hello Is there a way to make nginx rewrite the GET request parameters while configured as a reverse proxy. e.g. if nginx receives a request GET / foo.html?abc=123 , can nginx rewrite it to GET /foo.html?abc=456 (nginx admin specifies 123 to be changed to 456) and then do a proxy pass to the orig

Decompressing a compressed response from upstream, applying transformations and then compressing for downstream again

2014-01-20 Thread Rv Rv
Hello Is there a way we can achieve the following when nginx is acting as a reverse proxy 1. Client sends HTTP request with Accept-Encoding as gzip 2. Nginx proxy forwards the request with the request header intact 3. Origin server sends a compressed response 4. At