nginx directory ip restriction not working
Add root
and index
to the location ^~ /9ZXyNSDVTM7yExN/
. The allow/deny works, it just doesn't know what to show.
And be careful with the matching order. Check if by any chance requesting /9ZXyNSDVTM7yExN/index.php
doesn't fall into the \.php$
location that doesn't have allow/deny.
Hope it helps.
The problem is that you don't have a "root" declared within the location block. Just declare the same root as in "/" and it should work