From 81448d4378548ea178d57abaa4d5a382e21c7e42 Mon Sep 17 00:00:00 2001 From: Rami Date: Fri, 11 Jul 2025 18:03:19 -0700 Subject: [PATCH 1/2] Replaced duplicate HTTPS_PORTS with expected HTTP_PORTS --- aspnetcore/fundamentals/host/web-host.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/aspnetcore/fundamentals/host/web-host.md b/aspnetcore/fundamentals/host/web-host.md index 4b9739c76ecb..884f4bf53a76 100644 --- a/aspnetcore/fundamentals/host/web-host.md +++ b/aspnetcore/fundamentals/host/web-host.md @@ -230,19 +230,19 @@ WebHost.CreateDefaultBuilder(args) .UseSetting("https_port", "8080") ``` -### HTTPS Ports +### HTTP Ports -Set the ports to listen on for HTTPS connections. +Set the ports to listen on for HTTP connections. -**Key**: https_ports +**Key**: http_ports **Type**: *string* **Default**: A default value isn't set. **Set using**: `UseSetting` -**Environment variable**: `ASPNETCORE_HTTPS_PORTS` +**Environment variable**: `ASPNETCORE_HTTP_PORTS` ```csharp WebHost.CreateDefaultBuilder(args) - .UseSetting("https_ports", "8080") + .UseSetting("http_ports", "8080") ``` ### Hosting Startup Exclude Assemblies From e916a8fc3a934e0d7b570ca74d619168cbd77519 Mon Sep 17 00:00:00 2001 From: Rami Date: Sat, 12 Jul 2025 14:16:41 -0700 Subject: [PATCH 2/2] Added http_ports --- aspnetcore/fundamentals/host/web-host.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/aspnetcore/fundamentals/host/web-host.md b/aspnetcore/fundamentals/host/web-host.md index 884f4bf53a76..3fed64b00c8c 100644 --- a/aspnetcore/fundamentals/host/web-host.md +++ b/aspnetcore/fundamentals/host/web-host.md @@ -230,6 +230,21 @@ WebHost.CreateDefaultBuilder(args) .UseSetting("https_port", "8080") ``` +### HTTPS Ports + +Set the ports to listen on for HTTPS connections. + +**Key**: https_ports +**Type**: *string* +**Default**: A default value isn't set. +**Set using**: `UseSetting` +**Environment variable**: `ASPNETCORE_HTTPS_PORTS` + +```csharp +WebHost.CreateDefaultBuilder(args) + .UseSetting("https_ports", "8080") +``` + ### HTTP Ports Set the ports to listen on for HTTP connections.