Difference between revisions of "Adding a header with Haproxy"

From EN Ikoula wiki
⧼vector-jumptonavigation⧽ ⧼vector-jumptosearch⧽
Line 1: Line 1:
 +
<span data-link_translate_de_title="Hinzufügen eines Headers mit Haproxy"  data-link_translate_de_url="Hinzufügen eines Headers mit Haproxy"></span>[[:de:Hinzufügen eines Headers mit Haproxy]][[de:Hinzufügen eines Headers mit Haproxy]]
 
<span data-link_translate_nl_title="Voeg een header toe met Haproxy"  data-link_translate_nl_url="Voeg een header toe met Haproxy"></span>[[:nl:Voeg een header toe met Haproxy]][[nl:Voeg een header toe met Haproxy]]
 
<span data-link_translate_nl_title="Voeg een header toe met Haproxy"  data-link_translate_nl_url="Voeg een header toe met Haproxy"></span>[[:nl:Voeg een header toe met Haproxy]][[nl:Voeg een header toe met Haproxy]]
 
<span data-link_translate_it_title="Aggiungere un'intestazione con Haproxy"  data-link_translate_it_url="Aggiungere un'intestazione con Haproxy"></span>[[:it:Aggiungere un'intestazione con Haproxy]][[it:Aggiungere un'intestazione con Haproxy]]
 
<span data-link_translate_it_title="Aggiungere un'intestazione con Haproxy"  data-link_translate_it_url="Aggiungere un'intestazione con Haproxy"></span>[[:it:Aggiungere un'intestazione con Haproxy]][[it:Aggiungere un'intestazione con Haproxy]]

Revision as of 09:51, 8 July 2021

de:Hinzufügen eines Headers mit Haproxy nl:Voeg een header toe met Haproxy it:Aggiungere un'intestazione con Haproxy pt:Adicionar um cabeçalho com Haproxy es:Añadir una cabecera con Haproxy fr:Ajouter une en-tête avec Haproxy
This article has been created by an automatic translation software. You can view the article source here.

Introduction

We will see how to add an HTTP header with Haproxy.

Course

This can be done in the frontend, listen, or backend section of your Haproxy configuration.

In our example Haproxy is used for SSL offloading, it communicates with our backend (a Nginx server for example) in HTTP.
The application behind it is configured to force HTTPS, in order not to create a redirection loop we will have to send it a header to inform it that the initial protocol is HTTPS.
To do this, we will use Haproxy in our frontend configured in HTTPS, add a header X-Forwarded-Proto declared in https like this:

http-request add-header X-Forwarded-Proto https





Cet article vous a semblé utile ?

0



You are not allowed to post comments.