Skip to content

Instantly share code, notes, and snippets.

@AnthonyGiretti
Created November 24, 2025 01:21
Show Gist options
  • Select an option

  • Save AnthonyGiretti/bb67aec8b68b173596afd548dbd7108f to your computer and use it in GitHub Desktop.

Select an option

Save AnthonyGiretti/bb67aec8b68b173596afd548dbd7108f to your computer and use it in GitHub Desktop.
ASP.NET Core 10: Easy support of local multi host: Program.cs
var builder = WebApplication.CreateBuilder(args);
....
builder.WebHost.UseUrls(
"https://api.localhost:7001",
"https://admin.localhost:7002",
"https://frontend.localhost:7003");
var app = builder.Build();
....
app.Run();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment