I have added the Directory directive to my httpd.conf file
Code:
<Directory "/var/www/html/privatefiles">
Order allow,deny
Allow from virtual1.example.com
</Directory>
My pc hostname is virtual1.example.com and according to this only virtual1.example.com must access that directory, but when I try to visit the path
http://virtual1.example.com/privatefiles , it says
"You don't have permission to access /privatefiles
However, when I use
Code:
<Directory "/var/www/html/privatefiles">
Order allow,deny
Allow from virtual1.example.com 172.24.0.2
</Directory>
I can access the directory.