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:

Translations Ignore


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:

Translations Ignore


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:

Translations Ignore


Code Block
frontend acdportal_https
		...
	    mode            http
        bind            :443 ssl crt /etc/haproxy/haproxy_cert1.pem crt /etc/haproxy/haproxy_cert2.pem


Umleitung je nach Subdomain

Um je nach verwendeter Subdomain auf einen anderen Kunden/Reseller umzuleiten, verwenden Sie diesen Ansatz:

Translations Ignore


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
languagefr

Plusieurs certificats

Pour configurer plus d'un certificat pour haproxy, utilisez cette approche dans le fichier de configuration :

Translations Ignore


Code Block
frontend acdportal_https 
...
 mode http bind :443 ssl crt /etc/haproxy/haproxy_cert1.pem crt /etc/haproxy/haproxy_cert2.pem



Redirection en fonction du sous-domaine

Pour rediriger vers un client / revendeur différent en fonction du sous-domaine utilisé, utilisez cette approche :

Translations Ignore


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