Hello! Is there any network error in your connection? like connection reset by peer, maybe you can set the error log level as low as possible, then find the devil in the error.log. On 31 July 2017 at 22:46:12, Ortal (nginx-forum@forum.nginx.org) wrote: Hello, I am writing a nginx module. I would like to know it which flow is the error filed of the connection set to 1, I am running a test whichby tokers - Nginx Mailing List - English
Hi! You can rewrite the uri in the special server {} by the “rewrite” directive. On 30 July 2017 at 19:09:27, ST (smntov@gmail.com) wrote: Hello, I have a lot of server{}s with different server_names all over my setup. I want to serve robots_closed.txt instead of robot.txt for all but one domain. And for that one domain, let's say example.org, I want robot.txt to served normally. What isby tokers - Nginx Mailing List - English
Hi! Have you used the proxy_cache_valid <http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_cache_valid> ? Maybe you can add this directive to disable the 304 cache explicitly. proxy_cache_valid 304 0; On 24 July 2017 at 23:20:35, Ryan Barclay (ryan@rbftpnetworks.com) wrote: We have a pretty simple setup with NGINX sitting on the front and a backend server (on a separate phby tokers - Nginx Mailing List - English
Hi! Nginx carries with the limit_req_module http://nginx.org/en/docs/http/ngx_http_limit_req_module.html. I think it is a good helper. On 24 July 2017 at 20:10:05, Gary Sellani (lists@lazygranch.com) wrote: I just detect the use agent and return 444, but every attempt to get a file will show up in your access.log. https://www.buildersociety.com/threads/block-unwanted-bots-on-apache-nginx-conby tokers - Nginx Mailing List - English
# HG changeset patch # User Alex Zhang # Date 1500471580 -28800 # Wed Jul 19 21:39:40 2017 +0800 # Node ID 9744b6eb0e04e53346f3e02aa16cbea1d3dfce72 # Parent cc7ff76df9270a239ce615f0dcff280eb6dfd2ba Phase_handler: style. Signed-off-by: Alex Zhang <zchao1995@gmail.com> diff -r cc7ff76df927 -r 9744b6eb0e04 src/http/ngx_http.c --- a/src/http/ngx_http.c Wed Jul 19 12:05:50 2017 +030by tokers - Nginx Development
Hi! NGINX will check the Content-Encoding header, so if this header exists, gzip filter will be bypassed. On 14 July 2017 at 02:39:07, foxgab (nginx-forum@forum.nginx.org) wrote: i configred nginx with gzip directives: http { gzip on; gzip_types text/css application/javascript; gzip_comp_level 9; gzip_http_version 1.0; gzip_proxied any; } some upstream servers have already gzipped the responsby tokers - Nginx Mailing List - English
Hi! I think you can debug your code with gdb, maybe some other modules or filters prevent sending the data. On 11 July 2017 at 22:57:50, Johan Andersson (ng23@firemail.cc) wrote: Hi Andreas and Zhang, Thank you for your hint with the http_echo_module! I read through their code to get a hang of how the event loop and the event handling actually works. If I replace the hello_world command in mby tokers - Nginx Mailing List - English
Hi! Only the root can bind the ports small than 1024. You should start your nginx service with the sudo prefix. On 11 July 2017 at 09:20:40, Viaduct Lists (lists@viaduct-productions.com) wrote: Hi there. Looking to get port 80 serving. Changed to root, but the error keeps the user from running: nginx: the "user" directive makes sense only if the master process runs with super-userby tokers - Nginx Mailing List - English
Hello! You mustn’t use standard sleep function for it will block Nginx’s events loop, alternatively, you need to put your write event to a timer, set the proper handler when the timer expires. BTW, you should always check the return value of ngx_http_send_header and ngx_http_output_filter. On 10 July 2017 at 01:43:46, Johan Andersson (ng23@firemail.cc) wrote: Hi everyone, I have some issuby tokers - Nginx Mailing List - English
I would like to log a header which is send with the incoming request into a custom log field. How can this be done? you mean the request header? On 7 July 2017 at 23:55:36, mailinglisten@simonhoenscheid.de ( mailinglisten@simonhoenscheid.de) wrote: Hello List, I would like to log a header which is send with the incoming request into a custom log field. How can this be done? Kind Regards Siby tokers - Nginx Mailing List - English
Hi! I don’t know if it is an expected behaviour or a bug: Scenario 1(OK): If I perform a request with the header Range, Nginx serves the partial content(HTTP 206). Scenario 2 (NOT OK): If I perform a request with the header Range AND the header “If-Range” with the Etag, Nginx serves theentire file(200). Why not serve the partial content if its cached version matches the If-Range header?by tokers - Nginx Mailing List - English
Hello! I copied your configuration, it seems a internal redirection cycled, you need to modify it(e.g. change the location / to location /=). After i modified, i didn’t reproduce your problem, the root directive works well. On 27 June 2017 at 22:36:45, AjaySawant (nginx-forum@forum.nginx.org) wrote: Hello! I copied your configuration, it seems a internal redirection cycled, you need to modiby tokers - Nginx Mailing List - English
Hello! I copied your configuration, it seems a internal redirection cycled, you need to modify it(e.g. change the location / to location /=). After i modified, i didn’t reproduce your problem, the root directive works well. On 27 June 2017 at 22:36:45, AjaySawant (nginx-forum@forum.nginx.org) wrote: I have one AngularJS application deployed on port 8080. It can be access as http://ip:8080. Nby tokers - Nginx Mailing List - English
You can traverse the list r->headers_in.headers.by tokers - Nginx Mailing List - English
Hi You can traverse the list r->headers_in.headers. On 7 June 2017 at 14:22:38, prathour9 (nginx-forum@forum.nginx.org) wrote: I want to log all the headers in client browser send to nginx.However known header i can log.But I want to log the all unknown headers. How can i log unknown header in nginx. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,251159,274722#msg-274722 ______by tokers - Nginx Mailing List - English
You can traverse the list r->headers_in.headers. On 7 June 2017 at 14:22:38, prathour9 (nginx-forum@forum.nginx.org) wrote: I want to log all the headers in client browser send to nginx.However known header i can log.But I want to log the all unknown headers. How can i log unknown header in nginx. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,251159,274722#msg-274722 __________by tokers - Nginx Mailing List - English
Hi I think it is tough by nguni itself, maybe you can use the ngx_lua, save the environment to Nginx variable, and use them in proxy_pass. On 5 June 2017 at 22:17:05, juan_barbancho_rsi@cajarural.com ( juan_barbancho_rsi@cajarural.com) wrote: Hi Guys, I need to use nginx to made a proxy_pass to some url, but I need to pass some proxy param in order to do not get the connection " upstreaby tokers - Nginx Mailing List - English
Hi! OpenResty is recommend in this case. You can combine it with the ngx_proxy module. On 4 June 2017 at 11:44:41, Yongtao You via nginx (nginx@nginx.org) wrote: Hi, I have a rather special requirement. I need to setup a reverse proxy with multiple upstream servers, and whenever a POST request comes in, I want NGINX to forward the request to ALL the upstream servers. And the response code wby tokers - Nginx Mailing List - English
Hi, Guilherme! The HTTP status code 499, which means client closed the connection before Nginx even sent one byte. As long as Nginx sent some bytes, 499 will not arise, and Nginx just record the code generated previously, also, i bet your log_format of your access_log is the default one provided by Nginx, it is helpless when we need to speculate whether client closed the connection. Maybe you caby tokers - Nginx Mailing List - English
Hi! Are you sure the client didn't close the connection when the body is transferring? On 2 June 2017 at 10:00:36, Guilherme (guilherme.e@gmail.com) wrote: I identified a strange behavior in my nginx/1.11.2. Same cached objects are returning different content length. In the logs below, body_bytes_sent changes intermittently between 215 and 3782 bytes. The correct length is 3782. (these objectsby tokers - Nginx Mailing List - English
Well, i think may be you need an off-cpu flame graph :) On 23 May 2017 at 10:59:29, fengx (nginx-forum@forum.nginx.org) wrote: There should been no blocking operation. At least, we have the same codebase and same sample data in the two test cases. In fact, our application is based on OpenResty with local redis instances. On the 32 cores server, we have 22 nginx workers and 8 local redis instanby tokers - Nginx Mailing List - English
Hi! Just as the article https://www.nginx.com/blog/socket-sharding-nginx-release-1-9-1/ says, it can also mean that when a worker is stalled by a blocking operation, the block affects not only connections that the worker has already accepted, but also connection requests that the kernel has assigned to the worker since it became blocked. Is there such a possibility that some blocking operationsby tokers - Nginx Mailing List - English
Hi! Just as the article https://www.nginx.com/blog/socket-sharding-nginx-release-1-9-1/ says, it can also mean that when a worker is stalled by a blocking operation, the block affects not only connections that the worker has already accepted, but also connection requests that the kernel has assigned to the worker since it became blocked. Is there such a possibility that some blocking operationsby tokers - Nginx Mailing List - English
Hi t.nishiyori, Don’t worry, just like Ermilov said, when you enable the gzip module and nginx gets a part of response body, gzip module will try to compress the data, and if the buffers reach the limit, gzip module just send these compressed data firstly(ngx_http_gzip_body_filter), when processing by chunk module, they evolved a “chunk”. After some buffers is free, gzip will continue the wby tokers - Nginx Mailing List - English
There is no any directive like “gzip_max_length” so far. By the way, nginx compresses the body by “chunk”, so one “chunk” is an independtent compressed data. On 27 April 2017 at 13:27:42, t.nishiyori (nginx-forum@forum.nginx.org) wrote: Hello, I'm using nginx-1.11.2 for proxy server with gzip-module. I hope to use such like a "gzip_max_length" directive in ngx_http_gzip_by tokers - Nginx Mailing List - English
Maybe lua-nginx-module is more convenient :) On 20 April 2017 at 08:08:46, Frank Liu (gfrankliu@gmail.com) wrote: Hi, What's the best way to login the original request uri ($request_uri) without query string? I tried $uri but it seems to be normalized and if I have customized 404 error page /404.html, all those requests are logged as /404.html instead of original requests uri. Thanks! Frankby tokers - Nginx Mailing List - English
$request_uri is a built-in variable of Nginx, which meaning is the pure uri in HTTP request line without any process. For instance, if the HTTP request line is "GET /path/to//a.jpg HTTP/1.1", the $request_uri is "/path/to//a.jpg". But the $uri will be "/path/to/a.jpg" if merge_slashes is enable. if the HTTP request line is "GET /path%2Fto/a.jpg HTTP1/1.&quoby tokers - Nginx Mailing List - English