http - Basic authentication option in apache web server is not working? -


i tried configure basic authentication website locally .but not applied site .

my httpd.conf

<virtualhost 192.168.2.5:80>  documentroot /var/www/html/black-socks  servername www.black-socks.com     <directory "/var/www/html/black-socks">         order deny,allow             allow             authtype basic             authname blacksocks-login             authuserfile "/etc/httpd/conf/blacksocks-users"             require validuser     </directory> 

authuserfile  

is exist @ /etc/httpd/conf/blacksocks-users" , site html pages exist @ /etc/httpd/conf/blacksocks-users location. fine while accessing site not asking authorization

<virtualhost 192.168.2.5:80>  documentroot /var/www/html/black-socks  servername www.black-socks.com      <directory "/var/www/html/black-socks">              allow ram             authtype basic             authname blacksocks-login             authuserfile "/etc/httpd/conf/myusers"             require validuser     </directory> 

its working asking user name , password after showing homepage


Comments

Popular posts from this blog

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -