I
I
Ivan2021-09-17 13:22:09
htaccess
Ivan, 2021-09-17 13:22:09

Laravel why is htpasswd not working?

There is a site on Laravel, it is on the server.

My .htaccess file

AuthType Basic
AuthName "Thats protected Area!"
AuthUserFile /var/www/*serverdomen*/data/www/*serverdomen*/public/.htpasswd
Require valid-user

My .htpasswd file
test:$apr1$ZaeC6WdW$TuBye0r33J5/OWTyMDvYX/
Absolutely nothing happens. There are no errors, nothing. Just the site loads as usual and that's it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Boris Syomov, 2021-09-17
@youmixx

You may not have an apache web server, and there is no one to simply process .htaccess, or .htaccess processing is not allowed in the apache config ( https://httpd.apache.org/docs/2.4/mod/core.html#al... )

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question