RE: Check if a resource is in the cache

2019-10-29 Thread Reinis Rozitis
> Hello, > > is there a way to check if a requested resource is in the cache? > > For example, “if” has the option “-f”, which could be used to check if a > static > file is present. > > Is there something similar for a cached resource? Depending on what you want to achieve you could check $up

Re: unknown directive "geoip_country" for openresty/nginx 1.9.7.4

2019-10-29 Thread skwok
Hi Francis, Thank you for you response. It is assuring and it's helped me find a bug later in the dockerfile that's replaced the nginx. Best, skwok Posted at Nginx Forum: https://forum.nginx.org/read.php?2,286043,286048#msg-286048 ___ nginx mailing

Re: proxy_store: is it used much?

2019-10-29 Thread Igor Sysoev
> On 29 Oct 2019, at 02:08, Roger Fischer wrote: > > Hello, > > proxy_store seems to be a much simpler alternative to “cache" pseudo-static > resources. But there is very little discussion of it on the Internet or nginx > forum (compared to proxy_cache). > > Is there anything non-obvious that

Check if a resource is in the cache

2019-10-29 Thread Roger Fischer
Hello, is there a way to check if a requested resource is in the cache? For example, “if” has the option “-f”, which could be used to check if a static file is present. Is there something similar for a cached resource? Thanks… Roger ___ nginx maili

Re: unknown directive "geoip_country" for openresty/nginx 1.9.7.4

2019-10-29 Thread Francis Daly
On Tue, Oct 29, 2019 at 01:57:43PM -0400, skwok wrote: Hi there, > I am building a docker container of nginx with modsecurity and geoip on > Ubuntu Xenial, and I'm stuck with the geoip part as I can't find the > instructions for version 1.9.7.4, which doesn't support dynamic module. Can > someone

unknown directive "geoip_country" for openresty/nginx 1.9.7.4

2019-10-29 Thread skwok
Hi, I've run into an issue which is very similar to https://forum.nginx.org/read.php?2,266453,266453#msg-266453, but with a different version such that the solution for that (directive `load_module`) is not available yet. I am building a docker container of nginx with modsecurity and geoip on Ub

Re: Input filters in Nginx?

2019-10-29 Thread Maxim Dounin
Hello! On Tue, Oct 29, 2019 at 09:49:29AM -0400, awagner wrote: > Hi all. I did some search on the web and the archives here and did not find > an conclusive answer to this question. > > Apache has both input a filters (work on the request before content > generation) and output filters (work o

Re: Don't log 404 error

2019-10-29 Thread Vincent M.
Le 29/10/2019 à 13:59, Sergey Kandaurov a écrit : On 29 Oct 2019, at 15:45, Vincent M. wrote: Hello, How not to log 404 errors: 2019/10/29 12:42:09 [error] 469#469: *16382 open() "/var/www/website/fr/telecharger" failed (2: No such file or directory), In my config I have: error_log /var/lo

Re: high memory usage

2019-10-29 Thread skzai
Hi Anoop, there was a similar problem to me. This is really stressful :/ But I found a solution here: https://bit.ly/2pS0QW1 Posted at Nginx Forum: https://forum.nginx.org/read.php?2,281689,286039#msg-286039 ___ nginx mailing list nginx@nginx.org http

Input filters in Nginx?

2019-10-29 Thread awagner
Hi all. I did some search on the web and the archives here and did not find an conclusive answer to this question. Apache has both input a filters (work on the request before content generation) and output filters (work on generated content). As I am exploring the possibility to port some Apache

Re: Don't log 404 error

2019-10-29 Thread Sergey Kandaurov
> On 29 Oct 2019, at 15:45, Vincent M. wrote: > > Hello, > > How not to log 404 errors: > > 2019/10/29 12:42:09 [error] 469#469: *16382 open() > "/var/www/website/fr/telecharger" failed (2: No such file or directory), > > In my config I have: > > error_log /var/log/nginx/website-error.log;

Don't log 404 error

2019-10-29 Thread Vincent M.
Hello, How not to log 404 errors: 2019/10/29 12:42:09 [error] 469#469: *16382 open() "/var/www/website/fr/telecharger" failed (2: No such file or directory), In my config I have: error_log /var/log/nginx/website-error.log; Because I use 404 for doing url rewriting and so they are not errors

RE: proxy_store: is it used much?

2019-10-29 Thread Reinis Rozitis
> proxy_store seems to be a much simpler alternative to “cache" pseudo-static > resources. > > Is there anything non-obvious that speaks agains the use of proxy_store? Depends on how you look at "much simpler". proxy_store doesn't have a cache manager so space limitation/cleaning is up to you.