Creating Subdomains Programmatically

前端 未结 3 960
你的背包
你的背包 2021-02-02 02:05

I am looking for a solution to create subdomains programmatically in ASP.NET, ASP.NET MVC and PHP. Specifically, a user profile page should resolve for both: www.domain.co

3条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-02 02:22

    There is no generic way to create subdomains. You will need to call an API provided by your ISP or DNS provider -- typically SOAP or REST.

    Either that, or use a wildcard domain (*).

    On the IIS side, be sure to configure you application so that it doesn't use Host headers.

提交回复
热议问题