Report this

What is the reason for this report?

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

Posted on October 21, 2014

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



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.