IIS防爆preSS启用外部请求 - 503 [英] IIS Express Enable External Request - 503

查看:153
本文介绍了IIS防爆preSS启用外部请求 - 503的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图让IIS防爆preSS的工作,使外部用户可以查看我的ASP.NET MVC开发的网站。我跟着这个说明,以便回答但我现在得到一个503错误访问使用我的外部IP地址的网站时,本地主机仍然能正常工作。

我的配置文件似乎确定

 <网站名称=ManagerUIID =5>
    <应用路径=/applicationPool =Clr4IntegratedAppPool>
        < virtualDirectory路径=/physicalPath =D:\\应用程序开发\\管理\\ MAIN支行\\ ManagerUI \\ ManagerUI/>
    < /用途>
    <&绑定GT;
        <绑定协议=HTTPbindingInformation =*:1904年:/>
    < /绑定>
< /网站>

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

 <绑定协议=HTTPbindingInformation =:1904年:你的机器名/>


解决方案

我设法解决它,我的错误是认为你只能有一个绑定集,然后我设置为每一个外部地址绑定我希望担任和现在所有的作品

 <&绑定GT;
    <绑定协议=HTTPbindingInformation =:1904年:/>
    <绑定协议=HTTPbindingInformation =:1904年:计算机名/>
    <绑定协议=HTTPbindingInformation =:1904年:10.1.10.123/>
< /绑定>

I have attempted to get IIS Express working so that external users can view my MVC ASP.NET development website. I followed instructions on this SO answer but am now getting a 503 error when accessing the website using my external IP address, localhost still works fine.

My configuration file seems ok

<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>

I found the following SO answer which solves the issue, but it will ONLY allow it to work on an external address rather than all my IP addresses (localhost, external one etc)

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

解决方案

I managed to solve it, my mistake was thinking that you could only have one binding set, I then setup binding for every external address I wished to serve on and it now all works

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

这篇关于IIS防爆preSS启用外部请求 - 503的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆