ok, problem solved... if authorisation is "on" and return 401 triggers, then nginx siply skips all the rest of config (in that location), so to solve the problem @AuthLocation should have lines to handle the reques one more one (one more try_files etc). Same with .php location block.by ver - How to...
Hello, I noticed strange behaviour of nginx, while using combination of tons of ifs, try_files and auth_basic. Generally my configuration should work like this: - serve all static files from specific root - proxy all .php to @apache_backend - proxy all 404 to @apache_backend - use basic_auth IF file with passwrod exists, after successfull auth go back to normal procedures of serving/proby ver - How to...
![]() |
![]() |
![]() |
![]() |
|