Welcome!
Log In
Create A New Profile
Home
>
Mailing Lists
>
Nginx Mailing List - English
> Topic
Advanced
Allow directive with variables
Previous Message
Next Message
Forum List
Message List
New Topic
Print View
justin
December 31, 2012 07:51PM
Registered: 1 year ago
Posts: 64
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?
Reply
Quote
RSS
Subject
Author
Posted
Allow directive with variables
justin
December 31, 2012 07:51PM
Re: Allow directive with variables
Maxim Dounin
January 01, 2013 04:32PM
Sorry, only registered users may post in this forum.
Click here to login
Online Users
Guests: 95
Record Number of Users: 5 on May 17, 2013
Record Number of Guests: 138 on May 16, 2013