Sto tentando di proteggere un file tramite htaccess e htpasswd, ma viene sempre Error 500

il file htaccess
codice:
AuthName "Titolo della finestra del login"
AuthType "Basic"
AuthUserFile "http://localhost/corso/.htpasswd"
Require valid-user	 
<Files ~ "http://localhost/corso/htaccess.html">
Require user studente
</Files>
il file htpassword
codice:
luca:luca
Perchè