I am trying to use the Location directive to display the user window / password when that directive is not met.
When the path is not:
- / elastic / bundles /...
- / elastic / ui /...
- / elastic / api /...
- / elastic / plugins /...
- / elastic / app /...
the window should be displayed. My Location settings:
<Location ~ "!((/elastic/bundles/)|(/elastic/ui/)|(/elastic/api/)|(/elastic/plugins/)|(/elastic/app/))>
AuthUserFile /passwordPath
AuthName "auth_name"
AuthType Basic
require valid-user
</Location>
But when I access a path that is not one of those described above, the prompt is not displayed. Any ideas? Thanks