On Fri, Nov 08, 2019 at 11:24:55PM +0000, Linda Lapinlampi wrote:
> ```
> server "foo.example" {
> listen on * port 80
> location "/foo/bar/*" {
> authenticate with "conf/foo.htpasswd"
> block return 410
> }
> location "/foo/*" {
> authenticate with "conf/foo.htpasswd"
> directory auto index
> }
> }
> ```
For clarification, my intentions could've been clarified as such:
```
location "/foo/bar/*" {
authenticate with "conf/foobar.htpasswd"
block return 410
}
location "/foo/*" {
authenticate with "conf/foo.htpasswd"
directory auto index
}
```
where foo.htpasswd has only my access, and foobar.htpasswd has both my
and user `bar`'s access (so that `bar` doesn't have access to `/foo/`
directory autoindex).
> lucas@ contributed comments and acknowledged my issue (while questioning
> the usefulness of auth success -> block use case).
Lucas <[email protected]>, for clarification for marc.info readers.