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

armingdev's avatar

REST App deploy on VPS (best practice)

Hello,

I have an app built on AngularJS 1.5(front-end) and Laravel 5.4(back-end/api). Now I need suggestion for app deployment. I have Ubuntu 16.04 based VPS server with domain. Is it good idea to make two virtual servers (Apache) and deploy code in each one, then connect them, or there is a better way doing it. Do I need to use Apache proxy or something like that for connecting these two modules?

Thank you

0 likes
5 replies
manshu's avatar
manshu
Best Answer
Level 28

If its a new site, i'd suggest to put both on same instance.

armingdev's avatar

@manshu Ok, so on front - end I will call my endpoints over localhost/api url correct ?

Please or to participate in this conversation.