Reverse Proxy Configuration
skruger edited this page Aug 3, 2011
·
3 revisions
{log_level, 3}.
{listeners,[
{listen_plain,{ip,"0.0.0.0"},80,
[{protocol,http},
{pool,webservers},
{pool_retries,3},
{stream_filters,[filter_headers]},
{filter_headers,[xforwardfor]}
]},
{listen_ssl,{ip,"0.0.0.0"},443,
[{protocol,http},
{keyfile,"/etc/pki/tls/private/hostname.key"},
{certfile,"/etc/pki/tls/certs/hostname.crt"},
{pool,webservers},
{pool_retries,3},
{backend_port,80},
{stream_filters,[filter_headers]},
{filter_headers,[xforwardfor,{add,"X-SSL-Terminated: Yes"}]}
]}
]}.
{modules,[
{mod_balance,[
{webservers,balance_round_robin,
[{hosts,
[{192,168,1,81},
{192,168,1,82},
{192,168,1,83},
{192,168,1,84},
{192,168,1,85}
]},
{checks,
[{healthcheck_tcp,[{port,80}]}
]}
]}
]}
]}.
Backend ports are determined by the pool member's listen port if specified then the backend_port option if included. If no other port is specified then the listener's listen port is used.
See Forward Proxy Configuration for additional ListnerConfig options.