Hi! I want to protect the admin panel login for cms opencart (located in /admin/).
I created .htpasswd in the /admin/ directory and made these settings for the template:
But when I go to the domain/admin link and log in, I just download the file config.php and I can’t log in to the opencart admin panel. I only use nginx without apache. What did I do wrong?)
I saw similar settings for Apache on the forum, but I only use Nginx and specifically noted this. I tried to specify the full path, the result was the same.