Welcome! Log In Create A New Profile

Advanced

Unable to use a GET url-param

Ajay Garg
April 14, 2017 09:14AM
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
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Unable to use a GET url-param

Ajay Garg April 14, 2017 09:14AM

Re: Unable to use a GET url-param

Francis Daly April 15, 2017 04:26AM

Re: Unable to use a GET url-param

Ajay Garg April 15, 2017 05:18AM

Re: Unable to use a GET url-param

Francis Daly April 15, 2017 11:22AM

Re: Unable to use a GET url-param

Ajay Garg April 16, 2017 12:20AM

Re: Unable to use a GET url-param

Ajay Garg April 17, 2017 01:50AM

Re: Unable to use a GET url-param

Francis Daly April 17, 2017 04:06AM

Re: Unable to use a GET url-param

Francis Daly April 17, 2017 04:04AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 69
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready