在Plesk上的ASP.Net通配符子域配置中需要帮助吗

在Plesk上的ASP.Net通配符子域配置中需要帮助吗,asp.net,subdomain,hosting,plesk,windows-hosting,Asp.net,Subdomain,Hosting,Plesk,Windows Hosting,我已经创建了一个网站,比如example.com,现在我有了一个功能,点击链接,它应该被移动到nav.example.com。 现在子域名可以是用户选择的任何名称,所以我不能创建子域名, 所以我在谷歌上搜索发现,带有“A”的通配符DNS条目可以访问该帐户。通过此更改,我可以成功ping子域,也可以浏览它,但它始终显示服务器默认页面 I tried many things : [http://www.dennisonpro.info/simple-multitenancy-with-asp-net

我已经创建了一个网站,比如example.com,现在我有了一个功能,点击链接,它应该被移动到nav.example.com。 现在子域名可以是用户选择的任何名称,所以我不能创建子域名, 所以我在谷歌上搜索发现,带有“A”的通配符DNS条目可以访问该帐户。通过此更改,我可以成功ping子域,也可以浏览它,但它始终显示服务器默认页面

I tried many things :
[http://www.dennisonpro.info/simple-multitenancy-with-asp-net-mvc-4/][1]
[http://stackoverflow.com/questions/278668/is-it-possible-to-make-an-asp-net-mvc-route-based-on-a-subdomain][2]
[https://www.digitalocean.com/community/tutorials/how-to-set-up-and-test-dns-subdomains-with-digitalocean-s-dns-panel][1]
I have also added UrlRewrite :
 <rewrite >
      <rules>
        <rule name="CName to URL"  stopProcessing="true">
          <match url=".*" />
          <conditions>
            <add input="{HTTP_HOST}"  pattern="^(?!www)(.*)\.ebaraati\.com$" />
          </conditions>
          <action type="Rewrite" url="http://ebaraati.com/Preview/Index?url={C:1}" appendQueryString="false"  />
        </rule>
      </rules>
    </rewrite>


Any help would be appreciated ?



  [1]: http://www.dennisonpro.info/simple-multitenancy-with-asp-net-mvc-4/
  [2]: http://stackoverflow.com/questions/278668/is-it-possible-to-make-an-asp-net-mvc-route-based-on-a-subdomain
我尝试了很多东西:
[http://www.dennisonpro.info/simple-multitenancy-with-asp-net-mvc-4/][1]
[http://stackoverflow.com/questions/278668/is-it-possible-to-make-an-asp-net-mvc-route-based-on-a-subdomain][2]
[https://www.digitalocean.com/community/tutorials/how-to-set-up-and-test-dns-subdomains-with-digitalocean-s-dns-panel][1]
我还添加了URLRewite:
如果有任何帮助,我们将不胜感激?
[1]: http://www.dennisonpro.info/simple-multitenancy-with-asp-net-mvc-4/
[2]: http://stackoverflow.com/questions/278668/is-it-possible-to-make-an-asp-net-mvc-route-based-on-a-subdomain
要求: 用户可以创建团队,每个团队都有一个子域与之关联。 现在user1选择一个子域“teamA”。现在用户想要查看团队属性、成员映射,它将重定向到teamA.example.com


现在可以有n个团队,所以我不能为每个团队创建子域,所以我需要设置动态域系统。

A记录将URL指向IP地址。如果已将主域名(例如example.com)设置为IP地址,则可以使用子域的CNAME记录:sub-domain.example.com

除非你已经为子域设置了托管,否则你不会看到任何东西


我不知道你想达到什么目的。您能提供更多详细信息吗?

A记录将URL指向IP地址。如果已将主域名(例如example.com)设置为IP地址,则可以使用子域的CNAME记录:sub-domain.example.com

除非你已经为子域设置了托管,否则你不会看到任何东西


我不知道你想达到什么目的。您能提供更多详细信息吗?

顺便说一句,Windows 2016中的IIS 10支持通配符子域,您可以在Plesk 17中创建此类子域

顺便说一句,Windows 2016中的IIS 10支持通配符子域,您可以在Plesk 17中创建此类子域