代理/服务总线/反向 SSH
试图找出将一群运行 WCF 服务的客户端计算机轻松连接到广域网上的 LAMP 服务器的最佳方法....
目前只需使用 DynDNS 设置每个客户端,并在路由器上进行端口转发..绝对不是部署的最佳情况。
理想情况下,他们希望有一个简单的程序,可以自动将它们连接到 LAMP 服务器......
任何人都可以指出我正确的方向吗?
我应该考虑反向 SSH、Windows Azure AppFabric ServiceBus 吗?
Trying to figure out the best way to easily connect a bunch of client machines running WCF service to a LAMP server on a wide area network....
Currently just set up set up each client with DynDNS, and port forwarding at the router... Absolutely not the best situation for deployment.
Ideally would like to have a simple program they run which automatically connects them to the LAMP server....
Can anyone point me in the right direction?
Should I be looking at Reverse SSH, Windows Azure AppFabric ServiceBus?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是创建服务总线中继的场景之一。通过中继,可以通过 ServiceBus 在 WCF 服务和客户端之间建立一种隧道,无论双方部署在何处(只要双方都可以访问 Internet)。
本文有一个关于与您所描述的非常相似的场景的教程:
http://www.windowsazure.com/en-us/开发/网络/教程/混合解决方案/
This is one the scenarios that Service Bus relay was created for. With the relay, a sort of tunnel is established via ServiceBus between your WCF services and your clients, independently of where each party is deployed (as long as both have internet access, that is).
This article has a tutorial on an scenario that's very similar to what you describe:
http://www.windowsazure.com/en-us/develop/net/tutorials/hybrid-solution/
反向代理在这里肯定是相关的。
有多种方法可以提供此服务。您提到使用 LAMP 堆栈,因此我假设您使用 Apache 作为 Web 服务器。
您需要几个可选的 Apache 模块。代理和反向代理。
通常,您会为每个实际应用程序分配一个虚拟“文件夹”:
反向代理会将请求转发到实际的内部服务器/端口:(
或您想要的任何配置)
A reverse proxy would certainly be relevant here.
There are a number of ways to provide this. You mention using a LAMP stack so I'm assuming that you are using Apache as a web server.
You need a couple of optional Apache modules. Proxy and Reverse Proxy.
Typically you would assign a virtual "folder" to each actual app:
The reverse proxy would forward requests through to the actual, internal server/port:
(or whatever configuration you want)