proxy_bind

vegetax nginx-forum at forum.nginx.org
Tue Jan 17 22:24:43 UTC 2017


Hi, I am getting "invalid number of arguments"  every time I add  proxy_bind
$remote_addr transparent to my configs below can someone help and let me
know what I am missing. Thx


stream {
    upstream splunk_backend {
        server 10.10.10.31:514;
        server 10.10.10.32:514;
}

    server {
        listen 10.10.10.43:514;
        proxy_bind $remote_addr transparent;
        listen 514 udp;
        proxy_connect_timeout 60s;
        proxy_timeout 5m;
        proxy_pass splunk_backend;
        proxy_buffer_size 2048k;
        proxy_next_upstream_timeout 0;
        error_log  /var/log/nginx/splunk.log info;

    }


nginx -t
nginx: [emerg] invalid number of arguments in "proxy_bind" directive in
/etc/nginx/nginx.conf:47
nginx: configuration file /etc/nginx/nginx.conf test failed

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



More information about the nginx mailing list