I was following official Red Hat Training material and came across this issue:
Created a file named .htaccess in www.fastserver.com document root with teh following contents:
AuthName "restricted stuff"
2. Created a domain passwd file:
htpasswd -mc /etc/httpd/conf/www.fastserver.com/www.htpasswd tux
chgrp apache /etc/httpd/conf/www.htpasswd
chmod g+r /etc/httpd/conf/www.htpasswd
Next Step was setting SELINUX context of the new virtual tree so that SELINUX will permit webserver to access it:
[firstname.lastname@example.org ~]# chcon -R - reference=/var/www/html /var/www/virtual
chcon: can't apply partial context to unlabeled file /var/www/virtual
Whats this error all about?
Even the htmlview http://www.fastserver.com
If I type http://fastserver.com
it displays test page.
On Checking logs it says:
[Fri Apr 24 09:42:57 2009] [error] [client 10.14.236.95] Directory index forbidden by rule: /var/www/html/