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

Steady-Entertainment's avatar

Laravel / nodejs

Dear all,

As part of the project I programmed a forum from the laracast series “let’s build a forum with TDD”

The problem:

The forum is just one part of the application.

The landing page is written in JavaScript and nodejs as the backend.

Now my question is how do we manage two projects in a different backend language under the same domain?

We were discussing nginx and then play around with the available and enabled sites and let both apps live on one Webserver

If you hit

example.com/

you get redirected to the landing page written in Nodejs as backend

If you hit

example.com/forum

you get redirected to the Laravel app including the forum

//I would like to use forge to deploy the Laravel app//

I would be really happy to get some fresh ideas :-)

High level picture from some experienced developers would be cool.

0 likes
1 reply
bobbybouwmann's avatar
Level 88

Yeah, Nginx is a good solution for this. Alternatively, you can use a load balancer, but that is more expensive and depends on the size of the project.

Forge can handle this as well since you can decide where the application lives on your server ;)

Please or to participate in this conversation.