Welcome! Log In Create A New Profile


Allow directive with variables

Anonymous User
December 31, 2012 07:51PM
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?

Allow directive with variables

Anonymous UserDecember 31, 2012 07:51PM

Re: Allow directive with variables

Maxim DouninJanuary 01, 2013 04:32PM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 67
Record Number of Users: 5 on February 19, 2015
Record Number of Guests: 160 on March 02, 2015
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready