Skip to content

Commit 06ae070

Browse files
committed
feat(lb): url path routes
1 parent 2fba754 commit 06ae070

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

pages/load-balancer/concepts.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ See [balancing-methods](#balancing-methods).
173173

174174
## Routes
175175

176-
Routes allow you to specify, for a given frontend, which of its backends it should direct traffic to. For [HTTP](#protocol) frontends/backends, routes are based on HTTP Host headers. For [TCP](#protocol) frontends/backends, they are based on **S**erver **N**ame **I**dentification (SNI). You can configure multiple routes on a single Load Balancer.
176+
Routes allow you to specify, for a given frontend, which of its backends it should direct traffic to. For [HTTP](#protocol) frontends/backends, routes are based on HTTP Host headers or URL paths. For [TCP](#protocol) frontends/backends, they are based on **S**erver **N**ame **I**dentification (SNI). You can configure multiple routes on a single Load Balancer.
177177

178178
## Object Storage failover
179179

pages/load-balancer/faq.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@ Yes, you can restrict the use of a `TCP` port or `HTTP` URL using ACLs. Find mor
7373

7474
## What is a route?
7575

76-
Once you have created one or more Load Balancers, you can create routes. Routes indicate how to direct incoming connections to certain backends based on various parameters such as IP addresses, path, host, etc. You can choose the frontend to which the rule should apply, and the backend it should direct to. Routes can be based on **Server Name Indication** (SNI) for TCP Load Balancers, or the **HTTP Host header** for HTTP Load Balancers. Check out our [dedicated documentation](/load-balancer/how-to/create-manage-routes/) for more information.
76+
Once you have created one or more Load Balancers, you can create routes. Routes indicate how to direct incoming connections to certain backends based on various parameters such as IP addresses, path, host, etc. You can choose the frontend to which the rule should apply, and the backend it should direct to. Routes can be based on **Server Name Indication** (SNI) for TCP Load Balancers, or the **HTTP Host header** or **URL path** for HTTP Load Balancers. Check out our [dedicated documentation](/load-balancer/how-to/create-manage-routes/) for more information.
7777

7878
## Can I add multiple backends to a frontend?
7979

80-
Yes, this is possible using routes. When you create a frontend, you must select a "default" backend, to which it forwards traffic when the request doesn't match any configured route. But via the **routes** tab for your frontend in the Scaleway console, you can create routes to different backends from the same frontend. Routes are currently supported based on the value of the `Host` header of incoming HTTP requests for HTTP backends, or on SNI for TCP backends.
80+
Yes, this is possible using routes. When you create a frontend, you must select a "default" backend, to which it forwards traffic when the request doesn't match any configured route. But via the **routes** tab for your frontend in the Scaleway console, you can create routes to different backends from the same frontend. Routes are currently supported based on the value of the `Host` header of incoming HTTP requests for HTTP backends, URL paths, or on SNI for TCP backends.
8181

8282
## What is a health check?
8383

pages/load-balancer/how-to/create-manage-routes.mdx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ dates:
99
import Requirements from '@macros/iam/requirements.mdx'
1010

1111

12-
Routes allow you to specify, for a given frontend, which backends it should direct traffic to depending on the requested host. For [HTTP](/load-balancer/concepts/#protocol) frontends/backends, routes are based on HTTP Host headers. For [TCP](/load-balancer/concepts/#protocol) frontends/backends, they are based on **S**erver **N**ame **I**dentification (SNI). You can configure multiple routes on a single frontend. When no route rules match for an incoming connection/request, the frontend will forward to its default backend.
12+
Routes allow you to specify, for a given frontend, which backends it should direct traffic to depending on the requested host. For [HTTP](/load-balancer/concepts/#protocol) frontends/backends, routes are based on HTTP Host headers or URL paths. For [TCP](/load-balancer/concepts/#protocol) frontends/backends, they are based on **S**erver **N**ame **I**dentification (SNI). You can configure multiple routes on a single frontend. When no route rules match for an incoming connection/request, the frontend will forward to its default backend.
1313

1414
<Requirements />
1515

@@ -37,11 +37,12 @@ Routes allow you to specify, for a given frontend, which backends it should dire
3737

3838
If you have selected an HTTP frontend/backend pair:
3939

40-
- **HTTP Host header**: Enter an HTTP Host header value to filter for (for example `www.example-domain.com`). Traffic with a matching value in its HTTP Host header will be directed to the specified target backend.
40+
- **HTTP Host header**: Enter an HTTP Host header value to filter for (for example `example-domain.com`). Traffic with a matching value in its HTTP Host header will be directed to the specified target backend, OR
41+
- **URL path**: Enter a URL path value to filter for (for example `/dashboard`)
4142

4243
If you have selected a TCP frontend/backend pair:
4344

44-
- **SNI value**: Enter an SNI value to filter for (for example `www.example-domain.com`). Traffic with a matching SNI value will be directed to the specified target backend.
45+
- **SNI value**: Enter an SNI value to filter for (for example `example-domain.com`). Traffic with a matching SNI value will be directed to the specified target backend.
4546

4647
8. Choose whether to match all subdomains of the given SNI / Host header value, by checking the relevant box. This will ensure that all requests to subdomains of the value (e.g. `blog.example-domain.com`) also use this route.
4748

pages/load-balancer/reference-content/configuring-frontends.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ When creating a frontend after creating the Load Balancer, you can choose which
6262

6363
<Message type="note">
6464

65-
You can attach different frontends to the same backend. They will all forward traffic to this backend. However, you cannot attach multiple backends to the same frontend. To forward traffic from the same frontend to various different backends depending on the client's HTTP Host headers or SNI, create [Routes](/load-balancer/how-to/create-manage-routes/) for your frontend.
65+
You can attach different frontends to the same backend. They will all forward traffic to this backend. However, you cannot attach multiple backends to the same frontend. To forward traffic from the same frontend to various different backends depending on the client's HTTP Host headers, URL path or SNI, create [Routes](/load-balancer/how-to/create-manage-routes/) for your frontend.
6666

6767
</Message>
6868

pages/load-balancer/reference-content/migrating-aws.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ To create the equivalent of an AWS **Application Load Balancer** with Scaleway,
9292

9393
- One or more frontends listening on port 80 or 443
9494
- One or more backends configured for HTTP or HTTPS protocol
95-
- (Optional) Routes from frontends to backends based on HTTP Host headers
95+
- (Optional) Routes from frontends to backends based on HTTP Host headers or URL path
9696

9797
To create the equivalent of an AWS **Network Load Balancer** with Scaleway, you will typically create a Load Balancer with:
9898

0 commit comments

Comments
 (0)