【问题标题】:IIS Express Enable External Request - 503IIS Express 启用外部请求 - 503
【发布时间】:2013-06-11 15:39:54
【问题描述】:

我试图让 IIS Express 工作,以便外部用户可以查看我的 MVC ASP.NET 开发网站。我按照SO answer 上的说明进行操作,但现在使用我的外部 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>

我发现以下SO answer 解决了这个问题,但它只允许它在外部地址上工作,而不是我的所有 IP 地址(本地主机、外部地址等)

<binding protocol="http" bindingInformation=":1904:your-machine-name" />

【问题讨论】:

    标签: asp.net-mvc iis iis-express


    【解决方案1】:

    我设法解决了这个问题,我的错误是认为你只能有一个绑定集,然后我为我希望服务的每个外部地址设置绑定,现在一切正常

    <bindings>
        <binding protocol="http" bindingInformation=":1904:" />
        <binding protocol="http" bindingInformation=":1904:machineName" />
        <binding protocol="http" bindingInformation=":1904:10.1.10.123" />
    </bindings>
    

    【讨论】:

      猜你喜欢
      • 2011-03-19
      • 1970-01-01
      • 1970-01-01
      • 2017-10-02
      • 2015-12-16
      • 2020-02-16
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多