You can't just add mydomain.com to the *.mydomain.com certificate?
Not much you can do with HAProxy here. Since the cert is invalid for
https://mydomain.com/, users are going to get a SSL error when they connect.
On 10/1/13 6:51 AM, Matthieu Boret wrote:
Hi,
I've setup Haproxy 1.5 dev 19 to handle my http and https traffic.
All works fine except when I request the root url in https:
https://mydomain.com
My certificate is a wildcard *.mydomain.com <http://mydomain.com>
What is the solution to remove this error? An url rewrite and add www?
My Haproxy configuration:
frontend https-requests
mode http
bind :80
bind :443 ssl crt ./mydomain.pem force-sslv3
acl is_webfront path_reg ^www||^/$(.*)
acl is_api hdr(host) -i api.mydomain.com <http://api.mydomain.com>
use_backend bk_webfront if is_webfront
use_backend bk_api if is_api
default_backend bk_webfront
Thanks
Matthieu