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

mrcsmcln's avatar

Vue.js + Nuxt.js + PHP

Is there a way to use Nuxt.js SSR with PHP? The only way I can think of is to use Nginx to send all requests from example.com/api/* to PHP and everything else to Node, but I'm not sure if that would work. Thoughts?

0 likes
3 replies
thethan's avatar

That would work, you would need to edit the nginx yourself to proxy the node server and then point your '/api/ to the PHP application.

Have been researching this as well, the thing I was doing was to have a simple nginx server with my Nuxt Application running and then a separate PHP box with my laravel application on it.

bskimball's avatar

I was thinking using nuxt to generate static pages. Maybe a server folder with laravel and a client folder with nuxt. Then set '/api' as an alias to the server folder, in my vhost file on apache.

Please or to participate in this conversation.