Monday, July 16, 2018

Re: multiple django websites

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 <trapperx.1@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, <tubaman@fattuba.com> wrote:
Yes

On July 16, 2018 6:50:37 AM CDT, mottaz hejaze <trapperx.1@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.
To post to this group, send email to django-users@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.

--
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-users@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.

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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@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/CAK4qSCdvJPESQ8ZqjMWDV4_J9dzRWHdC36FuopxFRdzZTNJkjg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment