Re: proxy_pass works on main page but not other pages

2022-11-01 Thread Francis Daly
On Sun, Oct 30, 2022 at 11:56:39AM -0600, Brian Carey wrote: Hi there, > Thinking it through though I think my solution is bad since it implies a > dependency between the urls defined in the program and the location used in > nginx, ie. they must match and the program cannot be proxied at an arbi

Re: how can I cache upstream by mime type in nginx

2022-11-01 Thread Francis Daly
On Tue, Nov 01, 2022 at 10:07:37PM +, Francis Daly wrote: > On Wed, Nov 02, 2022 at 12:29:49AM +0800, Drweb Mike wrote: Hi there, > > My front end is nginx using reverse proxy work with my backend, I was > > trying to cache images files only, but it seems doesn't work at all, the > > *$no_cac

Re: how can I cache upstream by mime type in nginx

2022-11-01 Thread Francis Daly
On Wed, Nov 02, 2022 at 12:29:49AM +0800, Drweb Mike wrote: Hi there, > My front end is nginx using reverse proxy work with my backend, I was > trying to cache images files only, but it seems doesn't work at all, the > *$no_cache* always output default value "proxy", which should be "0" when I >

how can I cache upstream by mime type in nginx

2022-11-01 Thread Drweb Mike
hi there My front end is nginx using reverse proxy work with my backend, I was trying to cache images files only, but it seems doesn't work at all, the *$no_cache* always output default value "proxy", which should be "0" when I visit image files here it is my config map $upstream_http_content_ty

Re: nginx-quic socket() 0.0.0.0:80 failed (94: Socket type not supported)

2022-11-01 Thread George
Ok fixed the patch and yup working now! No more socket() 0.0.0.0:80 failed (94: Socket type not supported) errors when listen directive is not specifically set. Thanks Roman! Posted at Nginx Forum: https://forum.nginx.org/read.php?2,295642,295646#msg-295646 _

Re: nginx-quic socket() 0.0.0.0:80 failed (94: Socket type not supported)

2022-11-01 Thread George
That was a quick reply, was about to pop on Nginx slack channel :) Tried the patch but getting patching file src/http/ngx_http_core_module.c patch: malformed patch at line 18: lsopt.socklen = sizeof(struct sockaddr_in); Posted at Nginx Forum: https://forum.nginx.org/read.php?2,295642,29564

Re: nginx-quic socket() 0.0.0.0:80 failed (94: Socket type not supported)

2022-11-01 Thread Roman Arutyunyan
Hi George, On Tue, Nov 01, 2022 at 08:19:15AM -0400, George wrote: > I tested nginx-quic https://quic.nginx.org/README for HTTP/3 over QUIC using > quictls openssl 1.1.1q forked library and ran into an interesting error for > non-HTTPS nginx vhost configurations. If non-HTTPS nginx vhost doesn't >

nginx-quic socket() 0.0.0.0:80 failed (94: Socket type not supported)

2022-11-01 Thread George
I tested nginx-quic https://quic.nginx.org/README for HTTP/3 over QUIC using quictls openssl 1.1.1q forked library and ran into an interesting error for non-HTTPS nginx vhost configurations. If non-HTTPS nginx vhost doesn't specifically list the listen directive for port 80, I get this error when r

Re: Nginx and 400 SSL error handling

2022-11-01 Thread fostercarly
The 400 (Bad Request) status code indicates that the server cannot or will not process the request because the received syntax is invalid, nonsensical, or exceeds some limitation on what the server is willing to process. It means that the request itself has somehow incorrect or corrupted and the se