I have RHEL 4 update 6 running on HP Proliant Server.I am in verse to setup Apache for Accessing my Webpage which has number of Files.
Now these files have been placed under /var/www/html/ebook directory.
I have removed commented lines under <VirtualHost *:80> with ServerName and Document Root ( /var/www/html).
Now I restarted the httpd service and all went fine.
Now I want specific users like roger and alice to access particular directory.
I created .htaccess directory under /var/www/html/ebook as:
AuthName "restrcited webpage"
#Anonymous roger alice
I too created htpasswd as :
htpasswd -cm .htpasswd roger
htpasswd -m .htpasswd alice
Now I restarted the httpd service.
But It simply throws me to the page without asking for username and passwd.
Am i doing anything wrong?