Apache2, can't apply Directory access
Posted
by skomak
on Server Fault
See other posts from Server Fault
or by skomak
Published on 2010-04-23T09:17:47Z
Indexed on
2010/04/23
9:24 UTC
Read the original article
Hit count: 275
apache-config
Hi, 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 [email protected]
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.
© Server Fault or respective owner