如何在 IIS 7.0 中为在不同端口上本地运行的 2 个应用程序配置应用程序请求路由?
我的本地计算机上正在运行 2 个应用程序。一个共享点和另一个 IIS 应用程序:
localhost:43442 localhost:5080
我已经安装了 ARR 并需要将其配置为在主机和端口上运行这两个应用程序,但在添加新服务器时,它只接受服务器名称而不接受其端口。
有什么帮助吗?
I've got 2 applications running on my local machine. One sharepoint and another IIS application:
localhost:43442
localhost:5080
I've installed ARR and need to configure it to run these 2 apps on a host and port but when adding a new server, it only accepts a server name rather than its port as well.
Any help?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
对于我来说,我需要向我的服务器场添加一个名为 localhost 的服务器。单击“高级设置...”可以指定 http 和 https 端口。将这些端口设置为您希望域代理的端口。
之后,为 URL 重写创建入站规则,将 HTTP_HOST 条件与服务器充当代理的网站域模式相匹配。为该操作选择“路由到服务器场”,然后选择指定的服务器场。
For me, I needed to add a server to my server farm, called localhost. Clicking Advanced Settings... lets you specify the http and https ports. Set those to the ports that you would like your domain proxied to.
After that, create an inbound rule for URL Rewrite that matches the HTTP_HOST condition with a pattern of your website domain that the server is acting as a proxy for. Select Route to Server Farm for the action and select the specified server farm.
我添加了一个新的入站规则并且它起作用了:)
I added a new Inbound Rule and it worked :)