Several CertificatesTo configure more than one certificate for haproxy, use this approach in the configuration file: Code Block |
---|
frontend acdportal_https
...
mode http
bind :443 ssl crt /etc/haproxy/haproxy_cert1.pem crt /etc/haproxy/haproxy_cert2.pem |
Redirecting depending on subdomainTo redirect to a different client / reseller depending on a the subdomain used, use this approach: Code Block |
---|
frontend acdportal_https
...
acl site_client1 req.hdr(host) -i client1.jtel.de
acl site_client2 req.hdr(host) -i client2.jtel.de
...
# Full client
redirect location /CarrierPortal/login/reseller1/client1 if root_req site_client1
redirect location /CarrierPortal/login/reseller1/client2 if root_req site_client2
# Default redirect if not matches
redirect location /CarrierPortal/login/reseller1 if root_req
# Mini Client
redirect location /CarrierPortal/mclogin/reseller1/client1 if mini_req site_client1
redirect location /CarrierPortal/mclogin/reseller1/client2 if mini_req site_client2
# Default redirect if not matches
redirect location /CarrierPortal/mclogin/reseller1 if mini_req
|
|