Skip to content
This repository was archived by the owner on Nov 1, 2018. It is now read-only.
This repository was archived by the owner on Nov 1, 2018. It is now read-only.

UseIISIntegration should set IServerAddresses.PreferHostingUrls #352

Closed
@Tratcher

Description

@Tratcher

When running behind IIS ANCM should override any Kestrel endpoint configuration by setting PreferHostingUrls

hostBuilder.UseSetting(WebHostDefaults.ServerUrlsKey, address);

This can clean up some ugliness from Program.Main:
https://github.com/aspnet/Security/blob/2d7cd6038fea34b84084685648ac9d0c97be610b/samples/SocialSample/Program.cs#L19

See aspnet/Hosting#992
@JunTaoLuo

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions