Re: Virtual hosting...
- From: "Anthony" <anthony.spam@xxxxxxxxxxxxxx>
- Date: Sun, 3 Jun 2007 16:50:10 +0100
That's right. DNS is just translating a name to an IP address so the client
can send the request to a server over tcp/ip. The web site is simply
answering a request that has been sent to the IP address it listens on. The
difference with host headers is that IIS looks at the header of the request
to see which instance (site) should handle it.
Hope that helps,
Anthony
http://www.airdesk.co.uk
"mrecomm101" <mrecomm101@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:9F4EF4FA-CF97-4110-BBA3-41BABCF194DB@xxxxxxxxxxxxxxxx
Anthony,
Thanks! This last illustrative was most helpful. It does make sense. And I
assume that on the DNS side, you would create an A record for each domain
and
point them to that single IP and that would be the other halve of the
equation, right?
"Anthony" wrote:
You can point any web site to any folder anywhere as its home folder,
including subfolders of other websites. Just set up the web site, and set
its home directory to be the folder you want. Where the folder is on the
file system is not related to the hosting method.
To see how host headers work:
- Set up one site absolutely by default (no host headers, nothing, just
default)
- Set up another default site on the same IP address. It won't start,
because it is on the same port and same IP address.
- Go back to the first site and give it a host header. Go to the second
site
and give it a host header. It will now start.
- Add as many other sites as you like on the same IP with host headers.
Notice that is it completely unrelated to what folder you choose as the
home
directory. It is not necessary for them even to be under the Inetpub
default
folder. You might want to create a folder called "Websites" and put the
home
folders there, as in "Websites\web1, Websites\web2. That is just how you
organise the folders on disk.
If you try it, it will be clear.
Anthony
http://www.airdesk.com
"mrecomm101" <mrecomm101@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:FDAA0D67-479B-45D2-B84E-44A57C5A515D@xxxxxxxxxxxxxxxx
Anthony,
Let me explain it another way...
The scenero I'm trying to create is this:
In IIS, I have a Website setup, www.websites.com on Port 80 with IP
1.2.3.4.
As subdirectories off the home directory, I have a foldes that contain
small
individual websites, like this:
www.websites.com
folder 1: www.smallsite1.com
folder 2: www.othersite.com
etc.
I want to be able to point the domain "www.smallsite1.com" to folder 1
under
www.websites.com, and so on.
I've seen this called shared IP hosting or name-based virtual hosting.
Mostly I've seen this done through control panel programs. Do you think
this
can be achieved through your host header solution? If so, can you
illustrate
how you can point it to a specific subdirectory?
"Anthony" wrote:
Steve,
Host headers enable you to run multiple sites under one IP and on the
same
port. IIS takes the request, looks at the header and sends it to the
right
site.
If you wanted to point multiple domains to one site you would just use
DNS.
Anthony
http://www.airdesk.co.uk
"mrecomm101" <mrecomm101@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:AFE1DD3F-1E2A-4F2F-ABF5-41B32048DF46@xxxxxxxxxxxxxxxx
Hi Anthony,
That is how you can point multiple domains to the same site. I'm
looking
to
have multiple domains/multiple sites under one master IP.
-- Steve
"Anthony" wrote:
You can use host headers in IIS to set up your domains as separate
sites
under one IP,
Anthony
http://www.airdesk.co.uk
"mrecomm101" <mrecomm101@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message
news:C7474A74-A57D-4AC7-AD8F-21B7F2B37921@xxxxxxxxxxxxxxxx
Hi, I'm hosting websites and I want to be able to create a bunch
of
small
websites that will run independently under one IP.
How can I point a domain, like "virtualsite.domain.com" to a
directory
within a dedicated IP site?
Any thoughts?
-- Steve
.
- References:
- Re: Virtual hosting...
- From: Anthony
- Re: Virtual hosting...
- From: Anthony
- Re: Virtual hosting...
- From: mrecomm101
- Re: Virtual hosting...
- From: Anthony
- Re: Virtual hosting...
- From: mrecomm101
- Re: Virtual hosting...
- Prev by Date: Re: Primary and Secondary vs. two primaries
- Next by Date: Dynamic DNS Service
- Previous by thread: Re: Virtual hosting...
- Next by thread: Re: Inside DNS Issue
- Index(es):
Relevant Pages
|