I am trying to use a variable with the `allow` directive, i.e.
set $home_ip 1.2.3.4;
location ^~ /apc/ {
# Allow home
allow $home_ip;
deny all;
include /etc/nginx/php.conf;
}
But I am getting an error. Does the `allow` directive allow variables?
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,234600,234600#msg-234600