I am trying to render my asp.net core app locally on https://localhost:44301 and also https://sub.localhost.test.
I added the following to my hosts
file 127.0.0.1 sub.localhost.test
. Then I edited the binding info in the C:/ProjectName/.vs/config/applicationhost.config
file to the following
<site name="ProjectName" id="2">
<application path="/" applicationPool="Clr4IntegratedAppPool">
<virtualDirectory path="/" physicalPath="C:\ProjectName" />
</application>
<bindings>
<binding protocol="https" bindingInformation="*:44301:localhost" />
<binding protocol="https" bindingInformation="sub.localhost.test" />
</bindings>
</site>
I also trird <binding protocol="https" bindingInformation="*:44301:sub.localhost.test" />
. But, when I go to https://sub.localhost.test
I get Unable To Connect
error.
Is it possible to run my local project on both https://localhost:44301 and
https://sub.localhost.test`? If so, how?