如何在共享相同的IP地址的同时托管不同IIS服务器上的不同公司部门/客户端?(How to host for different company departments/clients on diff

编程入门 行业动态 更新时间:2024-10-20 16:03:48
如何在共享相同的IP地址的同时托管不同IIS服务器上的不同公司部门/客户端?(How to host for different company departments/clients on different IIS servers while sharing same ip address?)

我想知道我能否做到这一点。 如果可以的话,那么如何?

我有一个域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/client3

They 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.

更多推荐

本文发布于:2023-04-28 04:23:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1330301.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:客户端   器上   部门   地址   如何在

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!