﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	uname	nginx_version
645	proxy_pass does not  work as expected in if context	Xiaochen Wang		"
With nginx configure as following, if requesting uri '/?test=1', nginx proxy this request to 127.0.0.1:8082, not 127.0.0.1:8083.

{{{
    server {
        listen 80;
        location / {
            if ($arg_test) {
                proxy_pass http://127.0.0.1:8083;
            }
            set $p 8082;
            proxy_pass http://127.0.0.1:$p;
        }
    }
}}}



Another example as following, if requesting uri '/?test=1', nginx proxy this request with ssl enabled, which is not as expected.

{{{
    server {
        listen 80;
        location / {
            if ($arg_test) {
                proxy_pass http://127.0.0.1:8083;
            }
            proxy_pass https://127.0.0.1:8083;
        }
    }
}}}
"	defect	closed	minor		nginx-core	1.7.x	fixed				"nginx version: nginx/1.7.7
built by gcc 4.1.2 20080704 (Red Hat 4.1.2-52)
TLS SNI support enabled
configure arguments: --with-debug --prefix=/path/to/hg-nginx-output --with-http_spdy_module --with-cc-opt=-O0 --with-http_ssl_module --with-openssl=/path/to/openssl-1.0.1h"
