Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/36.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net IIS应用程序绑定_Asp.net_Iis - Fatal编程技术网

Asp.net IIS应用程序绑定

Asp.net IIS应用程序绑定,asp.net,iis,Asp.net,Iis,我有两个域名: sub1.example.com sub2.example.com 在IIS中,我有一个: WEBSITE[SUB1] Content APPLICATION[SUB2] 我希望sub1.example.com显示站点sub1的内容,sub2.example.com显示应用程序sub2的内容。如何使用IIS绑定实现它?我还没弄明白 谢谢。我认为绑定不可能做到这一点。绑定用于将域与网站(而不是应用程序)关联 一个可能的解决方案是创建一个指向应用程序文件夹的第二个网

我有两个域名:

sub1.example.com sub2.example.com

在IIS中,我有一个:

WEBSITE[SUB1]

   Content

   APPLICATION[SUB2]
我希望sub1.example.com显示站点sub1的内容,sub2.example.com显示应用程序sub2的内容。如何使用IIS绑定实现它?我还没弄明白


谢谢。

我认为绑定不可能做到这一点。绑定用于将域与网站(而不是应用程序)关联

一个可能的解决方案是创建一个指向应用程序文件夹的第二个网站(如果SUB2位于SUB1中,可能会有点直观,因为除非您添加限制,否则可能可以通过SUB1域访问SUB2),但是,您可以将sub2.example.com绑定到第二个网站,并让它根据需要显示应用程序sub2的内容

干杯