htaccess problem(permitting web files)
Hi,
I want to specifically control my web server's file and directories. For example a user should reach a file but another user shouldnt. For this reason I am trying to implement ".htaccess" to ubuntu. But its not working.
Firstly .htaccess is enable from "apache.conf" file.
-------------------------------
AccessFileName .htaccess
-------------------------------
Then I create a .htaccess file in "/var/www/" directory. I wrote the below in .htaccess file;
--------------------------------
<Files default.php>
Order allow,deny
Deny from all
</Files>
--------------------------------
But all users still reach this file. I tryed lots of combinations but still doesnt work. I think "allowoverride" is should use somethings in but I dont know in which file or directory?
Basically how can I do that?
Thanks.
|