Location allow ip not working in nginx -


i trying set location allow/deny in nginx conf , while deny seems work, allow not. set seen below:

location ~ /diagnostics/ {     allow 1.2.3.4/22;     deny all;     return 403; } 

the 1.2.3.4/22 our office's nat'd public ip, outbound traffic should show originating from. deny works, little well. requests coming inside our network 403'ing.

is syntax not correct? missing something?

this nginx proxy sits in front of 2 boxes running wordpress.


Comments

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - VueJS2 and the Window Object - how to use? -