我想知道我能否做到这一点。 如果可以的话,那么如何?
我有一个域www.xyz.com。 不同的客户端在IIS服务器上有自己的虚拟目录。 例如:
www.xyz.com/client1 www.xyz.com/client2 www.xyz.com/client3他们都在同一个盒子上。 我是否有可能将它们分开到不同的盒子中并仍然能够实现上述目标?
也就是说,如果我有3个服务器IP地址为123.456.789.10,123.456.789.11和123.456.789.12的服务器,我可以让他们共享同一个网站地址吗? 在上述场景中,客户端1将托管在123.456.789.10上,客户端2托管在123.456.789.11上,客户端3将托管在123.456.789.12上。
请告诉我。
谢谢,
KD
I want to know whether I can accomplish this. If I can, then how?
I have a domain www.xyz.com. The different clients have their own virtual directory on IIS server. Eg:
www.xyz.com/client1 www.xyz.com/client2 www.xyz.com/client3They all are hosted on the same box. Is it possible for me to seperate them out to different boxes and still be able to acheive the above?
That is, if I have 3 server boxes with ip address 123.456.789.10,123.456.789.11 and 123.456.789.12, can I have them all share the same website address? In the above scenario, client1 will be hosted on 123.456.789.10, client 2 will be hosted on 123.456.789.11 and client3 will be on 123.456.789.12.
Please let me know.
Thanks,
Kd
最满意答案
是的你可以。 您可以查看Apache和nginx等Web服务器。 他们有模块mod_proxy,它允许您添加Proxypass和ReverseProxypass规则。
例如。 Proxypass / client1 http://123.456.789.10/client1 ReverseProxypass / client1 http://123.456.789.10/client1
Proxypass / client2 http://123.456.789.11/client2 ReverseProxypass / client2 http://123.456.789.11/client2
等等。
你也可以做的是在DMZ区域的服务器上托管这个apache,然后代理通过托管IIS站点的Intranet服务器。
Yes you can. You can look into the web servers like Apache and nginx. They have modules mod_proxy which allows you to add Proxypass and ReverseProxypass rules.
Eg. Proxypass /client1 http://123.456.789.10/client1 ReverseProxypass /client1 http://123.456.789.10/client1
Proxypass /client2 http://123.456.789.11/client2 ReverseProxypass /client2 http://123.456.789.11/client2
and so on.
What you can also do is host this apache on server in DMZ zone and then proxypass to intranet servers hosting IIS sites.
更多推荐
发布评论