gistfile1.txt
· 675 B · Text
Raw
user daemon
pidfile /tmp/sniproxy.pid
error_log {
syslog daemon
priority notice
}
listener 127.0.0.1:443 {
protocol tls
table TableName
# Specify a server to use if the initial client request doesn't contain
# a hostname
fallback 192.0.2.5:443
}
table TableName {
# Match exact request hostnames
example.com 192.0.2.10:4343
# If port is not specified the listener port will be used
example.net [2001:DB8::1:10]
# Or use regular expression to match
.*\\.com [2001:DB8::1:11]:443
# Combining regular expression and wildcard will resolve the hostname
# client requested and proxy to it
.*\\.edu *:443
}
1 | user daemon |
2 | |
3 | pidfile /tmp/sniproxy.pid |
4 | |
5 | error_log { |
6 | syslog daemon |
7 | priority notice |
8 | } |
9 | |
10 | listener 127.0.0.1:443 { |
11 | protocol tls |
12 | table TableName |
13 | |
14 | # Specify a server to use if the initial client request doesn't contain |
15 | # a hostname |
16 | fallback 192.0.2.5:443 |
17 | } |
18 | |
19 | table TableName { |
20 | # Match exact request hostnames |
21 | example.com 192.0.2.10:4343 |
22 | # If port is not specified the listener port will be used |
23 | example.net [2001:DB8::1:10] |
24 | # Or use regular expression to match |
25 | .*\\.com [2001:DB8::1:11]:443 |
26 | # Combining regular expression and wildcard will resolve the hostname |
27 | # client requested and proxy to it |
28 | .*\\.edu *:443 |
29 | } |
30 |