If I'm not wrong the rewrite is applied only for the path, not for querystring. To parse the arguments using a regex use a map with $args as input or use the $arg_ARGNAME to the rewrite. On Jun 30, 2017 20:49, "Alexandre" <infos@opendoc.net> wrote: > Do you have solutions for my problem ? > > Thank you very much. > > > On Fri, 30 Jun 2017 08:18:50 +0200 > Aleby wandenberg - Nginx Mailing List - English
Some time ago I wrote this module https://github.com/wandenberg/nginx-trusted-proxy-resolver-module to check when an access is done through the Google Proxy using reverse DNS + DNS resolve and comparing the results to validate the access. You can do something similar. On Sun, Sep 25, 2016 at 11:58 PM, lists@lazygranch.com <lists@lazygranch.com > wrote: > I got a spoofed googlebot hit. Iby wandenberg - Nginx Mailing List - English
Use ngx_queue_t On Aug 23, 2016 09:41, "Raghavan, Gopal" <gopal.raghavan@here.com> wrote: > I can store as ngx_rbtree_t. > Any suggestion on how to store a struct with list of items, something like > this in shared memory? > > typedef struct { > ngx_rbtree_node_t node; > ngx_uint_t id; > ngx_list_tby wandenberg - Nginx Development
Check if your backend server is setting cache headers on errors like Cache-Control / Expires. Nginx by default uses these headers to know if the response should be cached or not. When these headers are not present it uses the configuration done with proxy_cache_valid. On Sun, Aug 7, 2016 at 9:43 AM, anish10dec <nginx-forum@forum.nginx.org> wrote: > Hi Everyone, > > We are using Nby wandenberg - Nginx Mailing List - English
Hey, I'm with a weird situation on an nginx instance. The object on the cache was stored with 200 OK status, but sometimes when a client request this same object nginx log something like 500 as status, HIT as cache status, 0 bytes sent and 0 ms as response time. Have any of you seen an error like that? What may be causing this situation? Where I can look for more information? One possibility Iby wandenberg - Nginx Development
No, is the same way. You may create a custom directive to set if you module is activated or not on the location. And check this flag as the first action of your module. What I mean is, all requests will reach your module, but only the ones target to the location where it is "on" will handle the request, the other on will suffer a bypass on your module. Take a look on ngx_http_gzip_filterby wandenberg - Nginx Development
It depends on the module. If it is configurable on main, server or location blocks. But generally you can enable/disable at any of these 3 levels On Jun 20, 2016 11:44, "Justin Kennedy" <justin@justinkennedy.ca> wrote: > I'll try to simply the question: Can a module be enabled only for specific > server blocks? > > I.e. If a module is "included" in server bloby wandenberg - Nginx Development
You have to configure your nginx to use it like any other module. For instance, cd /Downloads/nginx ../configure --add-module=/Downloads/nginx-upstream-dynamic-servers-master make make install On May 16, 2016 01:28, "RT.Nat" <nginx-forum@forum.nginx.org> wrote: > I cannot install the above module. > > /Downloads/nginx-upstream-dynamic-servers-master$ make install > makby wandenberg - Nginx Mailing List - English
You can try to use this module to resolve the DNS ;) https://github.com/GUI/nginx-upstream-dynamic-servers On Wed, Mar 16, 2016 at 1:34 PM, Valentin V. Bartenev <vbart@nginx.com> wrote: > On Friday 11 March 2016 07:01:49 Frank Liu wrote: > > Hi Valentin, > > Thanks for clearing up . I was looking at the wrong module. > > Do you have any comments to the other two questiby wandenberg - Nginx Mailing List - English
The location = / is a exactly match. To execute a "catch all" returning a 404 you can do a location / { return 404; } On Feb 29, 2016 16:15, "Payam Chychi" <pchychi@gmail.com> wrote: > Look at your proxy cache path... (proxy_cache_path /var/www/test_cache) > Are you sure the path exists and had proper perms/ownership? > > Payam > > > On Feb 29, 20by wandenberg - Nginx Mailing List - English
Ops. Sorry, I didn't realize that it only deals with positive numbers. The return type as ngx_int_t tricked me, and I didn't checked the use case as "-2". Sorry again. On Thu, Dec 10, 2015 at 3:01 PM, Valentin V. Bartenev <vbart@nginx.com> wrote: > On Thursday 10 December 2015 14:55:32 Wandenberg Peixoto wrote: > > Hi, > > > > today I realized a possible prby wandenberg - Nginx Development
Hi, today I realized a possible problem on the ngx_atoi and ngx_atof functions (may be on all ngx_ato* functions). There is no way to distinguish between an error and a valid "-1" string. For instance, ngx_str_t some_string = ngx_string("-1"); ngx_int_t x = ngx_atoi(some_string.data, some_string.len); if (x == NGX_ERROR) { ngx_log_debug(NGX_LOG_DEBUG, ngx_cycle->log,by wandenberg - Nginx Development
This directive is available only on paid version Additionally, the following parameters are available as part of our commercial subscription http://nginx.com/products/: purger=on|off On Sat, Nov 28, 2015 at 8:10 AM, Dewangga Bachrul Alam < dewanggaba@xtremenitro.org> wrote: > Hello! > > I am using nginx 1.8.0 on Cent OS 7, tried to enable purger directive, > mentioned on >by wandenberg - Nginx Mailing List - English
Make sense On Thu, Oct 22, 2015 at 7:43 PM, Christos Chatzaras <chris@cretaforce.gr> wrote: > I think I found a patch for this: > https://github.com/jrkettle/nginx-http-auth-digest/commit/6846a2a94b5497ec999a826618552717b3853bb9 > _______________________________________________ > nginx mailing list > nginx@nginx.org > http://mailman.nginx.org/mailman/listinfo/nginx > _by wandenberg - Nginx Mailing List - English
Take a look on *port_in_redirect <http://nginx.org/en/docs/http/ngx_http_core_module.html#port_in_redirect> *and *proxy_pass <http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_pass>* configuration. You probably have to do a proxy_pass to Apache and ensure that the port number is removed from Apache response qhen there is a redirect. On Tue, Jun 23, 2015 at 11:59 AM, seby wandenberg - Nginx Mailing List - English
You also have to consider the rate your client get data from the server. The request time is the entire time spent from the beginning of the request until the end of response. So you may not have a problem on your server, just a lazy client :) On Mon, Mar 9, 2015 at 1:05 PM, B.R. <reallfqq-nginx@yahoo.fr> wrote: > You are on a nginx mailing list, thus I will reply on the nginx side of &by wandenberg - Nginx Mailing List - English
Hi, I would like to know what is the right way to start a new process like the "cache manager" to execute jobs non related with directly with user requests. Can you help me? Regards, Wandenberg _______________________________________________ nginx-devel mailing list nginx-devel@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-develby wandenberg - Nginx Development
Hi Julien, I was having the same problem with NGX_AGAIN and could solved it. Did you fix your problem? I can try to help you. Regards, Wandenberg On Thu, Jul 18, 2013 at 1:37 AM, Julien Zefi <jzefip@gmail.com> wrote: > Hi all, > > thanks for the help but after more changes and taking in count your > suggestions i am still stuck with the problem (it cannot be in Lua, must be &by wandenberg - Nginx Development
Hey Arun, as docs says you do not need to compile this module anymore, or even try to set "chunkin on; " The nginx core will "detect" when your response does not have a Content-Length set, and will enable the chunk mode automatically. Just remove that line from your configuration and be happy :D This module is no longer needed for Nginx 1.3.9+ because since 1.3.9, the Nginx cby wandenberg - Nginx Mailing List - English
Try to remove the last 's' This should work. map $http_user_agent $katimeout { default 300; } On Tue, Nov 18, 2014 at 2:25 AM, Robert Mueller <robm@fastmail.fm> wrote: > Hi > > Thanks for your responses. Unfortunately, they don't seem to work. > > > and then use the evil IF: > > if ($ios_ua) { > keepalive_timout 0; > } > > > This doesn'tby wandenberg - Nginx Mailing List - English
Try to set log_not_found <http://nginx.org/en/docs/http/ngx_http_core_module.html#log_not_found> to off On Thu, Oct 30, 2014 at 11:56 AM, Igal @ getRailo.org <igal@getrailo.org> wrote: > hi, > > I am suppressing the access_log for images and other files in the /res/ > directory: > > location ^~ /res/ { > > error_page 404 /res/images/100candles-lby wandenberg - Nginx Mailing List - English
Did you execute a reload on nginx after remove the configuration file? On Oct 12, 2014 4:14 AM, "Francis Daly" <francis@daoine.org> wrote: > On Sat, Oct 11, 2014 at 06:23:28PM -0400, jbjares wrote: > > Hi there, > > > I'm with a issue related a removed configuration file for a specific > > hostname. So, I need to associate the hostname with a new ip addressby wandenberg - Nginx Mailing List - English
Take a look on SRCache module http://wiki.nginx.org/HttpSRCacheModule if it is suitable for you. On Thu, Oct 2, 2014 at 9:24 AM, Bertrand Paquet <bertrand.paquet@gmail.com> wrote: > Hi, > > I need to have the same cache content on every frontend nodes. I'm seeking > a solution to do what the nginx proxy cache does, but in a distributed way > : using memcached, riak or any anby wandenberg - Nginx Mailing List - English
By default the $uri is appended to the proxy_pass directive. Since you defined as proxy_pass http://upstream*/*; and the $uri starts with a slash you will have a double slash. Try to set proxy_pass like proxy_pass http://upstream; On Fri, Sep 26, 2014 at 2:02 PM, Marcello Rocha <marcello.rocha@vagas.com.br > wrote: > Hi list, this is my first post here, so If I commit any blunder pleasby wandenberg - Nginx Mailing List - English
As your snippet is very short I cannot be sure but some questions to guide on debugging - did you closed the file when finished to write? some bytes may be in buffer and will be flushed after the close. - the m->chain was used before to write its content to other place? If yes, may be necessary to reset some internal pointers. - what do you mean by "not csv file"? What is the contentby wandenberg - Nginx Mailing List - English
By default redis2-nginx-module execute some commands on redis and return the redis response to the client directly. So you receive something like +OK $5 world If you want to manipulate this response on you nginx.conf ("config") you have to do more work, probably using another language like lua. If you are ok with your client receiving this kind of answer you do not have to worry. On Tby wandenberg - Nginx Mailing List - English
If you need to call redis from your code, you can take a look on redis_nginx_adapter https://github.com/wandenberg/redis_nginx_adapter. But, if you want to get the value from your "config" and use it there, probably you have to use some other language like perl or lua, I'm not 100% sure On Tue, Aug 12, 2014 at 9:16 AM, ajaybodhe <nginx-forum@nginx.us> wrote: > redis2-nginx-moby wandenberg - Nginx Mailing List - English
One question, your backend are sending the content-type header if you made the request to it? If yes, the value is right? If not, I think the problem is on backend configuration. You can set it on the nginx using the map like I suggest, but will have to add all possible file types on the map, like map $uri $custom_content_type { default "text/html"; ~(.*\.json)$ "aby wandenberg - Nginx Mailing List - English
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 <nginx-forum@nginx.us> wrote: > Hello wandenberg, > > Thank you for your response. I truly appreciate your help. I tried this &gby wandenberg - Nginx Mailing List - English
Hello, you can use many values on the map, take a look on its docs. One quickly example may be (not tested) map $uri $custom_content_type { default "text/html"; ~(.*\.json)$ "application/json"; } location ~ \.json$ { proxy_hide_header Content-Type; add_header Content-Type $custom_content_type; # other proxy configurations like proxy_pass } Or tby wandenberg - Nginx Mailing List - English