I'm working this proj. on localhost and my localhost path is : I:\xampp\htdocs\my_proj I'm add this code in .htaccess file AuthName “Restricted Area” AuthType Basic AuthUserFile /my_proj/.htpasswd AuthGroupFile /dev/null require valid-user and add this code in .htpasswd file admin:$apr1$gs0j3ctm$NICQOA7ANxOajPQcRVZA3. when i run my site on localhost then show login popup but after login show error : //Server error! //The server encountered an internal error and was unable to complete your request. Either //the server is overloaded or there was an error in a CGI script. //If you think this is a server error, please contact the . //Error 500 please help me.................
Try this: AuthName “Restricted Area” AuthType Basic AuthUserFile I:/xampp/htdocs/my_proj/.htpasswd require valid-user Code (markup): without AuthGroupFile
Hi there, This is because you need to specify the full path on the disk for AuthUserFile, so for example if you have I:/xampp/htdocs/my_proj/ then you will have : AuthType Basic AuthName "Restricted Area" AuthUserFile I:/xampp/htdocs/my_proj/.htpasswd Require valid-user Code (markup):