Skip to content

Windows: Is it possible to bind to hostnames like *.localhost for local development? #826

Answered by johanndev
johanndev asked this question in General
Discussion options

You must be logged in to vote

Thanks for all your input - I guess there is currently no 'ideal' solution for my scenario.
After thinking about the suggestions, I came to the realization that what I really want is a IIS-esque product that is tightly integrated with the ASP.NET Core ecosystem... Maybe a global tool that allows for commands àla:
dotnet hosting site add --name "MySite" --path "C:\inetpub\mysite"
and
dotnet hosting binding add --site "MySite" --hostname "https://dev.mysite.localhost" --type https --cert-thumbprint 1128a412342170694be96cb987c5c93af063d1c7
...or something along these lines.

The IISAdministration cmdlets already enable the configuration of IIS through the CLI, so I guess in the end there is no

Replies: 4 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@Tratcher
Comment options

@johanndev
Comment options

Comment options

You must be logged in to vote
3 replies
@johanndev
Comment options

@Tratcher
Comment options

@johanndev
Comment options

Comment options

You must be logged in to vote
2 replies
@Tratcher
Comment options

@shirhatti
Comment options

Answer selected by karelz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants