connect-to.d 942 B

123456789101112131415161718192021
  1. Long: connect-to
  2. Arg: <HOST1:PORT1:HOST2:PORT2>
  3. Help: Connect to host
  4. Added: 7.49.0
  5. See-also: resolve header
  6. ---
  7. For a request to the given HOST1:PORT1 pair, connect to HOST2:PORT2 instead.
  8. This option is suitable to direct requests at a specific server, e.g. at a
  9. specific cluster node in a cluster of servers. This option is only used to
  10. establish the network connection. It does NOT affect the hostname/port that is
  11. used for TLS/SSL (e.g. SNI, certificate verification) or for the application
  12. protocols. "HOST1" and "PORT1" may be the empty string, meaning "any
  13. host/port". "HOST2" and "PORT2" may also be the empty string, meaning "use the
  14. request's original host/port".
  15. A "host" specified to this option is compared as a string, so it needs to
  16. match the name used in request URL. It can be either numerical such as
  17. "127.0.0.1" or the full host name such as "example.org".
  18. This option can be used many times to add many connect rules.