Re: custom 502 error for stacked proxies

2019-05-03 Thread Paul B. Henson
On Fri, May 03, 2019 at 01:47:40PM +0300, Sergey Kandaurov wrote: > you may want to try recursive error pages in location / {} > with error_page 502 in @server_b. Sweet, that did indeed do the trick. Thank you very much for the suggestion. ___ nginx ma

NGNIX reverse Proxy with Kerberos auth

2019-05-03 Thread blackout
Hi, is it possible to make with NGINX a reverse proxy with kerberos auth? NGINX should do all the authentication stuff, so the user don“t talk directly with the kerberos server. The goal is: - the user connect to webmail.example.com - a authentication Windows pops up - the user types the login in

Re: custom 502 error for stacked proxies

2019-05-03 Thread Sergey Kandaurov
> On 3 May 2019, at 03:52, Paul B. Henson wrote: > > So, I've got a need for a reverse proxy where first it tries server A; > if it gets a 404 from server A it should try server B, and then just > return whatever happens with server B. > > I've got this config so far: > > location /_nginx_/