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
Post a Comment