Conditionally removing a proxy header

2020-05-12 Thread eckern
I'm trying to conditionally remove a proxy header but this doesn't appear to be allowed using an "if". Ideally it would look something like this where $external_traffic is either 0 or 1: if ($external_traffic) { ... proxy_hide_header WWW-Authenticate; # Remove negotiate header

Re: 504 timeout

2020-05-12 Thread Larry Martell
On Tue, May 12, 2020 at 12:55 PM Norman Gray wrote: > > > Larry, hello. > > On 12 May 2020, at 16:33, Larry Martell wrote: > > > There can be cases when a > > request from a user does not come back from the db for 15-20 minutes. > > This is expected as it's calling a stored proc that does a lot an

Re: nginx update to 1.18.0 broke my wsl ubuntu 16.04 set up

2020-05-12 Thread Bruce Klein
Thanks Maxim! I don't know if I'll be able to fix it with that but I'll sure learn a lot trying. I appreciate all the pointers on where to look. Best, Bruce On Mon, May 11, 2020 at 7:54 PM Maxim Dounin wrote: > Hello! > > On Mon, May 11, 2020 at 09:38:12AM -1000, Bruce Klein wrote: > > > Hi Max

Re: 504 timeout

2020-05-12 Thread Norman Gray
Larry, hello. On 12 May 2020, at 16:33, Larry Martell wrote: There can be cases when a request from a user does not come back from the db for 15-20 minutes. This is expected as it's calling a stored proc that does a lot and this is an internal app. (open-parenthesis This isn't an answer to

Re: 504 timeout

2020-05-12 Thread Larry Martell
On Tue, May 12, 2020 at 11:33 AM Larry Martell wrote: > > I have a django app using nginx and uwsgi. There can be cases when a > request from a user does not come back from the db for 15-20 minutes. > This is expected as it's calling a stored proc that does a lot and > this is an internal app. Iss

504 timeout

2020-05-12 Thread Larry Martell
I have a django app using nginx and uwsgi. There can be cases when a request from a user does not come back from the db for 15-20 minutes. This is expected as it's calling a stored proc that does a lot and this is an internal app. Issue is that after some amount of time I get a 504 timeout error -

Re: Static files

2020-05-12 Thread Francis Daly
On Mon, May 11, 2020 at 10:24:49AM -0400, MarcoI wrote: Hi there, > I'm trying to figure out how to load static files . What request do you make? What file on your filesystem do you want nginx to return, in response to that request? f -- Francis Dalyfran...@daoine.org

Re: Ngix reverse proxy pass authentication IIS

2020-05-12 Thread Francis Daly
On Mon, May 11, 2020 at 06:36:10PM -0400, evulcu wrote: Hi there, > I'm trying to set up a reverse proxy with NGNIX on a Ubuntu Server. The > upstream server is IIS configured with basic authentication working only as > https since it has a 301 redirection configured on it. what does curl -ik