How to detect rest of c->recv

2020-11-09 Thread Tom Lebreux
Hi, I have been working my way around the code base and developing some modules purely for fun[0]. I am now building a core module that acts as an echo server[1]. This is to learn how to actually work with the event loop and clients, etc. One question I have is: How do I know if there is mo

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) way to match things like: %e2%80%

Re: Matching of special characters in location

2020-11-09 Thread Francis Daly
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: Hi there, > >> Is there any (sane) way to match things like: %e2%80%8b in URL in location? > > here is th

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, > > here is the code snippet (not tested):

Re: Nginx Download MP3 206 Partial Content HTTP Response

2020-11-09 Thread Francis Daly
On Mon, Nov 09, 2020 at 04:45:31AM -0500, garyc...@yahoo.com wrote: Hi there, > That was it! The subsequent, asynchronous AJAX call was responding with a > Javascript redirect that was remedied using Nginx's sub_filter directive. Great that you found the problem, and found the fix that lets you

Re: SSL error:14094418:SSL routines:SSL3_READ_BYTES:tlsv1 alert unknown ca:SSL alert

2020-11-09 Thread Maxim Dounin
Hello! On Mon, Nov 09, 2020 at 03:48:08PM -0500, meniem wrote: > Thanks Maxim for your feedback. > > Yeah, I believe it's an issue with the intermediate certificates. So, can > you please let me know how can I obtain this intermediate certificates so > that I can append it to the certificate it

Re: SSL error:14094418:SSL routines:SSL3_READ_BYTES:tlsv1 alert unknown ca:SSL alert

2020-11-09 Thread Thomas Ward
On 11/9/20 3:48 PM, meniem wrote: > Thanks Maxim for your feedback. > > Yeah, I believe it's an issue with the intermediate certificates. So, can > you please let me know how can I obtain this intermediate certificates so > that I can append it to the certificate itself. You will need to reach ou

Re: SSL error:14094418:SSL routines:SSL3_READ_BYTES:tlsv1 alert unknown ca:SSL alert

2020-11-09 Thread meniem
Thanks Maxim for your feedback. Yeah, I believe it's an issue with the intermediate certificates. So, can you please let me know how can I obtain this intermediate certificates so that I can append it to the certificate itself. I can't also change this from the upstream server; as we are getting

Re: Matching of special characters in location

2020-11-09 Thread Sergey A. Osokin
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, here is the code snippet (not tested): location ~ ^/\xE2\x80\x8E { return 200 "%e2%80%8b matched\n

Re: SSL error:14094418:SSL routines:SSL3_READ_BYTES:tlsv1 alert unknown ca:SSL alert

2020-11-09 Thread Maxim Dounin
Hello! On Fri, Nov 06, 2020 at 04:35:43AM -0500, meniem wrote: > Thanks Sergey for your quick reply. > > I have checked the debug logs for the SNI (upstream SSL server name), and it > seems to be correct.I also used the "proxy_ssl_name" directive that set to > the proxied_server_name. Below is t

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

FW: Using it as a proxy server

2020-11-09 Thread Sathya Prasad H R
Hello Team, We have been configuring Nginx as a proxy server for one of our module server. The flow works like below [cid:image001.png@01D6B6C2.4E20A040] * Request comes from Module1 server to nginx * Nginx receives and act as proxy server to forward the received data from module1 serv

FW: Using it as a proxy server

2020-11-09 Thread Sathya Prasad H R
From: Sathya Prasad H R Sent: 09 November 2020 18:06 To: nginx@nginx.org Cc: Joydeep Ghosh Subject: Using Nginx as a proxy server Hello Team, We have been configuring Nginx as a proxy server for one of our module server. The flow works like below [cid:image001.png@01D6B6C2.4E20A040] * R

Using Nginx as a proxy server

2020-11-09 Thread Sathya Prasad H R
Hello Team, We have been configuring Nginx as a proxy server for one of our module server. The flow works like below [cid:image001.png@01D6B6C2.4E20A040] * Request comes from Module1 server to nginx * Nginx receives and act as proxy server to forward the received data from module1 serv

Re: Nginx Download MP3 206 Partial Content HTTP Response

2020-11-09 Thread garyc...@yahoo.com
Francis, That was it! The subsequent, asynchronous AJAX call was responding with a Javascript redirect that was remedied using Nginx's sub_filter directive. location / { resolver 103.86.99.100; proxy_bind $server_addr; proxy_pass https://$host$request_

Re: Nginx Download MP3 206 Partial Content HTTP Response

2020-11-09 Thread garyc...@yahoo.com
Fancis, I found the following in the body of the Click-Link 200 HTTP Response: {"url":"https:\/\/example.com\/download\/2770587","isSuccess":1} To me, it appears to be a Javascript redirect that Nginx is unaware of and in which the https protocol doesn't get rewritten. Is it possible for Nginx