<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div dir="ltr"></div><div dir="ltr">Hi Francis,</div><div dir="ltr"><br></div><div dir="ltr">Got to do rewrites, since otherwise nginx breaks urlencoded query parameters.</div><div dir="ltr"><br></div><div dir="ltr"><div style="display: block;" class=""><div style="-webkit-user-select: all; -webkit-user-drag: element; display: inline-block;" class="apple-rich-link" draggable="true" role="link" data-url="https://stackoverflow.com/questions/28995818/nginx-proxy-pass-and-url-decoding"><a style="border-radius:10px;font-family:-apple-system, Helvetica, Arial, sans-serif;display:block;-webkit-user-select:none;width:228px;user-select:none;-webkit-user-modify:read-only;user-modify:read-only;overflow:hidden;text-decoration:none;" class="lp-rich-link" rel="nofollow" href="https://stackoverflow.com/questions/28995818/nginx-proxy-pass-and-url-decoding" dir="ltr" role="button" draggable="false" width="228"><table style="table-layout:fixed;border-collapse:collapse;width:228px;background-color:#E9E9EB;font-family:-apple-system, Helvetica, Arial, sans-serif;" class="lp-rich-link-emailBaseTable" cellpadding="0" cellspacing="0" border="0" width="228"><tbody><tr><td vertical-align="center" align="center"><img style="width:228px;filter:brightness(0.97);height:228px;" width="228" height="228" draggable="false" class="lp-rich-link-mediaImage" alt="apple-touch-icon@2.png" src="cid:FCCE2626-E9DB-4C3A-9952-1CB4C8224748"></td></tr><tr><td vertical-align="center"><table bgcolor="#E9E9EB" cellpadding="0" cellspacing="0" width="228" style="font-family:-apple-system, Helvetica, Arial, sans-serif;table-layout:fixed;background-color:rgba(233, 233, 235, 1);" class="lp-rich-link-captionBar"><tbody><tr><td style="padding:8px 0px 8px 0px;" class="lp-rich-link-captionBar-textStackItem"><div style="max-width:100%;margin:0px 16px 0px 16px;overflow:hidden;" class="lp-rich-link-captionBar-textStack"><div style="word-wrap:break-word;font-weight:500;font-size:12px;overflow:hidden;text-overflow:ellipsis;text-align:left;" class="lp-rich-link-captionBar-textStack-topCaption-leading"><a rel="nofollow" href="https://stackoverflow.com/questions/28995818/nginx-proxy-pass-and-url-decoding" style="text-decoration: none" draggable="false"><font color="#000000" style="color: rgba(0, 0, 0, 1);">nginx proxy_pass and URL decoding</font></a></div><div style="word-wrap:break-word;font-weight:400;font-size:11px;overflow:hidden;text-overflow:ellipsis;text-align:left;" class="lp-rich-link-captionBar-textStack-bottomCaption-leading"><a rel="nofollow" href="https://stackoverflow.com/questions/28995818/nginx-proxy-pass-and-url-decoding" style="text-decoration: none" draggable="false"><font color="#A2A2A9" style="color: rgba(60, 60, 67, 0.6);">stackoverflow.com</font></a></div></div></td></tr></tbody></table></td></tr></tbody></table></a></div></div><br></div><div dir="ltr"><br></div><div dir="ltr">BR</div><div dir="ltr"><br><blockquote type="cite">Am 10.07.2023 um 01:09 schrieb Francis Daly <francis@daoine.org>:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><span>On Fri, Jun 30, 2023 at 11:29:21AM +0200, Sten Gruener wrote:</span><br><span></span><br><span>Hi there,</span><br><span></span><br><blockquote type="cite"><span>I trying to mix authentication for POST requests with some</span><br></blockquote><blockquote type="cite"><span>rewrite/proxy_pass logic. This mean that password is required only on</span><br></blockquote><blockquote type="cite"><span>POST/PUT requests.</span><br></blockquote><span></span><br><span>This does not answer the question you asked, but is there a reason for</span><br><span>the "rewrite, rewrite, return, proxy_pass" sequence instead of just</span><br><span>using exactly "proxy_pass http://server:8081/;"</span><br><span></span><br><span>It looks like that should do what you want, so bugs in the handling of</span><br><span>more complicated configs would not apply.</span><br><span></span><br><span>Thanks,</span><br><span></span><br><span>    f</span><br><span>-- </span><br><span>Francis Daly        francis@daoine.org</span><br><span>_______________________________________________</span><br><span>nginx mailing list</span><br><span>nginx@nginx.org</span><br><span>https://mailman.nginx.org/mailman/listinfo/nginx</span><br></div></blockquote></body></html>