Welcome! Log In Create A New Profile

Advanced

proxy_bind doesn't work outside location

December 25, 2011 03:16AM
Hi

I don't know if this is appropriate place or not but there is a bug with proxy_bind, the directive has to be inside a location to work. I'm sure this wasn't true for early versions.
so this won't work:
proxy_bind 1.7.2.109;
location /test {
.
.
.
proxy_pass ...;
}

while this does

location /test {
.
.
.
proxy_bind 1.7.2.109;
proxy_pass ...;
}


nginx version: nginx/1.1.8
TLS SNI support enabled
configure arguments: --prefix=/etc/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-client-body-temp
-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-log-path=/var/log/nginx/access.log --http-proxy-temp-path=/
var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --lock-path=/var/lock/nginx.lock -
-pid-path=/var/run/nginx.pid --with-debug --with-http_addition_module --with-http_dav_module --with-http_geoip_module --with-http_gzip_stati
c_module --with-http_image_filter_module --with-http_realip_module --with-http_stub_status_module --with-http_ssl_module --with-http_sub_mod
ule --with-http_xslt_module --with-ipv6 --with-sha1=/usr/include/openssl --with-md5=/usr/include/openssl --with-mail --with-mail_ssl_module
--add-module=/root/nginx/nginx-1.1.8/debian/modules/nginx-echo --add-module=/root/nginx/nginx-1.1.8/debian/modules/nginx-upstream-fair

Thanks
Subject Author Posted

proxy_bind doesn't work outside location

mojiz December 25, 2011 03:16AM

Re: proxy_bind doesn't work outside location

Maxim Dounin December 25, 2011 06:50AM

Re: proxy_bind doesn't work outside location

deltay December 25, 2011 09:10PM

Re: proxy_bind doesn't work outside location

Maxim Dounin December 26, 2011 05:38AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 59
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