[Xitami] VHost CNAME path question

Ron Ackerman xitami@lists.xitami.org
Tue, 26 Oct 2004 11:00:53 -0400


I run my own DNS server on the same machine which resolves different domains
to different IP addresses. A good easy to use DNS server is DNS Plus and if
you are on a dynamic IP you can use DNS2GO.com or 2myDNS.com. So as my ISP
changes my IP, daily I might add, DNS2GO and 2MYDSN update their DNS Server
for my new IP Address. So if someone enters www.mydomain.com, or
www.myotherdomain.com or 123.mydomain.com. it will naturally go to the IP
address of my computer. Now what does my computer do with it. That's where
DNS Plus takes that domain name and resolves it to an internal IP which
Windows 2000 Pro can have hundreds of virtial IPs. So it goes like this.

Enter www.mydomain.com > 2MYDNS.com says go to my PC at 200.111.222.111 >
DNSPlus gets it and says go to 192.168.1.12 > which my Xitami default.cfg
says this 192.168.1.12 = "mydomain.cfg" and thus viola the www.mydomain.com
index.html page displays.

If someone enters 123.mydomain.com then DNSPlus may send it to 192.168.1.13
which the Xitami default.cfg says 192.168.1.13 = "123mydomain.cfg"

I know there are other ways to do this but this works well for me. I can
host many VHosts.

Ron

-----Original Message-----
From: xitami-admin@lists.xitami.org
[mailto:xitami-admin@lists.xitami.org]On Behalf Of Alex Barna
Sent: Tuesday, October 26, 2004 10:34 AM
To: xitami@lists.xitami.org
Subject: Re: [Xitami] VHost CNAME path question


admin wrote:
>
> Ok so here's a somewhat stupid question or maybe I just need more sleep.
>
> Assume: the base host domain name is MYDOMAIN.COM

You're forgetting that domain names are for people, computers look for IP
addresses.

> Now by default all hits on www.mydomain.com, mydomain.com and
> anything.mydomain.com will hit the base host.

Because the name's resolves to the same IPaddress of the server.

> I also run several VHosted domains with different domain names.

Different names at the same address get put in the same mail box.

> I specify a cfg and aut file for a VHost path to a different directory now
> say we call the directory D:\OTHER\
>
> I want to set other.mydomain.com to go in this directory only and not to
the
> basehost but whatever I try keeps being bumped into the basehost root
path.

mydomain.com/other will send to other folder.

> I have also specified it under the Virtual Hosts section in the
default.cfg
> to no avail.
> And I also pointed to the correct path where I keep the cfg and aut files
> for this cname header.
>
> Does anyone have an idea/solution to this?
>
>    Thanks in advance

You would need different IP addresses for each of the 'other' vhost folders
to
be considered different places.

Xitami is small enough you could run a different site each with it's own
VHost
name on different ports.
IE:
Register ipaddress:80 for main, ipadress:8080 for vhost1 & using different
ports
for each vhost site.

Or just do like the big guys (& the rest of us) do & put each site at
maindomain/~vhost for each different site. Which is a lot easier.

Alex,


--
Xitami Users Mailing List -- For Xitami support
To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.778 / Virus Database: 525 - Release Date: 10/15/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.778 / Virus Database: 525 - Release Date: 10/15/2004