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' -

Making Empty C++ Project: General exception (Exception from HRESULT:0x80131500) Visual Studio Community 2015 -

How to fix java warning for "The value of the local variable is not used " -