Allow directive with variables

justin nginx-forum at
Tue Jan 1 00:51:21 UTC 2013

I am trying to use a variable with the `allow` directive, i.e.

    set $home_ip;

    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:,234600,234600#msg-234600

More information about the nginx mailing list