cytopia / devilbox

A modern Docker LAMP stack and MEAN stack for local development
http://devilbox.org
MIT License
4.4k stars 654 forks source link

[Howto]: Node + PHP not work #1028

Closed agathasweb closed 2 months ago

agathasweb commented 3 months ago

Have you already checked elsewhere?

What are you struggling with?

I noticed something intriguing, maybe it's my lack of experience. But when I use the reverse proxy for PHP to listen to my vue on port 8080 and I need to use PHP in the same environment, PHP no longer works, only vuejs. Is that right or did I configure something wrong?

This isn't making much sense to me because currently everyone works with laravel + vue or other reactive languages, which leads me to believe that I could work with php and node in the same container using reverse proxy! But I searched a lot here on how to solve the problem and I still haven't been able to. This leads me to believe that my reasoning may be wrong!

Can anyone help me or tell me if I'm wrong?

What have you tried already?

I tried several different settings

What is your goal?

For now I'm using one domain for the node and sending requests to another in PHP!