Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

twoarmtom's avatar

Dealing with URLs and Forge Load Balancing

I'm watching tutorial videos and looking online, and I just want to make sure I understand this correctly before I do it as I can't find a clear example.

I currently have 3 servers each with their own app and custom domain pointed to them. I was considering to add a load balancer, and I was wondering if I need to now redirect all DNS for the domains to the load balancer IP (instead of the current servers), and it will just sort it out provided they are all connected?

0 likes
7 replies
twoarmtom's avatar

@LOACH - Yes, I wasn't clear on whether you can balance traffic between different applications on different servers, which is what it appeared to be telling me I could do.

Loach's avatar

Are you trying to use a load balancer for 3 different domains/websites? I do not think that is how load balancers work.

Loach's avatar

Ah OK then no you cannot do that. A load balancer only balances traffic for 1 IP Address

twoarmtom's avatar

@LOACH - Why not just scale up a server? And why do all demos use examples with "app-1" and "app-2". Very confusing for those of learning about this stuff haha.

Loach's avatar

Load Balancers in the end will be better than scaling up a server. They direct your traffic more evenly as opposed to everything hitting one server.

app-1 and app-2 are referring to the installation of the "single app" on each server. You load each server with the same application.

Please or to participate in this conversation.