How to make IIS web site DNS mapping dynamic without using drivers/etc/hosts

0

The current situation:

I've got a C# .NET Core backend and a Angular 7 frontend packed together. It runs flawlessy with IIS if I:

  • Path in IIS Connections is: Sites / MyWebSite and that's all.

Something like this: Sites/MyWebSite: --- SomeFolder | this is my project --- wwwwroot |

  • hosts file:

127.0.0.1 mywebsite

It runs well from any port I set, it works well with multiple bindings too.


What I want to achieve:

  • Sites / Default Web Site / (my web site as an application among other ones with virtual path: /mywebsite)

  • Leave hosts file alone!

I cannot make this working!

The most specific error message I got was "0x8007000d".

Thanks for your help :)

c#
iis
web-deployment
asked on Stack Overflow May 9, 2019 by atanii

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0