gpt4 book ai didi

Route traffic between Multiple webservers on dedicated server(在专用服务器上的多个Web服务器之间路由流量)

转载 作者:bug小助手 更新时间:2023-10-24 21:15:01 25 4
gpt4 key购买 nike



I have a dedicated server with proxmox installed.
I have on it multiple vps and on each vps there is a website which is eather a domain or subdomain.
All have same Ip address.

我有一个安装了proxmox的专用服务器。我有它的多个VP,在每个VP上有一个网站,这是一个域名或子域。都有相同的IP地址。


How can i route traffic between all vps instances

如何在所有VP实例之间路由流量



let say my domain is vps.com so
1.vps.com goes to vps 1




2.vps.com goes to vps 2



Do i need to create a vps that routes the traffic? I need the best method used in such situation.

我是否需要创建路由流量的VP?我需要在这种情况下使用最好的方法。


更多回答
优秀答案推荐

Your query is generic, in simple answer is Loadbalancer or reserve-proxy or rewrite. so I will cover more topics:

您的查询是通用的,简单的答案是负载均衡器、保留代理或重写。因此,我将讨论更多主题:



  • You may need to use SSL which could cover CA ssl *.vps.com domain, (please note many provider provide free option like cloudflare) so that all subhosts are covered under umberlla regardless how many host are added. This simplifies SSL Part. Using let’s encrypt SSL for each subdomain (1.vps.com), (2.vps.com) will cause difficulties for you when you will scale in future. SO this is first and important point before you deploy loadbalancer.

  • Depending on your environment/scale of traffic/platforms, loadbalancer are hardware based for on-premise or cloud based virtual instance. Depending on your requirement you can google it. Usually all does same job what your requirement is.

  • If you are new in Loadbalancer part, I would suggest to use any opensource loadbalancer (google search) to test and try before purchasing any premium.

  • If you are managing business critical related, then switch to AWS. https://aws.amazon.com/elasticloadbalancing/ or Cloudflare Loadbalancer to keep it simple.

  • You can create many filteration rules or listen policy, CSP and webfilter in loadbalance to proxy or avoid bots or DDOS attacks. So This will improve your End-user’s interaction faster.

  • Please note loadbalancer does have cache compatibility, so if your web app is having some sort of logged and guest session or if you are tracking login session via cookies on your real server, makes sure to check documentation and add by-pass cache policy for such query.

  • Before implementing loadbalancer, make sure to adjust/adapt recommended setting for internal server like dns, apache/nginix config or HTTP ports related query. Again review the documentation. This will save you time.


Again your query was very general, I hope i was able to answer it in simple words.

同样,你的问题很笼统,我希望我能用简单的话回答它。


更多回答

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com