Welcome! Log In Create A New Profile

Advanced

Problems with access_module

Posted by franco_il_tiratore 
Problems with access_module
August 17, 2009 05:05AM
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
Re: Problems with access_module
August 23, 2009 06:58AM
Hi,

I don't have any experience with the things you want to achieve, but I have a handy link for you where you might find all answers: https://calomel.org/nginx.html

Kindest regards

--------------------------------------------------------------------------------
//richard.fussenegger.info
//movlib.org
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 210
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready