Score:0

Mutidomain config with ssl in HAproxy

cn flag

I have the following domains with three websites:

  1. mydomain1.com
  2. sub.mydomain1.com
  3. mydomain2.com

All of them with its webserver in the same host.

I would like to get this goals:

  1. Requests should be redirected from http to https for the three websites (301 http code).
  2. The three domains have their own ssl certificates.
  3. Original requests should be forwarded to its web server (I need to get ip client, original url but schema is not important, user agent...).
  4. Web servers work by http protocol (not https protocol)
  5. Web servers are in localhost but with different ports (81, 82, 83)

How can I config haproxy to get my goals?

GregL avatar
cn flag
What have you tried so far?
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.