<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://tech.uvoo.io/index.php?action=history&amp;feed=atom&amp;title=Haptoxy_set-header</id>
	<title>Haptoxy set-header - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://tech.uvoo.io/index.php?action=history&amp;feed=atom&amp;title=Haptoxy_set-header"/>
	<link rel="alternate" type="text/html" href="https://tech.uvoo.io/index.php?title=Haptoxy_set-header&amp;action=history"/>
	<updated>2026-04-24T08:02:35Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.2</generator>
	<entry>
		<id>https://tech.uvoo.io/index.php?title=Haptoxy_set-header&amp;diff=3700&amp;oldid=prev</id>
		<title>Busk: Created page with &quot;https://serverfault.com/questions/876871/configure-haproxy-to-include-host-headers-for-different-backends ```     http-request set-header Connection keep-alive     # http-requ...&quot;</title>
		<link rel="alternate" type="text/html" href="https://tech.uvoo.io/index.php?title=Haptoxy_set-header&amp;diff=3700&amp;oldid=prev"/>
		<updated>2023-01-19T23:23:02Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;https://serverfault.com/questions/876871/configure-haproxy-to-include-host-headers-for-different-backends ```     http-request set-header Connection keep-alive     # http-requ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;https://serverfault.com/questions/876871/configure-haproxy-to-include-host-headers-for-different-backends&lt;br /&gt;
```&lt;br /&gt;
    http-request set-header Connection keep-alive&lt;br /&gt;
    # http-request set-header X-Forwarded-Proto https&lt;br /&gt;
    # http-request set-header X-Forwarded-Host %[req.hdr(Host)]&lt;br /&gt;
    option forwardfor&lt;br /&gt;
    http-send-name-header Host&lt;br /&gt;
    # http-request set-header Host node1.myapp.mycompany.com if { srv_id 1 }&lt;br /&gt;
    # option host&lt;br /&gt;
    # http-request set-header Host %[req.hdr(Host)]&lt;br /&gt;
    # http-request set-header Host 192.168.1.2&lt;br /&gt;
    # server 02-www.example.com.stage.mktp.io 192.168.1.2:80 check inter 30s&lt;br /&gt;
    # server 01-www.example.com 192.168.1.3:80 check inter 30s&lt;br /&gt;
    server host1.be.example.com host1.be.example.com:80 check inter 30s&lt;br /&gt;
    server host2.be.extendhealth.com whost1.be.example.com:80 check inter 30s&lt;br /&gt;
```&lt;br /&gt;
```&lt;br /&gt;
global&lt;br /&gt;
  master-worker no-exit-on-failure&lt;br /&gt;
  mworker-max-reloads 3&lt;br /&gt;
  hard-stop-after 301s&lt;br /&gt;
  log stdout format raw local0 info&lt;br /&gt;
  # stats socket /var/run/haproxy.sock mode 600 level admin&lt;br /&gt;
&lt;br /&gt;
defaults&lt;br /&gt;
  mode http&lt;br /&gt;
  timeout client 10s&lt;br /&gt;
  timeout connect 5s&lt;br /&gt;
  timeout server 10s&lt;br /&gt;
  timeout http-request 10s&lt;br /&gt;
  log global&lt;br /&gt;
&lt;br /&gt;
resolvers mynameservers&lt;br /&gt;
   nameserver ns1 8.8.8.8:53&lt;br /&gt;
   nameserver ns2 8.8.4.4:53&lt;br /&gt;
&lt;br /&gt;
frontend stats&lt;br /&gt;
    bind    :8080&lt;br /&gt;
    stats enable&lt;br /&gt;
    stats uri /stats&lt;br /&gt;
    stats refresh 10s&lt;br /&gt;
    mode http&lt;br /&gt;
    # stats admin if TRUE&lt;br /&gt;
    stats auth admin:changeme&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
```&lt;br /&gt;
frontend frontend_tfs&lt;br /&gt;
    use_backend healthz if { path /healthz } || { path_beg /healthz/ }&lt;br /&gt;
    bind :8443 ssl crt /etc/ssl/selfsigned.pem&lt;br /&gt;
    default_backend backend_tfs&lt;br /&gt;
    mode http&lt;br /&gt;
    option http-keep-alive&lt;br /&gt;
    log-format &amp;quot;%ci:%cp [%tr] %ft %b/%s %TR/%Tw/%Tc/%Tr/%Ta %ST %B %CC %CS %tsc %ac/%fc/%bc/%sc/%rc %sq/%bq %hr %hs %{+Q}r %sslv %sslc %[ssl_fc_cipherlist_str]&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
backend healthz&lt;br /&gt;
    http-request return status 200 content-type &amp;quot;text/plain&amp;quot; lf-string &amp;quot;ok&amp;quot;&lt;br /&gt;
```&lt;/div&gt;</summary>
		<author><name>Busk</name></author>
	</entry>
</feed>