[Tfug] subdomains
Jeffrey Denton
tfug@tfug.org
Mon Dec 2 19:11:02 2002
On Mon, 2 Dec 2002, klsmith wrote:
> <VirtualDomain hobby.mysite.com. 123.123.123.123>
> DocumentRoot /web/mysite.com/hobby/
> </VirtualDomain>
There is usually more than one way to do things, but the following works:
<VirtualHost 169.244.19.3>
ServerAdmin dentonj@closeedge.net
DocumentRoot /some/dir/web
ServerName dentonj.closeedge.net
<Directory "/some/dir/web">
Options Indexes IncludesNoExec
AllowOverride none
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
The named.conf entry for the above contains:
zone "closeedge.net" in {
type master;
file "pz/closeedge.net";
};
The file pz/closeedge.net contains:
dentonj A 169.244.19.3
There are other things in the above files, I just included the important stuff.
dentonj