Answer the question
In order to leave comments, you need to log in
Why doesn't .htaccess & .htpasswd work?
Made authorization for the file
<Files admin.php>
AuthName "Need authorization"
AuthType Basic
AuthUserFile /web/тутдомен/public_html/pw/.htpasswd
require valid-user
</Files>
AuthName "Need authorization"
AuthType Basic
AuthUserFile /web/домен/public_html/pw/.htpasswd
require valid-user
<Files *.css>
Satisfy Any
Order Deny,Allow
Allow from All
</Files>
<Files *.js>
Satisfy Any
Order Deny,Allow
Allow from All
</Files>
coga:$apr1$BL5luAsI$LjpDxDQY8lF44Whv/TDwF.
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at [email protected]тутдомен 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.
Answer the question
In order to leave comments, you need to log in
1. Show logs.
2. Switch to nginx :)
3. Try:
Require with a capital letter
4. Are you sure the path to the file is correct?
5. Keeping the password in the public folder is not a good idea, but it's a tip.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question