Host Multiple Domains with the same ASP.NET MVC app?

后端 未结 2 1996
谎友^
谎友^ 2021-01-12 19:33

I want to host multiple web sites (all with different domains - not sub domains) with the same ASP.NET MVC app. I need the app to act differently based off the domain, but

2条回答
  •  太阳男子
    2021-01-12 20:17

    This should be possible with IIS using the host headers field in the bindings settings. You can add as many different host headers as you want for your application. And as long as that domain somehow goes to that host on that particular port (http or https or custom), then that application will be used.

提交回复
热议问题