iisexpress:在不修改配置文件的情况下监听外部接口:
我想使用 IISExpress 运行一个 WebService 项目,并使用以下命令行来启动它:
iisexpress.exe /path:c:\MyService /port:8000
可以,但是 Web 服务器只能通过 http://localhost:8000/MyService.asmx
访问
我知道我可以修改用户 applicationhost.config
文件来添加我的站点并用于
iisexpress.exe /site:MyService
启动它,但是,如果可能的话,我更愿意使用无配置方法来允许与 iisexpress 的外部连接。
I want to run a WebService project with IISExpress and use the following command line to start it:
iisexpress.exe /path:c:\MyService /port:8000
That works, but the webserver is only accessible by http://localhost:8000/MyService.asmx
I know that I can modify the users applicationhost.config
file to add my site and use
iisexpress.exe /site:MyService
to start it, but, if it's possible I would prefer to use the configless approach to allow external connections to iisexpress.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否修改了 HTTP.SYS 以允许外部流量?查看这些文章,了解如何执行此操作的信息:
如何向外部网络连接公开 IIS Express
使用 WebMatrix 提供外部流量
I'我的网站向外部流量提供的服务很好,但我已经修改了 applicationhost.config 文件来做到这一点。然后我刚刚创建了一个 .bat 文件来运行命令:
Have you modified HTTP.SYS to allow external traffic? Check these articles out for info on how to do that:
How to Expose IIS Express to External Network Connections
Serving External Traffic With WebMatrix
I've got mine serving up the site to external traffic fine, but I have modified the
applicationhost.config
file to do it. Then I have just created a .bat file to run the command: