Chr*_*ris 5 iis asp.net-mvc iis-express
我试图让IIS Express工作,以便外部用户可以查看我的MVC ASP.NET开发网站.我按照这个SO答案的说明,但现在使用我的外部IP地址访问网站时出现503错误,localhost仍然可以正常工作.
我的配置文件似乎没问题
<site name="ManagerUI" id="5">
    <application path="/" applicationPool="Clr4IntegratedAppPool">
        <virtualDirectory path="/" physicalPath="D:\Application Development\Manager\MAIN-Branch\ManagerUI\ManagerUI" />
    </application>
    <bindings>
        <binding protocol="http" bindingInformation="*:1904:" />
    </bindings>
</site>
Run Code Online (Sandbox Code Playgroud)
我发现以下SO答案解决了这个问题,但它只能让它在外部地址而不是我的所有IP地址(localhost,外部地址等)上工作
<binding protocol="http" bindingInformation=":1904:your-machine-name" />
Run Code Online (Sandbox Code Playgroud)
    Chr*_*ris 19
我设法解决了它,我的错误是认为你只能有一个绑定集,然后我为我想要服务的每个外部地址设置绑定它现在都可以工作
<bindings>
    <binding protocol="http" bindingInformation=":1904:" />
    <binding protocol="http" bindingInformation=":1904:machineName" />
    <binding protocol="http" bindingInformation=":1904:10.1.10.123" />
</bindings>
Run Code Online (Sandbox Code Playgroud)
        |   归档时间:  |  
           
  |  
        
|   查看次数:  |  
           13262 次  |  
        
|   最近记录:  |