cgi-bin and nginx

2020-08-09 Thread The Doctor
Hello I am trying to migrate from Apache to nginx. Straight forward HTML no problem. Cgi-bin issues are stopping me. So In my https system I have location /cgi-bin/ { #try_files $uri =404 ; gzip off; root /usr/local/www/apache24/cgi-bin/;

Re: Why Nginx send traffic to the next upstream on 504 error

2020-08-09 Thread stmx38
Maxim, thank you for reply! Some additional question here: 1. If we will remove 'timeout' will Nginx send traffic to the next upstream on 502 error? 2. More general question related the the Q.1. When Nginx interpret reply as 502 - on timeout, if yes - on which one? We have a lot of timeouts define

Re: Why Nginx send traffic to the next upstream on 504 error

2020-08-09 Thread Maxim Dounin
Hello! On Sat, Aug 08, 2020 at 12:55:47PM -0400, stmx38 wrote: > We have an Nginx where we configured > http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_next_upstream > in Nginx main config file at http level. > > We don't want to send traffic to the next upstream on 504: > >