Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i can't figure out how apply deny access to a directory. Here is my config:

<VirtualHost x.x.x.x:80> 
DocumentRoot /var/www/html/wwwhtml 
ErrorLog /var/log/httpd/mydomain_error.log 
TransferLog /var/log/httpd/mydomain_access_log

Alias /test /var/www/html/wwwhtml/eventum  
<Directory /var/www/html/wwwhtml/eventum>
        Order deny,allow
        Deny from all
        #Allow from 192.168.0  

I deny access to /test but it doesn't work, on my another server it works perfectly :/ Do you know what can cause that problem? How to solve it? It is not whole config but the most important part. Maybe file rewrites can cause it?

Thanks in advance.

share|improve this question
up vote 0 down vote accepted

This might seem a bit obvious, but you did remember to restart Apache right?

share|improve this answer
Yep, it's pretty obvious :] – skomak Apr 26 '10 at 14:38
There was <Location> directive with allow grant, what induce overwritting... Solved – skomak Jul 28 '10 at 8:32

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.