Unable to use a GET url-param
Ajay Garg
ajaygargnsit at gmail.com
Fri Apr 14 13:12:22 UTC 2017
Hi All.
When I do the following call ::
https://username:password@1.2.3.4?upstream_protocol=http
I get a 500 error (on the browser-client), with the following seen in
/var/log/nginx/error.log (on nginx-server)
######################################################
2017/04/14 13:03:51 [error] 16039#16039: *1 invalid URL prefix in "://
127.0.0.1:5000", client: 182.69.5.226, server: , request: "GET
/cgi-bin/webproc HTTP/1.1", host: "1.2.3.4", referrer: "
https://1.2.3.4/?upstream_protocol=http"
######################################################
Following is the server-block section in /etc/nginx/conf.d/default.conf
######################################################
server {
listen 443 ssl;
ssl_certificate /etc/nginx/ssl/nginx.crt;
ssl_certificate_key /etc/nginx/ssl/nginx.key;
location / {
auth_basic 'Restricted';
auth_basic_user_file /etc/nginx/ssl/.htpasswd;
proxy_pass $arg_upstream_protocol://127.0.0.1:
$forwarded_port;
}
}
######################################################
It definitely looks that "upstream_protocol" parameter is not being picked
up by $arg_upstream_protocol.
What am I missing?
Will be grateful for pointers.
Thanks and Regards,
Ajay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20170414/7dca5a2b/attachment.html>
More information about the nginx
mailing list