You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
excerpt: 'Integrate your web services behind a Load Balancer with redirections'
5
-
updated: 2021-02-05
2
+
title: "Configuring an OVHcloud Load Balancer service with redirects"
3
+
excerpt: Integrate your web services behind a Load Balancer with redirects
4
+
updated: 2025-11-27
6
5
---
7
6
8
7
## Objective
9
8
10
-
The OVH Load Balancer acts by default as a proxy. It can also be configured to redirect your customers to a third-party website, which is useful if you are changing your domain name, or want to redirect your customers to your website’s HTTPS version, for example. This is known as HTTP redirection.
9
+
The **OVHcloud Load Balancer** operates by default as a proxy. It can also be configured to redirect client traffic to a third-party website. This functionality is essential for scenarios such as **domain name migration**or enforcing the **HTTPS version** of a website. This is known as **HTTP redirection**.
11
10
12
-
**This guide will show you how to integrate your web services behind an OVH Load Balancer with redirections.**
11
+
**This guide outlines the process for integrating your web services behind an OVHcloud Load Balancer utilizing HTTP redirections.**
13
12
14
13
## Requirements
15
14
16
-
- an [OVH Load Balancer](/links/network/load-balancer)
17
-
- access to the [OVH Control Panel](/links/manager), or the [OVH API](/links/api)
15
+
- Have an [OVHcloud Load Balancer](/links/network/load-balancer) offer in your OVHcloud account.
16
+
- Have access to your [OVHcloud Control Panel](/links/manager).
17
+
- Have access to the [OVHcloud API](/links/api).
18
18
19
19
## Instructions
20
20
21
-
### Presentation
21
+
### Overview
22
22
23
-
A HTTP redirection is presented as follows:
23
+
An HTTP redirect looks like this:
24
24
25
25
```bash
26
26
HTTP/1.1 301 Moved Permanently
@@ -29,85 +29,88 @@ Content-Type: text/html
29
29
Content-Length: 174
30
30
```
31
31
32
-
Custom redirections should have the following form: `<scheme>://<net_loc>/<path>;<params>?<query>#<fragment>`. You can only specify one redirection per front-end.
32
+
Custom redirects must be formatted as `<scheme>://<net_loc>/<path>;<params>?<query>#<fragment>`. Only one redirect can be specified per frontend.
33
33
34
-
Custom redirections can be specified via the OVH Control Panel and via the API, both on new and existing `front-ends`{.action}.
34
+
Custom redirects can be specified via the OVHcloud Control Panel or via the API, on a new or existing frontend.
35
35
36
-
### Add a custom redirection via the OVH Control Panel.
36
+
### Adding a custom redirect from the OVHcloud Control Panel
37
37
38
-
You can define custom redirections from the [OVH Control Panel](/links/manager) by going to the `Cloud`{.action} section, then `Load Balancer`{.action}.
38
+
You can define a custom redirect from the [OVHcloud Control Panel](/links/manager) in the `Bare Metal Cloud`{.action} section and then `Load Balancer`{.action}.
39
+
This can be done either on a new frontend during its creation, or on an existing frontend.
39
40
40
-
You can either do this on a new front-end as you create it, or on an existing front-end.
41
+
#### Adding a new frontend
41
42
42
-
*Add a new front-end.
43
+
In the `Frontends`{.action} section, click on the `Add a frontend`{.action} button to create a new one.
43
44
44
-
In the `Front-ends`{.action} section of the OVH Control Panel, click on `Add a front-end`{.action} to create a new one.
45
+
In the frontend editing page, select the `HTTP`{.action} or `HTTPS`{.action} protocol.<br>
46
+
Configure the information as usual. However, it is unnecessary to specify the `Default backend`{.action}, as it will not be used.
45
47
46
-
In the editing page for a front-end, select `HTTP`{.action} or `HTTPS`{.action} protocol. Configure the information as requested. However, please note that there is no need to set a `Default farm`{.action}, as it will not be used.
48
+
In the advanced settings, fill in the `HTTP redirect`{.action}.
47
49
48
-
In the advanced settings, enter the `HTTP redirection`{.action}.
50
+
#### Editing an existing frontend
49
51
50
-
* Edit an existing front-end.
52
+
In the `Frontends`{.action} section, click on the `...`{.action} button to the right of the relevant frontend and select `Edit`{.action}.<br>
53
+
Make sure the selected frontend is of the `HTTP` or `HTTPS` protocol. Complete the configuration if necessary.
54
+
However, it is unnecessary to specify the `Default backend`{.action}, as it will not be used.
51
55
52
-
In the `Front-ends`{.action} section of the OVH Control Panel, select the front-end you would like to edit. To do this, click the `...`{.action} button, then select `Edit`{.action} in the menu that appears. Please ensure that the front-end you have chosen uses either `HTTP` or `HTTPS` protocol.
56
+
In the advanced settings, fill in the `HTTP redirect`{.action}.
53
57
54
-
In the editing page for the front-end, complete the configuration if needed. However, please note that there is no need to set a `Default farm`{.action}, as it will not be used.
58
+
{.thumbnail}
55
59
56
-
In the advanced settings, enter the `HTTP redirection`{.action}.
60
+
Once the frontend is configured, click on `Add`{.action} or `Edit`{.action} depending on whether you are configuring a new frontend or an existing one.
61
+
Do not forget to deploy the configuration.
57
62
58
-
{.thumbnail}
63
+
To do this, you can either:
59
64
60
-
Once the front-end has been configured, click `Add`{.action} or `Edit`{.action}, depending on whether you are configuring a new or existing front-end. Please remember to deploy the configuration. There are two ways of doing this:
65
+
- In the `Status` section of the `Home`{.action} tab, click on the `...`{.action} button of your Load Balancer and then click on `Apply the configuration`{.action}.
61
66
62
-
-via the `Status`{.action} section of the OVH Control Panel, by clicking on your Load Balancer’s `...`{.action} button, then selecting`Apply configuration`{.action}
67
+
-In the reminder banner informing you that the configuration is not applied, click on`Apply the configuration`{.action}.
63
68
64
-
- via the reminder box in the OVH Control Panel, notifying you that the configuration has not been applied, by clicking `Apply configuration`{.action}
69
+
{.thumbnail}
65
70
66
-
{.thumbnail}
71
+
### Adding a custom redirect from the OVHcloud API
67
72
68
-
### Add a custom redirection via the API.
73
+
In the [OVHcloud API](/links/api), redirects are specified in the redirectLocation string:
69
74
70
-
In the [OVH API](/links/api), redirections are specified in the redirectLocation character chain.
71
-
72
-
* If you are creating a new front-end:
75
+
**Creating a new frontend**
73
76
74
77
> [!api]
75
78
>
76
79
> @api {v1} /ipLoadbalancing POST /ipLoadbalancing/{serviceName}/http/frontend
77
80
>
78
81
79
-
|Setting|Meaning|
82
+
|Parameter|Meaning|
80
83
|---|---|
81
-
|serviceName|Your Load Balancer service ID|
82
-
|port|Front-end listening ports|
83
-
|zone|Front-end deployment zones|
84
-
|redirectLocation|HTTP redirection URL|
84
+
|serviceName|Identifier of your Load Balancer service|
85
+
|port|Port(s) of the frontend|
86
+
|zone|Deployment zone of the frontend|
87
+
|redirectLocation|HTTP redirect URL|
85
88
86
-
* If you are updating an existing front-end:
89
+
**Updating an existing frontend**
87
90
88
91
> [!api]
89
92
>
90
93
> @api {v1} /ipLoadbalancing PUT /ipLoadbalancing/{serviceName}/http/frontend/{frontendId}
91
94
>
92
95
93
-
|Setting|Meaning|
96
+
|Parameter|Meaning|
94
97
|---|---|
95
-
|serviceName|Your Load Balancer service ID|
96
-
|frontendId|ID of the front-end to be updated|
97
-
|redirectLocation|HTTP redirection URL|
98
+
|serviceName|Identifier of your Load Balancer service|
99
+
|frontendId|Identifier of the frontend to update|
100
+
|redirectLocation|HTTP redirect URL|
98
101
99
-
Then apply the modifications:
102
+
**Applying the changes**
100
103
101
104
> [!api]
102
105
>
103
106
> @api {v1} /ipLoadbalancing POST /ipLoadbalancing/{serviceName}/refresh
104
107
>
105
108
106
-
|Setting|Meaning|
109
+
|Parameter|Meaning|
107
110
|---|---|
108
-
|serviceName|Your Load Balancer service ID|
109
-
|zone|Front-end deployment zones|
111
+
|serviceName|Identifier of your Load Balancer service|
112
+
|zone|Deployment zone of the frontend|
110
113
111
114
## Go further
112
115
113
-
Join our community of users on <https://community.ovh.com/en/>.
Copy file name to clipboardExpand all lines: pages/network/load_balancer/create_redirectlocation/guide.fr-fr.md
+14-12Lines changed: 14 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,18 +1,20 @@
1
1
---
2
2
title: "Configuration d'un service OVHcloud Load Balancer avec les redirections"
3
3
excerpt: Intégrez vos services web derrière un Load Balancer avec les redirections
4
-
updated: 2022-03-28
4
+
updated: 2025-11-27
5
5
---
6
6
7
7
## Objectif
8
8
9
-
Le service OVHcloud Load Balancer agit par défaut comme un mandataire ou « Proxy ». Il peut aussi être configuré pour rediriger vos clients vers un site tiers, par exemple dans le cas d'un changement de nom de domaine ou pour rediriger vos clients en HTTPS. C'est que l'on appelle la redirection HTTP.
9
+
Le **Load Balancer OVHcloud** fonctionne par défaut comme un proxy, un intermédiaire entre le trafic client et vos serveurs backend. Il peut également être configuré pour rediriger le trafic client vers un site web tiers. Cette fonctionnalité est essentielle pour des scénarios tels que la **migration de nom de domaine** ou l'application de la **version HTTPS** d'un site web. On parle alors de **redirection HTTP**.
10
+
11
+
**Ce guide décrit le processus d'intégration de vos services web derrière un Load Balancer OVHcloud utilisant des redirections HTTP.**
10
12
11
13
## Prérequis
12
14
13
15
- Posséder une offre [OVHcloud Load balancer](/links/network/load-balancer) dans votre compte OVHcloud.
14
-
-Être connecté à votre [espace client OVHcloud](/links/manager).
15
-
-Être connecté à l'[API OVHcloud](/links/api).
16
+
-Avoir accès à votre [espace client OVHcloud](/links/manager).
17
+
-Avoir accès à l'[API OVHcloud](/links/api).
16
18
17
19
## En pratique
18
20
@@ -27,13 +29,13 @@ Content-Type: text/html
27
29
Content-Length: 174
28
30
```
29
31
30
-
Les Rrdirections personnalisées doivent être de la forme`<scheme>://<net_loc>/<path>;<params>?<query>#<fragment>`. Il n'est possible de spécifier qu'une seule redirection par frontend.
32
+
Les redirections personnalisées doivent utiliser le format`<scheme>://<net_loc>/<path>;<params>?<query>#<fragment>`. Il n'est possible de spécifier qu'une seule redirection par frontend.
31
33
32
34
Les redirections personnalisées peuvent être spécifiées via l'espace client ou via l'API, tant sur un nouveau frontend qu'un existant.
33
35
34
36
### Ajouter une redirection personnalisée depuis l'espace client OVHcloud
35
37
36
-
Il est possible de définir une redirection personnalisée depuis l'[espace client OVHcloud](/links/manager) dans la partie `Bare Metal Cloud`{.action} puis `Load Balancer`{.action}.
38
+
Il est possible de définir une redirection personnalisée depuis l'[espace client OVHcloud](/links/manager), dans la partie `Bare Metal Cloud`{.action} puis `Load Balancer`{.action}.
37
39
Cela peut-être effectué tant sur un nouveau frontend pendant sa création, que sur un frontend existant.
38
40
39
41
#### Ajout d'un nouveau frontend
@@ -48,7 +50,7 @@ Dans les paramètres avancés, renseignez la `Redirection HTTP`{.action}.
48
50
#### Édition d'un frontend existant
49
51
50
52
Dans la section `Frontends`{.action}, cliquez que le bouton `...`{.action} à droite du frontend concerné et sélectionnez `Modifier`{.action}.<br>
51
-
Assurez vous que le frontend choisi soit bien de protocole `HTTP` ou `HTTPS`. Complétez la configuration si besoin.
53
+
Assurez vous que le frontend choisi utilise bien le protocole `HTTP` ou `HTTPS`. Complétez la configuration si besoin.
52
54
Il est cependant inutile de préciser la `Ferme par défaut`{.action}, celle-ci ne sera pas utilisée.
53
55
54
56
Dans les paramètres avancés, renseignez la `Redirection HTTP`{.action}.
@@ -59,17 +61,17 @@ Une fois le frontend configuré, cliquez sur `Ajouter`{.action} ou `Modifier`{.a
59
61
N'oubliez pas de déployer la configuration.
60
62
Pour ce faire, vous pouvez au choix :
61
63
62
-
-dans la section `Statut` de l'onglet `Accueil`{.action}, cliquez sur le bouton `...`{.action} de votre Load Balancer puis cliquez sur `Appliquer la configuration`{.action}.
64
+
-Dans la section `Statut` de l'onglet `Accueil`{.action}, cliquez sur le bouton `...`{.action} de votre Load Balancer puis cliquez sur `Appliquer la configuration`{.action}.
63
65
64
-
-dans le bandeau de rappel vous précisant que la configuration n'est pas appliquée, cliquez sur `Appliquer la configuration`{.action}.
66
+
-Dans le bandeau de rappel vous précisant que la configuration n'est pas appliquée, cliquez sur `Appliquer la configuration`{.action}.
65
67
66
68
{.thumbnail}
67
69
68
70
### Ajouter une redirection personnalisée depuis l'API OVHcloud
69
71
70
72
Dans l'[API OVHcloud](/links/api), les redirections sont spécifiées dans la chaîne de caractère redirectLocation :
71
73
72
-
#### Création d'un nouveau frontend
74
+
**Création d'un nouveau frontend**
73
75
74
76
> [!api]
75
77
>
@@ -83,7 +85,7 @@ Dans l'[API OVHcloud](/links/api), les redirections sont spécifiées dans la ch
83
85
|zone|Zone de déploiement du frontend|
84
86
|redirectLocation|URL de redirection HTTP|
85
87
86
-
#### Mise à jour d'un frontend existant
88
+
**Mise à jour d'un frontend existant**
87
89
88
90
> [!api]
89
91
>
@@ -96,7 +98,7 @@ Dans l'[API OVHcloud](/links/api), les redirections sont spécifiées dans la ch
96
98
|frontendId|Identifiant du frontend à mettre à jour|
0 commit comments