Answer the question
In order to leave comments, you need to log in
How to host Vue.js SPA, Laravel, Apace on VPS?
There is a project consisting of two folders:
Answer the question
In order to leave comments, you need to log in
Recently launched a similar configuration.
We put Apache, Nodejs, Nginx on the server.
In Apache, we set up a virtual host on my-site.ru:8080
For spa, we raise the express server on my-site.ru:3000 (port numbers are conditional)
In nginx, we raise a server on the eightieth port and distribute requests.
Root ('/') - send to node server, apish ('/api') - to apache.
We start the Nodovsky express server using pm2
Actually, that's all.
I asked a question here , there are examples of configs.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question