Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions site/content/en/latest/tasks/traffic/http-redirect.md
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ spec:
- name: http
port: 80
protocol: HTTP
allowedRouters:
allowedRoutes:
namespaces:
from: Same
- name: https
Expand All @@ -371,7 +371,7 @@ spec:
certificateRefs:
- kind: Secret
name: example-com
allowedRouters:
allowedRoutes:
namespaces:
from: All
EOF
Expand All @@ -394,7 +394,7 @@ spec:
- name: http
port: 80
protocol: HTTP
allowedRouters:
allowedRoutes:
namespaces:
from: Same
- name: https
Expand All @@ -406,15 +406,15 @@ spec:
certificateRefs:
- kind: Secret
name: example-com
allowedRouters:
allowedRoutes:
namespaces:
from: All
```

{{% /tab %}}
{{< /tabpane >}}

Create the HTTPRoute to reirect requests to HTTPS and attach it to the HTTP listener using the [sectionName][] field. The HTTPRoute has to be in the same namespace as the Gateway to be accepted.
Create the HTTPRoute to redirect requests to HTTPS and attach it to the HTTP listener using the [sectionName][] field. The HTTPRoute has to be in the same namespace as the Gateway to be accepted.
Do not set hostnames field in the HTTPRoute - it will accept any http request to any hostname and redirect it to the same hostname over https.

{{< tabpane text=true >}}
Expand Down
10 changes: 5 additions & 5 deletions site/content/en/v1.3/tasks/traffic/http-redirect.md
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ spec:
- name: http
port: 80
protocol: HTTP
allowedRouters:
allowedRoutes:
namespaces:
from: Same
- name: https
Expand All @@ -371,7 +371,7 @@ spec:
certificateRefs:
- kind: Secret
name: example-com
allowedRouters:
allowedRoutes:
namespaces:
from: All
EOF
Expand All @@ -394,7 +394,7 @@ spec:
- name: http
port: 80
protocol: HTTP
allowedRouters:
allowedRoutes:
namespaces:
from: Same
- name: https
Expand All @@ -406,15 +406,15 @@ spec:
certificateRefs:
- kind: Secret
name: example-com
allowedRouters:
allowedRoutes:
namespaces:
from: All
```

{{% /tab %}}
{{< /tabpane >}}

Create the HTTPRoute to reirect requests to HTTPS and attach it to the HTTP listener using the [sectionName][] field. The HTTPRoute has to be in the same namespace as the Gateway to be accepted.
Create the HTTPRoute to redirect requests to HTTPS and attach it to the HTTP listener using the [sectionName][] field. The HTTPRoute has to be in the same namespace as the Gateway to be accepted.
Do not set hostnames field in the HTTPRoute - it will accept any http request to any hostname and redirect it to the same hostname over https.

{{< tabpane text=true >}}
Expand Down
Loading