M
M
Maxim Vyaznikov2019-11-30 20:27:04
Apache HTTP Server
Maxim Vyaznikov, 2019-11-30 20:27:04

Why doesn't auth basic work on files in a directory?

Added
AuthType Basic
AuthName "Login"
AuthUserFile /path/to/.htpasswd
Require valid-user
to .htaccess I go to site.ru/dir - authorization is issued, I go to /dir/file.any_extension - authorization is not issued. I noticed it literally by accident, but it's good that I noticed at least.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SagePtr, 2019-11-30
@rv9ufz

Wangu that Apache is preceded by nginx, which is configured to distribute static files, bypassing Apache

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question