  -̴-Ͽ

  Dan Pancamo, pancamo@infocom.net <mailto:pancamo@infocom.net>
  www.infocom.net/~pancamo/ <http://www.infocom.net/~pancamo/>

  v1.0, 24 November 1995  Copyright 1995

    Ͽ   Ʈ  ʼ Ѱ̴.
  ______________________________________________________________________

  

  1.   Ʈ ΰ?
  2.  ġ Ʈ ʿѰ?
  3.  ؾϳ?
     3.1 ο  
     3.2 NCSA 1.5 Apache config  
     3.3 ̽ 
     3.4 ʹ 
     3.5 Named 
        3.5.1  /etc/named.boot (x  IP ٲ۴)
        3.5.2  /etc/named.data/db.domain1.com
        3.5.3  /etc/named.data/db.xxx.xxx.xxx
        3.5.4 named ; i.e. named.restart
     3.6  
        3.6.1  
           3.6.1.1 /etc/domainalias ۼϱ
           3.6.1.2 the maped DB  ۼϱ
           3.6.1.3 the maped DB  ۼϱ
              3.6.1.3.1 ȣƮ Cw ڵ ߰ϱ
              3.6.1.3.2 the domainalias mapping ߰ϱ
              3.6.1.3.3 Ruleset 98 ߰ 
           3.6.1.4 Sendmail ׽Ʈ
     3.7  FTP

  4.     ũ

  ______________________________________________________________________

  1.    Ʈ ΰ?

   ̵  (WWW)  Ϲ ϳ ǻʹ ϳ 
  Ʈ  HTTPD û Ѵ. , ǻʹ ϳ WWW
  Ʈ ȴ.  WWW Ʈ httpd 䱸 Ǵ ǻ
  ڿ Ȱð  , κ ǻ ڿ  ü
  Եȴ.   Ʈ ϳ̻  Ʈ Ѱ μ
   ϰ Ѵ.  www.domain1.com www.domain2.com ΰ 
  ǻ ̽ 䱸  ʰ, ϳ ̽ ġϿ
  ڿ Ҽ ִ.

  Ϲ ұԸ ǻ ü̳, ȸ翡    ͳ
     ʾƵ ȴ.   $10000   Ҽ
  , Ѵ޿ $500-2500 ҿȴ. ұԸ ǻ üϰ 
   ڷ  ٷ "Ӵ" ϴ.  telnet̳ FTP 
  ̿Ͽ   Ҽ ִ.

  InfoCom Networks  www.infocom.net/ <http://www.infocom.net/>  
  ڷ   $75      ̽ ޹
  ִ.   Ʈ ָ޸ȣ ذ Ǿ 𸥴. ׷
    Ʈ      ͳ Ẹ 
  θ δ.  Ʈ
  "www.yourprovider.com/ businessname"   ּ Ҵ 迡 ū
    .     ּ   
  ̳  ġ ɷ ϰ ִ.  URL  
  Ʈ  󵵿    ſ  ս
  ʷѴ.

  κ Ʈ  www.domain1.com www.domain2.com IP
   ִ. ̱ ȣƮκ  û ϱ ؼ, 
  ȣƮ  Ʈ  û   ־Ѵ. ̷ 
  ذå IP aliasing̶  ִ. IP aliasing ̱ȣƮ
   IP  û ϰ Ѵ.   alias IP ɷ
  ߾Ѵ.

  IP aliasing   ַ  κ ̴.   ý
  (DNS)  www.domain1.com www.domain2.com  Ǿ
  Ѵ.   domain1.com domain2.com ο ̶, Ѵ
  Internic  ϵǾ ־ Ѵ.  Internic  
  ϴµ  $50 ҿ ȴ.

  κ  Ʈ  ̳,    
  ٸ  鿡 ϴ ɷ  ִ.

    FTP "ftp.domain1.com"  ǥ ȣƮ  ϴ
  FTP ɷ  ڷκ Ǿ ִ.

  2.   ġ Ʈ ʿѰ?

  1.   1.2.x the IPalias patch alias-patch-1.2.1-v1 alias-
     net-tools.tar 䱸ȴ.  1.3.X ϴ Ȯ Ҽ
     . ftp.mindspring.com/users/rsanders/ipalias/
     <ftp://ftp.mindspring.com/users/rsanders/ipalias/> the IPalias
     patch     ִ.

     IP alias ַ  Ƽ  ̽   Ǿ
     Ծ .  ַ ϴ  IP alias ַǺ
     Ȯϰ Ÿ  ʴ´. ġ  ַ 뿡  
      , www.qosina.com/apache/virtual.html
     <http://www.qosina.com/apache/virtual.html> ִ Aram Mirzadeh
      ȣ ̼ ϼ.

     IPalias ̿Ͽ ο alias ߰ϴ   . :

             > /sbin/ifconfig eth0 alias www.domainX.com

  , IPalias ַ ٸ پ ÷ ȴ.

  2. NCSA 1.5, Apache, Spinner  ȣ Ѵ.
     hoohoo.ncsa.uiuc.edu/docs/Overview.html
     <http://hoohoo.ncsa.uiuc.edu/docs/Overview.html> www.apache.org/
     <http://www.apache.org/> spinner.infovav.se/
     <http://spinner.infovav.se/>

  3.   ؾϳ?

  3.1.  ο  

    Ȩ 丮  Ϲ   .

  3.2.  NCSA 1.5 Apache config  

   ȣƮ  ϰ ִ. 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

  3.3.  ̽ 

  տ  Į   /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

  3.4.  ʹ 

   ο  ̳,    ƴٸ, 
   Internic ؾ Ѵ. ø
  rs.internic.net/templates/domain-template.txt
  <ftp://rs.internic.net/templates/domain-template.txt> ߰Ҽ
  ִ.

  3.5.  Named 

  Named    ܺο ĺϰ  Ǿ Ѵ.
   DNS   Ƕ  ʴ´. ȿ ؼ ׻
  ȯմϴ.

  3.5.1.   /etc/named.boot (x  IP ٲ۴)

                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

  3.5.2.   /etc/named.data/db.domain1.com

               $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.

  3.5.3.   /etc/named.data/db.xxx.xxx.xxx

   db.xxx.xxx.xxx   Ʈ ο  ο 
    ؼ  ؾѴ.

                  xx              IN      PTR     www.domain1.com.
                  xx              IN      PTR     www.domain2.com.

  3.5.4.  named ; i.e. named.restart

  3.6.   

     ڽ  , ٸ 
  ۵Ǿ  ɷ  ϰ ȴ. sendmail.cf ణ ȭ
  ϴ. ޿  پϰ sandmail    ְ 
   ο  Ʈ sandmail.cf ѹ ָ ȴٴ°
  ˰ Ǿϴ.

  3.6.1.   

  makemap btree ϴ   sendmail ٲ۴.

  3.6.1.1.  /etc/domainalias ۼϱ

                  *@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

  3.6.1.2.  the maped DB  ۼϱ

                  > makemap btree /etc/domainalias.db  < /etc/domainalias

  3.6.1.3.  the maped DB  ۼϱ

  3.6.1.3.1.  ȣƮ Cw ڵ ߰ϱ

                  Cwdomain1.com
                  Cwdomain2.com

  3.6.1.3.2.  the domainalias mapping ߰ϱ

  Kdomainalias btree /etc/domainalias.db

  3.6.1.3.3.  Ruleset 98 ߰ 

              ###################################################################
                  ###  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

  3.6.1.4.  Sendmail ׽Ʈ

  sendmail  ׽Ʈ ο sendmail.cf ȭ Ѵ.  > sendmail
  -v -bv info@domain1.com   Ÿ̴.

  3.7.   FTP

     Ҹ  FTP  ߴ.  ġ
  ϸ, ġ ۾̶ ˰ ִ.   FTP ƴ 
  /home/ftp/business/domain1  丮 .  (wu-ftp  
  ftp  Ұ̴. ׿  ̴ Ͽ ִ.)

    ַ ϰ Ѵٸ, ⿡ ߰ ̸ ҳ
   ̴ܰ.

  Arnt Gulbrandsen  FTP 񽺸 ϴ The Troll Tech FTP
  Daemon  ftpd ٽ ´.

  4.      ũ

  hoohoo.ncsa.uiuc.edu/docs/Overview.html
  <http://hoohoo.ncsa.uiuc.edu/docs/Overview.html>

  www.apache.org/ <http://www.apache.org/>

  www.qosina.com/apache/virtual.html
  <http://www.qosina.com/apache/virtual.html>

  spinner.infovav.se/ <http://spinner.infovav.se/>

  ftp.mindspring.com/users/rsanders/ipalias/
  <ftp://ftp.mindspring.com/users/rsanders/ipalias/>

  www.thesphere.com/~dlp/TwoServers/
  <http://www.thesphere.com/~dlp/TwoServers/>

  hoohoo.ncsa.uiuc.edu/docs/setup/httpd/VirtualHost.html
  <http://hoohoo.ncsa.uiuc.edu/docs/setup/httpd/VirtualHost.html>

  ftp.dhp.com:/pub/linux/virtual-hosting
  <ftp://ftp.dhp.com:/pub/linux/virtual-hosting>

