Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Sv translation
languageen

Several Certificates

To 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 subdomain

To 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 
		


Sv translation
languagede

Mehrere Zertifikate

Um mehr als ein Zertifikat für Haproxy zu konfigurieren, verwenden Sie diesen Ansatz in der Konfigurationsdatei

Several Certificates

To 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 subdomain

Umleitung je nach Subdomain

Um 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