使用IIS防爆preSS主办的网站(暂时)网站、IIS、preSS

2023-09-02 01:31:16 作者:小任务。

我有一个网站(MVC3),这对于发展论坛在IIS中承载防爆preSS。 (我碰到的卡西尼Devserver的错误,不得不升级...) 现在,我想知道,是否有可能让我的本地网络(后面路由器)其他机器看到该网站的托管我的机器上? (例如,如果我写的 HTTP://my.local.ip:的端口在同一个局域网上的浏览器,因为我会把网页加载?)

I have a website (MVC3), which for developement is hosted in IIS Express. (I've run into a bug of Cassini Devserver and had to upgrade...) Now, I'm wondering, is it possible to let other machines on my local net (behind router) see the site as hosted on my machine? (e.g. If I write http://my.local.ip:port into a browser on the same LAN as I am will the page load?)

推荐答案

在默认情况下IIS防爆preSS只供应本地主机的请求。为了满足外部请求修改对ApplicationHost.config 文件(位于%USERPROFILE%文档 iisex preSS 设置 )和变更本地主机'*'或你的机器名。 (记住非本地主机绑定,你必须以管理员身份运行,或URL设置ACL为管理员,然后运行iisex preSS非管理员)

By default IIS Express serves only localhost requests. To serve external requests edit applicationhost.config file (located in %userprofile%documentsiisexpressconfig) and change localhost to '*' or your machine name. (remember for non-localhost binding you must be running as administrator or set URL acl as an administrator and then run iisexpress as non-administrator)