server http { host = "127.0.0.1" port = 8000 proxy a { from { host = "a.localhost:8000" } to { host = "127.0.0.1" port = 8001 } } proxy b { from { path = "/b/" } to { host = "127.0.0.1" port = 8002 } auth basic { realm = "basic auth b" credential_file = "example.htpasswd" # user: nsfisis # password: password } } proxy c { from { host = "c.localhost:8000" path = "/c/" } to { host = "127.0.0.1" port = 8003 } } }