Question

Deploy 2 apps, 2 domains on 1 VPS. Is that possible?

Posted October 21, 2014 1.7k views

Is it possible to deploy 2 or more diffrent apps, get 2 or more domains on one VPS instance?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

It’s very possible, I do it myself. Point both/all your domains at the IP address of the VPS and then install Nginx as a reverse proxy. Make sure it’s bound to port 80 and your other apps are bound to different ports. Then in the nginx site config (/etc/nginx/sites-enabled/default), included server{} blogs for each domain, listening to port 80 and forwarding to the port of that particular app.

Submit an Answer