[Xitami] Sub domains
Tom Baker
xitami@lists.xitami.org
Sun, 21 Dec 2003 00:01:53 -0500
This is a multi-part message in MIME format.
------=_NextPart_000_001E_01C3C755.A42EBD60
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
[Alias]----- Original Message -----=20
From: Ron Ackerman=20
To: xitami@lists.xitami.org=20
Sent: Saturday, December 20, 2003 3:09 PM
Subject: [Xitami] Sub domains
I am able to do sub domains like www.mydomain.com/sub or =
sub.mydomain.com. Now of course the first one is just a directory and =
doesn't need it's own IP address. However with the second one I have to =
set up an IP address for it. Is there a way to set up sub.mydomain.com =
without it's own IP.=20
Ron
You need two things to make this work.
You need a CNAME record in your DNS server pointing to mydomain.com
Example:
A-record : mydomain.com =3D 192.168.0.1
CNAME-record : www =3D mydomain.com (This would get resolved as =
www.mydomain.com =3D mydomain.com =3D 192.168.0.1. NOTE: some DNS =
services requite CNAME www.mydomain.com =3D mydomain.com. Check their =
instructions first.)
CNAME-record : sub =3D mydomain.com (This would get resolved as =
sub.mydomain.com =3D mydomain.com =3D 192.168.0.1)
Now, you need to set up a virtual host in Xitami, where sub.mydomain.com =
=3D config.file
When a request for sub.mydomain.com comes in, it will get passed to the =
virtual host you setup.
Tom
------=_NextPart_000_001E_01C3C755.A42EBD60
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>[Alias]</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1276" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV>----- Original Message ----- </DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV=20
style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
<A title=3Dron@miplanet.net href=3D"mailto:ron@miplanet.net">Ron =
Ackerman</A>=20
</DIV>
<DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
title=3Dxitami@lists.xitami.org=20
href=3D"mailto:xitami@lists.xitami.org">xitami@lists.xitami.org</A> =
</DIV>
<DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Saturday, December 20, =
2003 3:09=20
PM</DIV>
<DIV style=3D"FONT: 10pt arial"><B>Subject:</B> [Xitami] Sub =
domains</DIV>
<DIV><BR></DIV>
<DIV><SPAN class=3D989120520-20122003><FONT face=3DArial =
color=3D#0000ff size=3D2>I am=20
able to do sub domains like <A=20
href=3D"http://www.mydomain.com/sub">www.mydomain.com/sub</A> or=20
sub.mydomain.com. Now of course the first one is just a directory and =
doesn't=20
need it's own IP address. However with the second one I have to set up =
an IP=20
address for it. Is there a way to set up sub.mydomain.com without it's =
own IP.=20
</FONT></SPAN></DIV>
<DIV><SPAN class=3D989120520-20122003><FONT face=3DArial =
color=3D#0000ff=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D989120520-20122003><FONT face=3DArial =
color=3D#0000ff=20
size=3D2>Ron</FONT></SPAN></DIV></BLOCKQUOTE>
<DIV dir=3Dltr><SPAN class=3D989120520-20122003>You need two things to =
make this=20
work.</SPAN></DIV>
<DIV dir=3Dltr><SPAN class=3D989120520-20122003></SPAN> </DIV>
<DIV dir=3Dltr><SPAN class=3D989120520-20122003>You need a CNAME record =
in your DNS=20
server pointing to mydomain.com</SPAN></DIV>
<DIV dir=3Dltr><SPAN class=3D989120520-20122003>Example:</SPAN></DIV>
<DIV dir=3Dltr><SPAN class=3D989120520-20122003>A-record : mydomain.com =
=3D=20
192.168.0.1</SPAN></DIV>
<DIV dir=3Dltr><SPAN class=3D989120520-20122003>CNAME-record : www =3D=20
mydomain.com (This would get resolved as <A=20
href=3D"http://www.mydomain.com">www.mydomain.com</A> =3D mydomain.com =
=3D=20
192.168.0.1. NOTE: some DNS services requite CNAME <A=20
href=3D"http://www.mydomain.com">www.mydomain.com</A> =3D mydomain.com. =
Check their=20
instructions first.)</SPAN></DIV>
<DIV dir=3Dltr><SPAN class=3D989120520-20122003>CNAME-record : sub =3D=20
mydomain.com (This would get resolved as sub.mydomain.com =3D =
mydomain.com =3D=20
192.168.0.1)</SPAN></DIV>
<DIV dir=3Dltr><SPAN class=3D989120520-20122003></SPAN> </DIV>
<DIV dir=3Dltr><SPAN class=3D989120520-20122003>Now, you need to set up =
a virtual=20
host in Xitami, where sub.mydomain.com =3D config.file</SPAN></DIV>
<DIV dir=3Dltr><SPAN class=3D989120520-20122003></SPAN> </DIV>
<DIV dir=3Dltr><SPAN class=3D989120520-20122003>When a request for =
sub.mydomain.com=20
comes in, it will get passed to the virtual host you setup.</SPAN></DIV>
<DIV dir=3Dltr><SPAN class=3D989120520-20122003></SPAN> </DIV>
<DIV dir=3Dltr><SPAN class=3D989120520-20122003></SPAN> </DIV>
<DIV dir=3Dltr><SPAN =
class=3D989120520-20122003>Tom</SPAN></DIV></BODY></HTML>
------=_NextPart_000_001E_01C3C755.A42EBD60--