I have setup working nuxtjs ssr app using pm2 on the vps linux cloud. Its works well on the localhost. For the online deployment, I use pm2 to get the app running. The app is accessible through the domain address. But the issue is with the routes, for example I have set the address as : www.someurl.com/ssrapp , the apache uses proxypass to map the /ssrapp to the www.localhost:3000/ address. But after the app page loads, it says /ssrapp route not found. I can see this issue could be with mapping done in the apache proxypass. But how to configure this part? I cant use nginx ,so can only proceed with apache setup for this.
-
I'm not sure about the extra proxypass, isn't this enough? nuxtjs.org/deployments/pm2kissu– kissu2022-12-17 19:25:54 +00:00Commented Dec 17, 2022 at 19:25
-
The pm2 helps with running and managing the js app. I need either nginx or apache to direct the domain to the localhost:port where the app is running. So I use proxypass from apache to do this.Balaram26– Balaram262022-12-18 05:14:56 +00:00Commented Dec 18, 2022 at 5:14
Add a comment
|