Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 
ServerName mydomain.com 
ServerAdmin it@mydomain.com 
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  
</Directory>

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

1 Answer 1

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

 
discard

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.