<div dir="ltr"><div>Hi All.<br><br>When I do the following call ::<br><br>                            <a href="https://username:password@1.2.3.4?upstream_protocol=http">https://username:password@1.2.3.4?upstream_protocol=http</a><br><br></div><div>I get a 500 error (on the browser-client), with the following seen in /var/log/nginx/error.log (on nginx-server)<br><br>######################################################<br>2017/04/14
 13:03:51 [error] 16039#16039: *1 invalid URL prefix in 
"://<a href="http://127.0.0.1:5000">127.0.0.1:5000</a>", client: 182.69.5.226, server: , request: "GET 
/cgi-bin/webproc HTTP/1.1", host: "1.2.3.4", referrer: 
"<a href="https://1.2.3.4/?upstream_protocol=http">https://1.2.3.4/?upstream_protocol=http</a>"<br clear="all">######################################################<br></div><div><br></div><div><br></div><div>Following is the server-block section in /etc/nginx/conf.d/default.conf<br></div><div><br>######################################################<br>server {<br><br>                listen 443 ssl;<br><br>                ssl_certificate /etc/nginx/ssl/nginx.crt;<br>                ssl_certificate_key /etc/nginx/ssl/nginx.key;<br><br>                location / {<br><br>                        auth_basic 'Restricted';<br>                        auth_basic_user_file /etc/nginx/ssl/.htpasswd;<br><br>                        proxy_pass $arg_upstream_protocol://127.0.0.1:$forwarded_port;<br>                }<br>        }<br>######################################################<br><br>It definitely looks that "upstream_protocol" parameter is not being picked up by $arg_upstream_protocol.<br><br></div><div>What am I missing?<br></div><div>Will be grateful for pointers.<br><br><br></div><div>Thanks and Regards,<br></div><div>Ajay<br></div></div>