Allow directive with variables

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


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



More information about the nginx mailing list