multiple django websites

47 views
Skip to first unread message

mottaz hejaze

unread,
Jul 16, 2018, 7:31:16 AM7/16/18
to django...@googlegroups.com
hello friends , 

is it possible to host multiple django websites on a single VPS ?? 

i mean real production websites all go live in the same time from the same VPS like digitalocean VPS

thx all

mottaz hejaze

unread,
Jul 16, 2018, 7:51:13 AM7/16/18
to django...@googlegroups.com

Ryan Nowakowski

unread,
Jul 16, 2018, 8:53:49 AM7/16/18
to django...@googlegroups.com
Yes

mottaz hejaze

unread,
Jul 16, 2018, 9:18:50 AM7/16/18
to django...@googlegroups.com
ryan do you have a guide for this .. i found one but its outdated i think

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/2656591E-B7AE-410C-9008-8FC0C76B7DF3%40fattuba.com.
For more options, visit https://groups.google.com/d/optout.

Andréas Kühne

unread,
Jul 16, 2018, 12:11:43 PM7/16/18
to django...@googlegroups.com
This is more of a webserver configuration thing than configuration of django.

You can have multiple django instances running on the same server - just add the code in several directories - also with the virtualenvironments for each.

Then you need to configure your webserver to point to the correct installations depending on the incoming address.

For apache:

For nginx:

These are examples that I was able to google within 5 minutes - You could start there and then expand on the configuration as needed. Even though the articles are a bit dated - I don't think there are severe differences on how to deploy django.

Regards,

Andréas

2018-07-16 15:18 GMT+02:00 mottaz hejaze <trapp...@gmail.com>:
ryan do you have a guide for this .. i found one but its outdated i think
On Mon, 16 Jul 2018, 14:53 Ryan Nowakowski, <tub...@fattuba.com> wrote:
Yes

On July 16, 2018 6:50:37 AM CDT, mottaz hejaze <trapp...@gmail.com> wrote:

hello friends , 

is it possible to host multiple django websites on a single VPS ?? 

i mean real production websites all go live in the same time from the same VPS like digitalocean VPS

thx all

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.

To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

mottaz hejaze

unread,
Jul 16, 2018, 2:13:22 PM7/16/18
to django...@googlegroups.com
thanks ryan and andreas . ill cjlheck that and see

On Mon, 16 Jul 2018, 18:10 Andréas Kühne, <andrea...@hypercode.se> wrote:
This is more of a webserver configuration thing than configuration of django.

You can have multiple django instances running on the same server - just add the code in several directories - also with the virtualenvironments for each.

Then you need to configure your webserver to point to the correct installations depending on the incoming address.

For apache:

For nginx:

These are examples that I was able to google within 5 minutes - You could start there and then expand on the configuration as needed. Even though the articles are a bit dated - I don't think there are severe differences on how to deploy django.

Regards,

Andréas

2018-07-16 15:18 GMT+02:00 mottaz hejaze <trapp...@gmail.com>:
ryan do you have a guide for this .. i found one but its outdated i think
On Mon, 16 Jul 2018, 14:53 Ryan Nowakowski, <tub...@fattuba.com> wrote:
Yes

On July 16, 2018 6:50:37 AM CDT, mottaz hejaze <trapp...@gmail.com> wrote:

hello friends , 

is it possible to host multiple django websites on a single VPS ?? 

i mean real production websites all go live in the same time from the same VPS like digitalocean VPS

thx all

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.

To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.

To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

Ryan Nowakowski

unread,
Jul 18, 2018, 4:56:38 PM7/18/18
to django...@googlegroups.com
It varies from distro to distro and webserver to webserver but here's a
guide for Apache on Debian:

https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-debian-8

After that's set up, you can then add Django to each virtual host by
following the Django documentation for running under Apache:

https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/modwsgi/
> > <https://groups.google.com/d/msgid/django-users/2656591E-B7AE-410C-9008-8FC0C76B7DF3%40fattuba.com?utm_medium=email&utm_source=footer>
> > .
> > For more options, visit https://groups.google.com/d/optout.
> >
>
> --
> You received this message because you are subscribed to the Google Groups "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
> To post to this group, send email to django...@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHV4E-e1vOkXNpi-kiFs%2B6Z2SGXfmzWNp137OYVsPB4dZmZ52Q%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages