edited for clarification, because all answers/comments where talking about other things then the topic until now
I verified that my apache.conf (Ubuntu) says, that it looks for .htaccess
and that it allows .htaccess
to override everything:
#...
AccessFileName .htaccess
#...
<Directory /var/www>
AllowOverride All
Options FollowSymlinks
</Directory>
Then I put the following .htaccess
(with rights 755) into my /var/www
:
order allow, deny
deny from all
Then I restarted my server as root
to make sure the config is loaded again and no fileaccess rights can harm my experiment: sudo apache2ctl restart
The result is that he still opens the folder as if there would be no .htaccess
.
What could be wrong? What else can I check to make sure that it works properly?
edit: I also checked if writing garbage creates an error message and it doesn't!
root
and verified that symlinks work appropriately, there should be no problem in this direction.