I'm setting up basic http authentication for my subdomain dev Laravel site with
First, I created my .htpasswd user and password by command
htpasswd -bc .htpasswd admin passadmin.
Then, my htaccess file with some basic configurations.
I placed my .htaccess file on my project directory
.htpasswd file in
Also in my apache configuration file, I have
AuthType Basic AuthName "Site Administratrion" AuthBasicProvider file AuthUserFile "/home/user/htpasswd/.htpasswd" Require user admin
After all those configurations, I cleared my cache and tested. At first asks normally for credentials, the login page of my site loads but after i login asks again for htpasswd credentials and throws an ERROR 401 Unauthorized.
This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.
By the way, I don't have apache logs on this problem.
Is it Laravel/React related? I need aditional configurations? I think i've tried almost anything.