<div dir="ltr"><div>Hello,</div><div><br></div><div>I have this configuration:</div><div><br></div><div> - a docker with nginx </div><div> - an apache2 server with kerberos authentication configured.</div><div><br></div><div>nginx is the main http server (everyone in internet navigate into it). When the user clicks on the "LOGIN" from the website, nginx should use the apache2 as authentication since it connects to our Active Directory for kerberos.</div><div><br></div><div>I have tried to use the auth_request directive, but the problem is that when it goes to apache2, the dialog box requesting user/password never pop ups and so it returns to nginix with 403 not authorized error.<br></div><div><br></div><div>(If I go directly to apache2 server, it popus the dialog box and I can succeed with the authentication).</div><div><br></div><div>Nginx configuration is as follows:</div><div><br></div><div> location /login2/ {<br> auth_request /auth;<br> }</div><div><br></div><div> location = /auth {<br> internal;<br> proxy_pass <a href="http://apache2server/">http://apache2server/</a>;<br> proxy_pass_request_body off;<br></div><div> }<br></div><div><br></div><div><br></div><div>What am I missing?<br></div></div>
<br>
<br><hr><div dir="ltr" style="margin-left:0pt"><table style="border:none;border-collapse:collapse"><colgroup><col width="122"><col width="478"></colgroup><tbody><tr style="height:0pt"><td style="vertical-align:middle;padding:5pt 5pt 5pt 5pt"><p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre;white-space:pre-wrap"><img src="https://lh6.googleusercontent.com/tLaB-Ky-Psfgf-0zr7RusPnEN13z3YySbOJJi6IwAseUrq8j66KB9GF93lLWDI2t6GBY6lcJHtGd0RR3xqpXkNXSK9eTo7AroFyNwAS7hEPNxhr7A_Dru7USg6lGpeGv_HJJCcXx" style="border:none" width="106" height="48"></span></p></td><td style="vertical-align:middle;padding:5pt 5pt 5pt 5pt"><p dir="ltr" style="line-height:1.2;background-color:#ffffff;margin-top:0pt;margin-bottom:0pt"><span style="font-size:10pt;font-family:Arial;color:#444444;background-color:transparent;font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre;white-space:pre-wrap">Comune di Trento </span></p><p dir="ltr" style="line-height:1.2;background-color:#ffffff;margin-top:0pt;margin-bottom:0pt;padding:3pt 0pt 0pt 0pt"><span style="font-size:10pt;font-family:Arial;color:#434343;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre;white-space:pre-wrap">via Belenzani, 19 - 38122 Trento | C.F e P. IVA: 00355870221</span></p><p dir="ltr" style="line-height:1.2;background-color:#ffffff;margin-top:0pt;margin-bottom:0pt"><span style="font-size:10pt;font-family:Arial;color:#434343;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre;white-space:pre-wrap">tel. +39 0461.884111 | </span><a href="http://www.comune.trento.it" style="text-decoration:none" target="_blank"><span style="font-size:10pt;font-family:Arial;color:#1155cc;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:underline;vertical-align:baseline;white-space:pre;white-space:pre-wrap">www.comune.trento.it</span></a><span style="font-size:10pt;font-family:Arial;color:#434343;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre;white-space:pre-wrap"> </span></p></td></tr></tbody></table></div><span></span>