Re: what is my syntax error

2024-03-07 Thread Sergey A. Osokin
On Thu, Mar 07, 2024 at 03:20:23PM -0500, Victor Oppenheimer wrote: > In my nginx.conf file on my Windows computerI have the following code in > nginx.conf. > > http { # http context specific to HTTP affecting all virtual servers > > # force incoming URLs to lower case >     map $uri $lowercase {

what is my syntax error

2024-03-07 Thread Victor Oppenheimer
In my nginx.conf file on my Windows computerI have the following code in nginx.conf. http { # http context specific to HTTP affecting all virtual servers # force incoming URLs to lower case     map $uri $lowercase {~ ^(.+)$ /$1}; When I run nginx -t I get the following error. nginx: [emerg] i

Re: Forcing URLs to lower case example

2024-03-07 Thread Jeffrey Walton
On Thu, Mar 7, 2024 at 1:54 PM Victor Oppenheimer wrote: > > I am using nginx on MS Windows primarily for reverse proxying. > > I would like to force URLs reaching nginx into lower case before further > processing in my nginx.configfile. > > That is, I'd like subsequent server and/or location dire

Forcing URLs to lower case example

2024-03-07 Thread Victor Oppenheimer
Greetings, I am using nginx on MS Windows primarily for reverse proxying. I would like to force URLs reaching nginx into lower case before further processing in my nginx.configfile. That is, I'd like subsequent server and/or location directives to all receive lower case versions of URLs bein

Re: $request_time variable = 0 for small files.

2024-03-07 Thread Clima Gabriel
0.000 sysctl -w net.ipv4.tcp_rmem="4096 4096 4096" 0.072 sysctl -w net.ipv4.tcp_rmem="512 512 512" 0.106 sysctl -w net.ipv4.tcp_rmem="256 256 256" You're right. This was invaluable, thank you! On Thu, Mar 7, 2024 at 11:46 AM J Carter wrote: > Hello, > > On Thu, 7 Mar 2024 08:17:23 +0200 > Cl

Re: Question regarding $invalid_referer

2024-03-07 Thread J Carter
Hello, On Tue, 5 Mar 2024 13:07:53 -0800 "li...@lazygranch.com" wrote: > I am presently using a scheme like this to prevent scraping documents. > >location /images/ { > valid_referers none blocked www.example.com example.com > forums.othersit

Re: $request_time variable = 0 for small files.

2024-03-07 Thread J Carter
Hello, On Thu, 7 Mar 2024 08:17:23 +0200 Clima Gabriel wrote: > Greetings, > I'm investigating a bug, super easy to reproduce. > Thought you might be curious. > > Minimal Nginx config. Create two files. 100M and 1M: > dd if=/dev/zero of=/var/www/file100M bs=100M count=1 > dd if=/dev/zero of=/va

next upstream on timeout and 307

2024-03-07 Thread dronord
It's ok? upstream rest { server s1; server s2; } server { listen 80; server_name _; root /usr/share/nginx/html; proxy_connect_timeout 3s; proxy_read_timeout 3s; proxy_intercept_errors on; proxy_next_upstream non_idempotent http_500; proxy_n