Tuesday, August 9, 2016

apache 2.2 - Apache2, can't apply Directory access




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



 
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

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.


Answer



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


No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...