V
V
Vladislav Skillz2016-05-16 23:12:57
Apache HTTP Server
Vladislav Skillz, 2016-05-16 23:12:57

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>

Here is htases and htpas from pv folder
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.
PS: It worked on the site . I put in a
password, I did everything as it was before ..
The login and password window pops up, I enter and:
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 answer(s)
L
littleguga, 2016-05-16
@vlskillz

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 question

Ask a Question

731 491 924 answers to any question