On Tue, Feb 10, 2015 at 3:22 PM, Chen Xu <xuche...@gmail.com> wrote:
> Hi
> I am using Django to build a website.
>
> I saw some websites have www.ABC.com, support.ABC.com, and career.ABC.com. I
> wonder how this is achieved. Are these 3 different apps in 1 project, or 3
> different projects.
>
> Thanks

Technically:

Each name resolves to an IP address. Many names can resolve to one IP.
The browser contacts that IP address and requests a page, including
the server name entered, eg 'career.abc.com'.
The web server decides how to handle that request.
A web server can be configured to respond to requests for different
names in different ways.
It can serve a completely different website for each name, running a
separate web application for each one, each with a different document
root.
Alternatively, it can send all requests to the same web application,
or some mixture of the two.

Django is not a web server, but can be used with all common web
servers to achieve any of the scenarios above. You can run several
distinct and different web applications, one for each name, or one
application could service many names. It's more common to serve many
sites from one django app if all the sites are versions of the same
thing, for instance, forum1.abc.com and forum2.abc.com.

Cheers

Tom

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFHbX1%2B0T144bmaiV2yngq0jt3v4qtrnijikLd8z7_A--PvBbw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to