Welcome! Log In Create A New Profile

Advanced

how to take directory access control with nginx conf

Posted by waisir 
how to take directory access control with nginx conf
September 10, 2013 09:36AM
hi, i'm using linux. there are some domains there, such as the follow:
/home/wwwroot/aaa.com
/home/wwwroot/bbb.com
/home/wwwroot/ccc.com

FILE1: /home/wwwroot/aaa.com/get.php
FILE2:/home/wwwroot/bbb.com/config.php
in FILE1, I wrote:
<?php
$data = file_get_contents('/home/wwwroot/bbb.com/config.php');
echo $data; //i can get the data.
?>
I think is unsafe. could you please tell me how to config with nignx config that the domain only allow to acces its directory.?



Edited 1 time(s). Last edit at 09/10/2013 09:38AM by waisir.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 169
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready