Score:0

HAProxy multiple dns hosts with proxmox

bi flag

I have been working on proxying on all services running by adding another frontend for additional HTTP headers. The thing is, DNS mapping doesn't seem to work:

frontend proxmox
    # proxmox
    bind 0.0.0.0:8006 ssl crt /certs/somedomain.com.pem
    mode http
    option http-server-close

    http-request set-header X-Forwarded-For %[src]
    http-request set-header X-Real-IP %[src]
    http-request add-header X-Forwarded-Proto https if { ssl_fc }
    http-request add-header X-Forwarded-Proto http if !{ ssl_fc }

    acl ACL_proxmox1.dev.somedomain.com hdr(host) -i proxmox1.dev.somedomain.com
    use_backend service.proxmox1.dev.somedomain.com if ACL_proxmox1.dev.somedomain.com

    acl ACL_proxmoxtest1.dev.somedomain.com hdr(host) -i proxmoxtest1.dev.somedomain.com
    use_backend service.proxmoxtest1.dev.somedomain.com if ACL_proxmoxtest1.dev.somedomain.com

    default_backend service.proxmox1.dev.somedomain.com
    timeout client 65000


backend service.proxmox1.dev.somedomain.com
timeout server 65000
stick-table type ip size 200k expire 60m
stick on src
server proxmox 10.100.100.100:8006 check ssl verify none

backend service.proxmoxtest.dev.somedomain.com
timeout server 65000
stick-table type ip size 200k expire 60m
stick on src
server proxmox 10.100.100.181:8006 check ssl verify none

Admittedly, am not super familiar with the dynamics of the headers and 'stick' but doesn't seem like they would override the ACL for host name mapping.

Any ideas welcome. Thank you in advance.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.