Quantcast
Channel: Forum Pasja Informatyki - Najnowsze pytania bez odpowiedzi
Viewing all articles
Browse latest Browse all 21942

Problem z htpasswd

$
0
0
Witam, mam problem z zablokowaniem dostępu do katalogu - a w sumie to bardziej z dostępem :p

Stworzyłem .htaccess który ma zapisane:

AuthType Basic
AuthName "Password Protected Area"
AuthUserFile /path/.htpasswd
Require valid-user

i .htpasswd z wygenerowanym loginem i hasłem (admin admin).

Po wrzuceniu na plików zrestartowałem serwer. Po wejściu na stronę i wpisaniu loginu i hasła wyskakuje mi komunikat:
"

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at [no address given] to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log."

Jak to naprawić, co może być nie tak?
dodam, że w etc/apache2/sites-available w pliku 000-default.conf dopisałem
"<Directory "/var/www">
AllowOverride All
</Directory>"

Bo myślałem, że to jest przyczyna problemu.

Viewing all articles
Browse latest Browse all 21942