[H-GEN] Virtual Webhosting / IP aliasing

James C. McPherson James.McPherson at mq.edu.au
Tue Aug 17 19:54:28 EDT 1999


[ Humbug *General* list - semi-serious discussions about Humbug and
Unix-related topics. ]


Craig Armour writes:
 > [ Humbug *General* list - semi-serious discussions about Humbug and
 > Unix-related topics. ]
 > James McPherson writes: 
 > > got that down? ok. try it yourself ;)
 > 
 > what james said is right, but you should read the apache virtual hosts
 > docs to become proficient at what's going on.

<ego, mode=stroked> ;)

 > the short gist is, you only need one ip for your box
 > you then set a DNS entry for that one IP and set cnames for all your
 > other sites to that DNS entry.  Alternatively you can set multiple IN A
 > in your dns pointing to one IP

yes, and a certain person down here does that too. Unfortunately, that person
is seriously lacking in clues. <zip mouth>

 > MX records are simple, if you have a host foo.bar  and domains dotat.org
 > and commadot.org then your dns files for the respective domains will
 > contain
 > 
 > 	IN MX 10 foo.bar
 > 
 > finally sendmail needs to have the hostnames for which it accepts mail
 > in /etc/sendmail.cw file so foo.bar's /etc/sendmail.cw file will look
 > like
 > 
 > foo.bar
 > foo.dotat.org
 > dotat.org
 > foo.commadot.org
 > commadot.org

you don't need to have a ${prefix}/sendmail.cw file if you have the following
in your <hostname>.mc file:

Cwfoo.bar
Cwfoo.dotat.org
Cwdotat.org
Cwfoo.commadot.org    # nice one!
Cwcommadot.org


and omit

FEATURE(use_cw_file)dnl



cheers,
James
--
Unix Systems Administrator            Phone: +61.2.9850.9418
Office of Computing Services            Fax: +61.2.9850.7433
Macquarie University   NSW    2109     
AUSTRALIA			     

--
This is list (humbug) general handled by majordomo at lists.humbug.org.au .
Postings only from subscribed addresses of lists general or general-post.



More information about the General mailing list