Mehrere ZertifikateUm mehr als ein Zertifikat für Haproxy zu konfigurieren, verwenden Sie diesen Ansatz in der Konfigurationsdatei 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 subdomainUmleitung je nach SubdomainUm je nach verwendeter Subdomain auf einen anderen Kunden/Reseller umzuleiten, verwenden Sie diesen AnsatzTo 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
|
|