connect-to.d 1023 B

1234567891011121314151617181920212223
  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. Category: connection
  7. Example: --connect-to example.com:443:example.net:8443 $URL
  8. ---
  9. For a request to the given HOST1:PORT1 pair, connect to HOST2:PORT2 instead.
  10. This option is suitable to direct requests at a specific server, e.g. at a
  11. specific cluster node in a cluster of servers. This option is only used to
  12. establish the network connection. It does NOT affect the hostname/port that is
  13. used for TLS/SSL (e.g. SNI, certificate verification) or for the application
  14. protocols. "HOST1" and "PORT1" may be the empty string, meaning "any
  15. host/port". "HOST2" and "PORT2" may also be the empty string, meaning "use the
  16. request's original host/port".
  17. A "host" specified to this option is compared as a string, so it needs to
  18. match the name used in request URL. It can be either numerical such as
  19. "127.0.0.1" or the full host name such as "example.org".
  20. This option can be used many times to add many connect rules.