Question

Is it possible to host multiple django website with different domain on same plan.

Hi everyone. One of my django site is running on digitalocean with nginx and gunicorn and I want to deploy another website to the same droplet. How it is possible. Please suggest any tutorial.

Subscribe
Share

Submit an 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.

Hello there,

Yes, you can host multiple domains on a single droplet. As already mentioned you just need to set up a new server block for the domain name.

We have a tutorial on How To Set Up Django with Postgres, Nginx, and Gunicorn on Ubuntu 22.04 which you can check here as well:

https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-22-04

https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-22-04#configure-nginx-to-proxy-pass-to-gunicorn

Hope that this helps!

Hello there,

Yes, you can host multiple domains on a single droplet. As already mentioned you just need to set up a new server block for the domain name.

We have a tutorial on How To Set Up Django with Postgres, Nginx, and Gunicorn on Ubuntu 22.04 which you can check here as well:

https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-22-04

https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-22-04#configure-nginx-to-proxy-pass-to-gunicorn

Hope that this helps!

Hello there,

Yes, you can host multiple domains on a single droplet. As already mentioned you just need to set up a new server block for the domain name.

We have a tutorial on How To Set Up Django with Postgres, Nginx, and Gunicorn on Ubuntu 22.04 which you can check here as well:

https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-22-04

https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-22-04#configure-nginx-to-proxy-pass-to-gunicorn

Hope that this helps!

Hello there,

Yes, you can host multiple domains on a single droplet. As already mentioned you just need to set up a new server block for the domain name.

We have a tutorial on How To Set Up Django with Postgres, Nginx, and Gunicorn on Ubuntu 22.04 which you can check here as well:

https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-22-04

https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-22-04#configure-nginx-to-proxy-pass-to-gunicorn

Hope that this helps!

Hi @shahabali6627,

Yes, it is possible. You just need to create a second Nginx config and then add your Proxy settings:

https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-16-04

You can check the following tutorial and check the #Configure Nginx to Proxy Pass to Gunicorn section of the tutorial. It will show you how to create the Nginx config and proxy it to your App.