This is my Caddyfile
:
localhost:1234 {
root /www
index index.html
}
localhost:1235 {
root /www/a
index index.html
}
localhost:1236 {
root /www/b
index index.html
}
:2019 {
proxy / localhost:1234 {
except /a /b
}
proxy /a localhost:1235
proxy /b localhost:1236
}
the external leak port is 2019, then I want to got this:
// ===>>> means proxy to
localhost:2019 ===>>> localhost:1234
localhost:2019/a ===>>> localhost:1235
localhost:2019/b ===>>> localhost:1236
I tried a lot of methods, it doesn’t work, please help me.