HI everybody (Sorry for my bad english)
I'm trying to migrate to ninx for a university project (until now I have used apache).
I need to set some permission on a directory, the main page must be allow all:
location / {
root /var/www/html;
index index.php index.htm index.html;
allow all;
}
But, all files in the directory drj must be allow only to a specific domain name. I have 2 problem:
1) Is it possible to specify a domain name after the key words 'allow' and 'deny'?
2) How can I set the permission for a directory and all his content? I tryed in this way without results:
location = /drj/.* {
allow 127.0.0.1;
deny all;
}
THanks in advance
Franco