4 ms·
You could also do that, by structuring it like this: @first <whatever matcher> handle @first { do_something } @second <whatever matche
by francislavoie 5y ago
You could also do that, by structuring it like this:
@first <whatever matcher>
handle @first {
do_something
}
@second <whatever matcher>
handle @second {
do_something_else
}
handle {
error "Unauthorized" 403
}
Which is basically an if/else-if/else structure.
I'm not totally sure I follow how you'd like for it to be structured. Could you give a config example? I think one of the issues is `basicauth` needs to write a response header to work correctly (i.e. WWW-Authenticate to tell the browser to prompt) so it can't only act as a matcher.