Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow parameter just support 127.0.0.1? #16

Open
RogerPu opened this issue Sep 27, 2016 · 1 comment
Open

allow parameter just support 127.0.0.1? #16

RogerPu opened this issue Sep 27, 2016 · 1 comment

Comments

@RogerPu
Copy link

RogerPu commented Sep 27, 2016

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
Copy link
Owner

l0.21.250.192

It looks like you input not 1 but l.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants