Setting up Wildcard subdomain (with reverse proxy) on apache 2.2.3

前端 未结 1 1617
遥遥无期
遥遥无期 2021-02-15 17:06

What I am trying to achieve is the following: I want to have numerous subdomains such as abc.domain.com redirect to a url such as www.domain.com/something?subdomain=ab

1条回答
  •  醉梦人生
    2021-02-15 18:03

    I have had this same problem as well. The only way I solved it was to put different domains that need secure connection on different Listen ports because I was limited with IP addresses.

    From my understanding, the problem is that in the https protocol the HOST is not included in the request. So when the request reaches the server, apache just uses the first match on the IP and port the connection was received on because it does not know the domain it was requested from.

    The only work around for this is to have a different IP for each domain, or a different port.

    Unfortunately you are out of luck using https with a wildcard domain setup, I don't believe there is anyway to get it to work.

    0 讨论(0)
提交回复
热议问题