cubicdaiya / ngx_dynamic_upstream

Dynamic upstream for nginx
Other
501 stars 108 forks source link

allow parameter just support 127.0.0.1? #16

Open RogerPu opened 8 years ago

RogerPu commented 8 years ago

when i was trying to add anothe private ip address like this, location /dynamic { allow 127.0.0.1; allow 10.21.250.192; deny all; dynamic_upstream; }

it appears happen some error,

roger@roger-pc:~/project/openresty-1.11.2.1$ sudo /usr/local/openresty/nginx/sbin/nginx -c /home/roger/project/nginx.conf -t nginx: [emerg] invalid parameter "l0.21.250.192" in /home/roger/project/nginx.conf.:26 nginx: configuration file /home/roger/project/nginx.conf test failed

cubicdaiya commented 8 years ago

l0.21.250.192

It looks like you input not 1 but l.