blob: 9274fa4d7816c5b9072a391fa899686c78de2f5b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
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
}
}
}
|