Re: Strange problem with expires?

2022-03-01 Thread Grzegorz Kulewski
W dniu 01.03.2022 o 21:49, Grzegorz Kulewski pisze: > W dniu 01.03.2022 o 21:43, David Hu pisze: >> On 1 March 2022 20:40:48 UTC, Grzegorz Kulewski wrote: >>> Hello, >>> >>> I am using nginx 1.21.0 to serve static files for one domain and when I >&

Re: Strange problem with expires?

2022-03-01 Thread Grzegorz Kulewski
W dniu 01.03.2022 o 21:43, David Hu pisze: > On 1 March 2022 20:40:48 UTC, Grzegorz Kulewski wrote: >> Hello, >> >> I am using nginx 1.21.0 to serve static files for one domain and when I have: >> >>location = / { >&g

Strange problem with expires?

2022-03-01 Thread Grzegorz Kulewski
? Can anybody reproduce it too? -- Grzegorz Kulewski ___ nginx mailing list -- nginx@nginx.org To unsubscribe send an email to nginx-le...@nginx.org

Re: Using $host variable in ssl_certificate path

2021-10-20 Thread Grzegorz Kulewski
t request time. So if you didn't configure Certbot to install certs with correct owner/perms then it can't and won't work. -- Grzegorz Kulewski ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: How to install nginx-module-njs on alpine

2021-06-02 Thread Grzegorz Kulewski
W dniu 02.06.2021 o 22:34, Thomas Ward pisze: > More than likely you'll have to compile the module yourself - I don't know of > any distribution that currently ships the njs module. Gentoo ships njs with nginx. -- Grzegorz Kulewski ___ nginx m

Re: nginx DNS doesn't update the upstream IP

2021-04-14 Thread Grzegorz Kulewski
W dniu 14.04.2021 o 18:48, kay pisze: > We tested with a default "resolver 8.8.8.8;" and "resolver 8.8.8.8 30s;" > options. Both keep using the outdated IP address until you run "nginx -s > reload". The upstream is AWS LoadBalancer, which changes IPs quite > frequently. > > I'm using nginx

Re: HEAD request to GCS caching body

2021-03-04 Thread Grzegorz Kulewski
http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_cache_convert_head W dniu 04.03.2021 o 15:03, Señor J Onion pisze: > I use nginx as a forward proxy, with content caching. > > My app first performs a HEAD request to a Google Cloud Storage object. Then > it may perform a GET

Response headers adding/filtering during proxy with njs

2021-01-19 Thread Grzegorz Kulewski
to the client? I think something like that is possible with lua but I would really like to avoid using 3rd party modules and just go the njs route. If not possible - is there any workaround? And/or can it be easily added in next release(s)? Thank you in advance. -- Grzegorz Kulewski

Re: Matching of special characters in location

2020-11-09 Thread Grzegorz Kulewski
W dniu 10.11.2020 o 01:19, Francis Daly pisze: > On Tue, Nov 10, 2020 at 12:11:28AM +0100, Grzegorz Kulewski wrote: >> W dniu 09.11.2020 o 21:10, Sergey A. Osokin pisze: >>> On Mon, Nov 09, 2020 at 03:47:13PM +0100, Grzegorz Kulewski wrote: >>>> Is there any (sane) wa

Re: Matching of special characters in location

2020-11-09 Thread Grzegorz Kulewski
W dniu 09.11.2020 o 21:10, Sergey A. Osokin pisze: > On Mon, Nov 09, 2020 at 03:47:13PM +0100, Grzegorz Kulewski wrote: >> Hello, >> >> Is there any (sane) way to match things like: %e2%80%8b in URL in location? >> Thank you in advance. > > Hi Grzegorz, > &g

Matching of special characters in location

2020-11-09 Thread Grzegorz Kulewski
Hello, Is there any (sane) way to match things like: %e2%80%8b in URL in location? Thank you in advance. -- Grzegorz Kulewski ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

$request_id version per subrequest

2020-11-02 Thread Grzegorz Kulewski
Hello, Currently $request_id seems to be per main request and any subrequests (like: ssi includes and other cases) reuse same id. Would it be possible to add a second variable with per subrequest version of $request_id? Thank you in advance. -- Grzegorz Kulewski

Re: nginx-1.15.0

2018-06-05 Thread Grzegorz Kulewski
this mean that the performance of UDP proxying of (for example) OpenVPN should be greatly increased in this release? -- Grzegorz Kulewski g...@leniwiec.biz +48 663 92 88 95 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Stream module logging questions

2018-03-06 Thread Grzegorz Kulewski
blems but it can be usefull in some cases and should be easy to add to stream in nginx and to any other program. -- Grzegorz Kulewski ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Stream module logging questions

2018-03-06 Thread Grzegorz Kulewski
Hello, Thank you for your answer. W dniu 01.03.2018 o 12:52, Roman Arutyunyan pisze: > Hello, > > On Thu, Mar 01, 2018 at 04:06:09AM +0100, Grzegorz Kulewski wrote: >> Hello, >> >> 1. How can I log the IP and (especially) the port used by nginx (proxy) to >>

Stream module logging questions

2018-02-28 Thread Grzegorz Kulewski
. Is there any reason for this? -- Grzegorz Kulewski ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

ngx_stream_auth_request?

2018-02-28 Thread Grzegorz Kulewski
(results from TLS negotiation/preread and similar). -- Grzegorz Kulewski ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Nginx Auth Request By Source IP

2017-10-19 Thread Grzegorz Kulewski
gt; server { >   location / { >     if ($localhost = 0) { >       auth_request = /oauth2/callback >       >     } >   } > } > > Is this possible? > TL;DR -> bypass nginx oauth2 auth_request module when source ip is localhost If I understood correctly something like that should

proxy_cache_bypass and non-200 response

2017-09-26 Thread Grzegorz Kulewski
-200 responses but right now only 401 interests me. I am not using any directives like proxy_cache_use_stale or similar. Only proxy_pass, proxy_cache and proxy_cache_bypass. I set proxy_cache_key to $remote_addr. I am using nginx version 1.12.1 from your Ubuntu xenial repository. -- Grzegorz

Re: OCSP stapling and resolver

2017-09-26 Thread Grzegorz Kulewski
W dniu 26.09.2017 15:20, Maxim Dounin pisze: > Hello! > > On Tue, Sep 26, 2017 at 03:48:57AM +0200, Grzegorz Kulewski wrote: > >> Is resolver in nginx still needed for OCSP stapling? > > Yes. > >> I am getting a warning from nginx if resolver is not suppl

OCSP stapling and resolver

2017-09-25 Thread Grzegorz Kulewski
Hello, Is resolver in nginx still needed for OCSP stapling? I am getting a warning from nginx if resolver is not supplied but at the same time both Qualys and openssl s_client output suggest OCSP stapling is working. Strange. -- Grzegorz Kulewski g...@leniwiec.biz +48 663 92 88 95

Zero/random file module

2017-09-11 Thread Grzegorz Kulewski
{ big_file 1M random; } would serve such file in chosen location. Of course the quality of random data does not need to be high - we only need something that compresses poorly - so any simple and fast userspace generator should be enough. Thank you in advance. -- Grzegorz Kulewski

Re: proxy_cache_bypass and cache refresh

2014-10-10 Thread Grzegorz Kulewski
Anyone? W dniu 03.10.2014 11:42, Grzegorz Kulewski pisze: Hello, Is it true that a GET request that satisfies proxy_cache_bypass (and generates BYPASS cache status in the access log) should also refresh proxy cache for that URL? There are several tutorials on the Internet that advise

proxy_cache_bypass and cache refresh

2014-10-03 Thread Grzegorz Kulewski
(I double checked that it generates a GET request and a cache status BYPASS): curl -H 'X-Bar-Cache-Refresh: true' -D - 'http://www.foo.pl/' Any idea why it doesn't work? -- Grzegorz Kulewski ___ nginx mailing list nginx@nginx.org http