Typically I’d use handle
blocks to group things up, if you need to do anything any more complicated:
:80 {
@isInFirst file {
root /static1
}
handle @isInFirst {
root * /static1
file_server
}
@isInSecond file {
root /static2
}
handle @isInSecond {
root * /static2
file_server
}
handle {
# Fallback if neither of the first two matched
}
}
Some additional reading:
2 Likes