proxy_bind doesn't work outside location

mojiz nginx-forum at nginx.us
Sun Dec 25 08:16:25 UTC 2011


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

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,220457,220457#msg-220457



More information about the nginx mailing list