Re: Variable value is resetting

2021-11-10 Thread malzad
Hi Maxim, Thanks a lot for the response. I think I get it why I was having this problem. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,292794,292799#msg-292799 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinf

Re: Variable value is resetting

2021-11-10 Thread Maxim Dounin
Hello! On Wed, Nov 10, 2021 at 01:12:22PM -0500, malzad wrote: > I have a static int variable in a load balancing module and initially set it > to 0. I want to update this variable when there will be any HTTP requests > with certain criteria. It gets updated but whenever the module receives a >

Re: Got "http reading blocked" on second request with same connection

2021-11-10 Thread Maxim Dounin
Hello! On Tue, Nov 09, 2021 at 06:40:01PM -0500, frdcybermatrix wrote: > Hi I'm having problem with my custom nginx module. > I created nginx module to detect wether the request is authorized or not, > and I need to check request body. So I use ngx_http_read_client_request_body > in NGX_HTTP_ACCE

RE: nginx proxy_pass and proxy_cache

2021-11-10 Thread Reinis Rozitis
> And I can't make a location block for a mimetype, or using another specifier > than regexes to filter out requests to certain 'file types'. Is there any > other 'good' solution except for, on my origin adding rewrites from > /something/data1/ to /data1/? Why just not separate the locations r

Variable value is resetting

2021-11-10 Thread malzad
Hi, I have a static int variable in a load balancing module and initially set it to 0. I want to update this variable when there will be any HTTP requests with certain criteria. It gets updated but whenever the module receives a new HTTP request ( or after receiving a few HTTP requests), that int

nginx proxy_pass and proxy_cache

2021-11-10 Thread Michiel Beijen
Hi there, I use nginx as caching reverse proxy. I have requests coming as /something/data1/request123.xml I have other requests coming in as /something/data1/bigfile424.bin I want to forward all requests to an origin on /data1/ Currently I use a location block: location /something/ { proxy_

Re: Whitelist iPhone/office computer IP address to access wordpress login page, deny any other ip address

2021-11-10 Thread Francis Daly
On Tue, Nov 09, 2021 at 02:32:48PM -0500, Danran wrote: Hi there, > 1. NOW, What I want to do, is to whitelist the ip address of my phone (and > my office computer at work), so that I can access the wordpress login page > from my phone's IP address and/or my office computer, while still blocking