���� ���� ����

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���� �߰��Ҽ� �ִ�.

3.5 Named ����

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

���� /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

���� /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.

���� /etc/named.data/db.xxx.xxx.xxx

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

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

named �����; i.e. named.restart

3.6 ���� ����

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

������� ����

makemap btree�� �����ϴ� ������ ������ sendmail�� �ٲ۴�.

/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

the maped DB ���� �ۼ��ϱ�

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

the maped DB ���� �ۼ��ϱ�

ȣ��Ʈ�� Cw ���ڵ� �߰��ϱ�

                Cwdomain1.com
                Cwdomain2.com

the domainalias mapping �߰��ϱ�

Kdomainalias btree /etc/domainalias.db

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

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�� �ٽ� ��´�.


���� ���� ����