Skip to content

Commit 0d9f384

Browse files
authored
Revert "Fix environment variable name for HTTPS port (#37386)" (#37390)
This reverts commit c5f5971.
1 parent c5f5971 commit 0d9f384

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

aspnetcore/security/enforcing-ssl.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ The following code calls the <xref:Microsoft.AspNetCore.Builder.HttpsPolicyBuild
7272
The preceding highlighted code:
7373

7474
* Uses the default <xref:Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionOptions.RedirectStatusCode?displayProperty=nameWithType> property with the <xref:Microsoft.AspNetCore.Http.StatusCodes.Status307TemporaryRedirect> code.
75-
* Uses the default <xref:Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionOptions.HttpsPort?displayProperty=nameWithType> property (passing null), unless overridden by the `ASPNETCORE_HTTPS_PORTS` environment variable or <xref:Microsoft.AspNetCore.Hosting.Server.Features.IServerAddressesFeature>.
75+
* Uses the default <xref:Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionOptions.HttpsPort?displayProperty=nameWithType> property (passing null), unless overridden by the `ASPNETCORE_HTTPS_PORT` environment variable or <xref:Microsoft.AspNetCore.Hosting.Server.Features.IServerAddressesFeature>.
7676

7777
The recommended approach is to use temporary redirects rather than permanent redirects. Link caching can cause unstable behavior in development environments. If you prefer to send a permanent redirect status code when the app is in a non-`Development` environment, see the [Configure permanent redirects in production](#configure-permanent-redirects-in-production) section. Use [HSTS](#hsts) to signal to clients that only secure resource requests should be sent to the app (only in production).
7878

@@ -88,7 +88,7 @@ Specify the HTTPS port by using any of the following approaches:
8888
* Set [HttpsRedirectionOptions.HttpsPort](#options).
8989
* Set the `https_port` [host setting](xref:fundamentals/host/generic-host#https-port):
9090
* In host configuration.
91-
* By setting the `ASPNETCORE_HTTPS_PORTS` environment variable.
91+
* By setting the `ASPNETCORE_HTTPS_PORT` environment variable.
9292
* By adding a top-level entry in the _appsettings.json_ file:
9393

9494
[!code-json[](enforcing-ssl/sample-snapshot/6.x/appsettings.json?highlight=2)]

0 commit comments

Comments
 (0)