°¡»ó °í°´ÀÇ È¨ µð·ºÅ丮¿Í ¸ÞÀÏÀ» ÀϹÝÀû ¸®´ª½º °èÁ¤À¸·Î ¸¸µç´Ù.
°¡»ó È£½ºÆ®¹ýÀº °è¼Ó º¯ÇÏ°í ÀÖ´Ù. Virtual Host Check the server's release notes¸¦ ´õ »ó¼¼È÷ Áö¿øÇÏ´Â ¾à°£ÀÇ ÆÐÄ¡µµ Á¸ÀçÇÑ´Ù. NCSA 1.5¿Í Apache´Â ÇöÀç °¡»ó ÆÐÄ¡¸¦ Æ÷ÇԵǾî ÀÖÀ¸¸ç, Spinner´Â °¡»ó È£½ºÆ®¸¦ Áö ¿øÇÑ´Ù°í ¸»ÇÑÀû ÀÖ´Ù. ¾ÆÆÄÄ¡ °¡»ó ÆÐÄ¡´Â srm.confÀÇ syntax¿¡ µû¶ó Áö¿ø °í, NCSA 1.5´Â °¡»ó È£½º´Â Á¤ÀÇ ¹æ¹ý¿¡ µû¶ó ¸Å¿ì À¯¿¬ÀûÀ¸·Î Áö¿øµÈ´Ù.
SubDocumentRoot www.domain1.com /usr/local/etc/httpd/docs/domain1 SubDocumentRoot www.domain2.com /usr/local/etc/httpd/docs/domain2
NCSA¿Í ¾ÆÆÄÄ¡´Â httpd.conf¿¡ ¾Æ·¡ÀÇ ¹®ÀåÀ» ±âÀÔÇؾßÇÑ´Ù.
<VirtualHost doamin1.com> ServerAdmin webmaster@domain1.com DocumentRoot /usr/local/etc/httpda/docs/domain1 ServerName www.domain1.com ErrorLog logs/errors.domain1.com TransferLog logs/access_log.domain1.com
¾Õ¿¡¼ ´ç½ÅÀÇ ·ÎÄ® À¥ ¼¹öÀÇ /etc/rc.d/rc.local¿¡ ¾Æ·¡¿Í °°ÀÌ IPalias ÆÐÄ¡°¡ Ãß°¡ ¼³Ä¡ µÇ¾úÀ» °ÍÀÌ´Ù.
/sbin/ifconfig eth0 alias www.domain1.com /sbin/ifconfig eth0 alias www.domain2.com /sbin/ifconfig eth0 alias www.domainN.com
¸¸¾à »õ·Î¿î µµ¸ÞÀÎÀÇ ¼³Á¤À̳ª, ÇöÀç µµ¸ÞÀÎÀÇ º¯°æÀ» ¸¶ÃÆ´Ù¸é, µµ¸ÞÀÎ À» Internic¿¡ µî·ÏÇØ¾ß ÇÑ´Ù. ÅÛÇø´Àº rs.internic.net/templates/domain-template.txt¿¡¼ ¹ß°ßÇÒ¼ö ÀÖ´Ù.
Named´Â ´ç½ÅÀÇ °¡»ó µµ¸ÞÀÎÀ» ¿ÜºÎ¿¡¼ ½Äº°°¡´ÉÇÏ°Ô ¼³Á¤ µÇ¾îÁ®¾ß ÇÑ´Ù. ³ª´Â DNS¿¡ °üÇØ Àü¹®°¡°¡ µÇ¶ó°í´Â ÁÖÀåÇÏÁö ¾Ê´Â´Ù. Á¦¾È¿¡ ´ëÇؼ± Ç×»ó ȯ¿µÇÕ´Ï´Ù.
directory /etc/named.data primary realdomain.com db.realdomain.co m primary xxx.xxx.xxx.IN-ADDR.ARPA db.xxx.xxx.xxx primary 0.0.127.IN-ADDR.ARPA db.local primary domain1.com db.domain1.com primary domain2.com db.domain2.com cache . named.root
$ORIGIN com. domain1 IN SOA domain1.com. hostmaster.domain1.com. ( 10134 43200 3600 604800 86400 ) IN NS ns1.realdomain.com. IN MX 10 mail.realdomain.com. IN MX 0 domain1.com. domain1.com. IN A xxx.xxx.xxx.xxx ;www.domain1.com IP $ORIGIN domain1.com. ftp IN CNAME domain1.com. www IN CNAME domain1.com. mail IN CNAME domain1.com.
´ç½ÅÀº db.xxx.xxx.xxx¿¡ ´ç½ÅÀÇ ÇöÀç ½ÎÀÌÆ®¸¦ »õ·Î¿î °¡»ó µµ¸ÞÀο¡ ´ëÇÑ ¿ª ÃßÀûÀ» Æ÷ÇÔÇؼ °»½Å ÇؾßÇÑ´Ù.
xx IN PTR www.domain1.com. xx IN PTR www.domain2.com.
´ç½ÅÀÇ °¡»ó °í°´Àº ÀÚ½ÅÀÇ µµ¸ÞÀÎÀ¸·Î º¸³»°í, ´Ù¸¥ µµ¸ÞÀÎÀ¸·Î Àü¼ÛµÇ¾îÁö ´Â ´É·ÂÀ» ´õ ¿øÇÏ°Ô µÈ´Ù. sendmail.cfÀÇ ¾à°£ÀÇ º¯È·Î °¡´ÉÇÏ´Ù. ¸î´Þ¿¡ °ÉÃÄ ´Ù¾çÇÏ°Ô sandmailÀ» º¯°æÇØ º» °á°ú ÃÖ°íÀÇ ¹æ¹ýÀº °¢°¢ÀÇ »õ·Î¿î °¡»ó ½ÎÀÌÆ®¸¶´Ù sandmail.cf¸¦ Çѹø¸¸ º¯°æÁÖ¸é µÈ´Ù´Â°ÍÀ» ¾Ë°Ô µÇ¾ú½À´Ï´Ù.
makemap btree¸¦ Áö¿øÇÏ´Â °ÍÀ¸·Î ÇöÀçÀÇ sendmailÀ» ¹Ù²Û´Ù.
*@domain1.com localnet@realdomain.com *@domain2.com townplaz@realdomain.com *@domainN.com soracomp@realdomain.net webmaster@domain1.com somuser@anotherhost.com jamison@domain2.com anotheruser@somehost.com
> makemap btree /etc/domainalias.db < /etc/domainalias
Cwdomain1.com Cwdomain2.com
Kdomainalias btree /etc/domainalias.db
################################################################### ### Ruleset 98 -- local part of ruleset zero (can be null) ### ################################################################### S98 R$+ < $+ . > $1 < $2 > remove t railing dots R$+ < $+ > $: < > $(domainalias $1$2 $) match us er@address R< > $+ @ $* $: < $1 > $(domainalias * @ $2 $) match *@ address R< $+ > * $* $: < > $1 $2 replace * with userid R < $+ > $+ $: < > $2 bugfix R< > $* $: $>3 $1 and rewr ite using S3
sendmail ¼³Á¤ Å×½ºÆ®·Î »õ·Î¿î sendmail.cf º¯È¸¦ °ËÁõÇÑ´Ù. > sendmail -v -bv info@domain1.com ÃÖÁ¾ ¸ñÀûÁö°¡ ³ªÅ¸³¯°ÍÀÌ´Ù.
ÇöÀç±îÁö ³ª´Â ¾ÆÁ÷ »ç¿ëÇÒ¸¸ÇÑ °¡»ó FTP¸¦ ±¸ÇÏÁö ¸øÇß´Ù. ¸î¸îÀÇ ÆÐÄ¡°¡ Á¸ÀçÇϸç, ÆÐÄ¡ ÀÛ¾÷ÁßÀ̶ó°í ¾Ë°í ÀÖ´Ù. ÀüÁ¤ÇÑ °¡»ó FTP°¡ ¾Æ´Ñ ´ÜÁö /home/ftp/business/domain1°ú °°Àº µð·ºÅ丮¸¸ ¸¸µç´Ù. (wu-ftp ·Î °¡»ó ftp °¡ °¡´ÉÇÒ°ÍÀÌ´Ù. ±×¿¡ ´ëÇÑ ¹Ì´Ï ÇÏ¿ìÅõµµ ÀÖ´Ù.)
¸¸¾à ´©±º°¡ ¼Ö·ç¼ÇÀ» Á¦°øÇÏ°íÀÚ ÇÑ´Ù¸é, ¿©±â¿¡ Ãß°¡ÇÒ °ÍÀÌ¸ç ´õÇÒ³ªÀ§ ¾øÀÌ ±â»Ü°ÍÀÌ´Ù.
Arnt Gulbrandsen´Â µ¶¸³ÀûÀÎ FTP ¼ºñ½º¸¦ Á¦°øÇÏ´Â The Troll Tech FTP DaemonÀ» Æ÷ÇÔÇÑ ftpd¸¦ ´Ù½Ã ½á³Â´Ù.