version 1.3, 2007/02/26 13:04:34 |
version 1.4, 2007/02/26 13:58:31 |
|
|
# |
# |
# interval 10 |
# interval 10 |
# timeout 200 |
# timeout 200 |
|
# prefork 5 |
|
|
# |
# |
# Each table will be mapped to a pf table. |
# Each table will be mapped to a pf table. |
|
|
|
|
table webhosts |
table webhosts |
backup table fallback |
backup table fallback |
|
} |
|
|
|
# |
|
# Relays and protocols are used for Layer 7 loadbalancing |
|
# |
|
protocol httpssl { |
|
protocol http |
|
append "$REMOTE_ADDR" to "X-Forwarded-For" |
|
append "$SERVER_ADDR:$SERVER_PORT" to "X-Forwarded-By" |
|
change "Connection" to "close" |
|
|
|
# Various TCP performance options |
|
tcp { nodelay, sack, socket buffer 65536, backlog 128 } |
|
|
|
# ssl { no sslv2, sslv3, tlsv1, ciphers HIGH } |
|
# ssl session cache disable |
|
} |
|
|
|
relay wwwssl { |
|
# Run as a SSL accelerator |
|
listen on 192.168.1.1 port 443 ssl |
|
protocol httpssl |
|
|
|
# Forward to hosts in the webhosts table using a src/dst hash |
|
table webhosts loadbalance |
} |
} |