B / Y / U / S
HOME À¥ È£½ºÆà µµ¸ÞÀÎ ¸Å´º¾ó °í°´Áö¿ø ¼³Á¤Á¤º¸ °èÁ¤½Åû 2024-12-23 Monday 
À¥ È£½ºÆÃ
# °øÁö »çÇ×
# ÀÚÁÖ ¹¯´Â Áú¹®
# Áú¹®°ú ´äº¯
# °¡ÀÔ ¹®ÀÇ
Ä¿¹Â´ÏƼ
# ÀÚÀ¯°Ô½ÃÆÇ
# ¸®´ª½ºÆÁ
# ¾ÆÀÌÅ¥ Å×½ºÆ®
# ³»È¨ ¼Ò°³
# °Ö·¯¸®
# ÀÚ·á½Ç

  ¸®´ª½ºÆÁ  Go Unix Power Tools Online Book Go Bash Guide
Read No. 17 article 2001-08-06 04:07:01
NickName   Ç®ºñ´©
Subject   [À¥È£½ºÆÃ]¾ÆÆÄÄ¡-¸ÞÀÏ-ProFTPdÃʺ¸ÀÚµµ ÇÒ¼ö ÀÖ´Ù(1)

¾È³çÇϼ¼¿ä??

»êÀÌÀÔ´Ï´Ù.



¾Æ·¡ ¹®¼­´Â 



-¾ÆÆÄÄ¡1.3.9

-¼¾µå¸ÞÀÏ 8.3.x

-qpopper 3.0

-ProFTPd1.2pre6



¸¦ Áß½ÉÀ¸·Î ÀÛ¼ºµÇ¾ú½À´Ï´Ù. ¿ë·®ÀÌ ²Ï µÇ³×¿ä.....



=========================================



[À¥È£½ºÆÃ]RedHat 6.0±â¹Ý °¡»óÀ¥-¸ÞÀÏ-FTP¿î¿µÇϱâ



»êÀÌ<san2 at urban.suwon.ac.kr>

1999-08-18 : 1Â÷ (ÃÖÃÊÀÛ¼º)

1999-09-16 : 2Â÷

---------------------------------------------------------------

ÀÌ ±ÛÀÇ ³»¿ëÀº 1´ëÀÇ ¸®´ª½º¹Ú½º¿¡ °°Àº IP, ¼­·Î ´Ù¸¥ IP, °°Àº µµ¸ÞÀÎ, ¼­·Î

´Ù¸¥ ¿©·¯°³ÀÇ µµ¸ÞÀο¡ ´ëÇؼ­ °¡»óÀ¥-¸ÞÀÏ-FTP ¿î¿µÀ» ´Ù·ç´Â ±âÃÊÀûÀÌ°í

¿¹½ÃÀûÀÎ ¹æ¹ýÀ¸·Î ¼­¼úÇÑ ³»¿ëÀÔ´Ï´Ù.

±×¸®°í ½ÇÁ¦·Î ³»ºÎIP¸¦ ÀÌ¿ëÇÏ¿© Å×½ºÆ®¿¡ ¼º°øÇÑ ¿¹ÀÔ´Ï´Ù.

---------------------------------------------------------------



ÀÌ ¹®¼­´Â HTML ¹®¼­·Îµµ Áö¿øÇÕ´Ï´Ù. 

http://linuxer.suwon.ac.kr/linux_docs/virtual_services/



ÁÖ)

°³³äÀûÀÌ°í ¿ø·ÐÀûÀÎ ³»¿ëÀº ¸ðµÎ ºüÁ®ÀÖ½À´Ï´Ù. À¥»ó¿¡ ¸¹Àº ¹®¼­°¡ Á¸ÀçÇÏ

¹Ç·Î ÀÌ·± ¹®¼­¸¦ ã¾Æ ¸ÕÀú ½ÀµæÇÏ°í º» ¹®¼­¸¦ Àо°¡¸é ½±°Ô ÀÌÇØÇϸ®

¶ó »ý°¢µË´Ï´Ù.

¶ÇÇÑ ÀÌ ¹®¼­´Â ÁÁÀº ¹®¼­°¡ ¾Æ´Õ´Ï´Ù. ´Ù¸¸ ÇϳªÀÇ ¿¹½Ã ÀÏ »ÓÀÔ´Ï´Ù.

±×·¯³ª ¿¹½Ã¸¦ ÅëÇØ ÀÚ½ÅÀÇ »óȲ¿¡ ¸Â°Ô ¼öÁ¤ÇÏ¸é ´©±¸³ª ½±°Ô °¡»óÀ¥-¸ÞÀÏ-

FTP¸¦ ¿î¿µÇϸ®¶ó »ý°¢Ç߱⠶§¹®¿¡, ±×¸®°í º»ÀÎÀÇ ½Ç·ÂÀÌ ÇüÆí¾ø´Â °ü°è·Î

¿ø·ÐÀûÀÌ°í °³³äÀûÀÎ ³»¿ëÀ» ¼³¸íÇÏÀÚ¸é ¾î¿ ¼ö ¾øÀÌ µµ¿ë(?)Çؾ߸¸ Çϱâ

¶§¹®¿¡ °³³äÀûÀÌ°í ¿ø·ÐÀûÀÎ Á¤ÀÇ´Â ¸ðµÎ »°½À´Ï´Ù.



µû¶ó¼­ ÀÌÇÏ ¼­¼úµÈ ³»¿ëÀº ¸®´ª½º Àü¹®¼­ÀûÀ̳ª ±âÁ¸¿¡ Á¸ÀçÇÏ´Â ¹®¼­¸¦ ±×

´ë·Î ¹è³¢´Â ±×·± ¿ì¸ÅÇÑ ÁþÀº ÇÏÁö ¾ÊÀ» °ÍÀ̸ç ÀÌ·± ¹®¼­ÀÇ Áö½ÄÀ» ¹ÙÅÁÀ¸·Î

º»ÀÎÀÌ Á÷Á¢ Å×½ºÆ®ÇÏ°í ´À³¤ Á¡À» Åä´ë·Î ¼­¼úÇØ ³ª°¥ °ÍÀ̸ç,  ¼³»ç º»ÀÎÀÇ

Áö½ÄÀÌ ¸ðÀÚ¶ó ±âÁ¸ÀÇ ¹®¼­ÀÇ ÈûÀ» ºô¸±°æ¿ì¿¡´Â  Á¤È®ÇÑ Ãâó¸¦ ¹àÈ÷°í ±â¼ú

ÇØ ³ª°¥°ÍÀÔ´Ï´Ù.



ÀÌÇÏ °ü·ÊÀûÀ¸·Î "°æ¾î" »ý·«ÇÕ´Ï´Ù.

---------------------------------------------------------------



¸ñÂ÷



1. µé¾î°¡±â Àü¿¡

  1-1. »ó¼¼ÇÑ ¼¼ºÎºÐ¾ß ³»¿ë(Âü°íÀÚ·á)-¸µÅ©

  1-2. ³ªÀÇ Å×½ºÆ® ȯ°æ ¹× ¸ñÇ¥



2. DNS(µµ¸ÞÀÎ ³×ÀÓ¼­ºñ½º) ¼³Á¤

  2-1. Bind ¼³Ä¡Çϱâ

  2-2. ³ªÀÇ ¸ñÇ¥¿¡ ¸Â°Ô DNS ¼³Á¤

    2-2-1. /etc/named.boot

    2-2-2. /etc/named.conf

    2-2-3. /var/named/named.ca

    2-2-4. /var/named/named.local

    2-2-5. /var/named/zone-10.168.192

    2-2-6. /var/named/zone-linux.ac.kr

    2-2-7. /var/named/zone-linuxer.com

    2-2-8. /var/named/zone-linuxer.net

    2-2-9. /var/named/zone-sonamu.co.kr



3. °¡»ó À¥¼­¹ö (¾ÆÆÄÄ¡ 1.3.9 °æ¿ì)

  3-1. ¾ÆÆÄÄ¡¼³Ä¡(»ý·«)

  3-2. ¾ÆÆÄÄ¡ ¼³Á¤ÆÄÀÏ(httpd.conf)



4. °¡»ó ¸ÞÀϼ­¹ö

  4-1. sendmail ¼³Ä¡Çϱâ

  4-2. qpopper ¼³Ä¡Çϱâ

  4-3. /etc/sendmail.cf

  4-4. /etc/sendmail.cw

  4-5. /etc/sendmail.cm

  4-6. /etc/mail/access

  4-7. /etc/mail/virtusertable



5. °¡»ó FTP¼­¹ö (ProFTPd)

  5-1. ProFTPd ¼³Ä¡Çϱâ

  5-2. /etc/proftpd.conf



6. ¸¶Ä¡¸ç





---------------------------------------------------------------



1. µé¾î°¡±â Àü¿¡





1-1. »ó¼¼ÇÑ ¼¼ºÎºÐ¾ß ³»¿ë(Âü°íÀÚ·á)¸µÅ©



- Net-3 HOWTO(KLDP)

- Network Adminstrator Guide(KLDP)

- ±èº´Âù(Àû¼ö)´ÔÀÇ ³×ÀÓ¼­¹ö°­ÁÂ(KLDP)

- ±è½Â¿µ´ÔÀÇ DNS(µµ¸ÞÀγ×ÀÓ ¹× ³×ÀÓ¼­¹ö±¸Ãà)(KLDP)

- DNS HOWTO(KLDP)

- ¸®´ª½º¿¡¼­ IP Aliasing ¼¼ÆÃÇϱâ mini HOWTO(KDLP)

- Sendmail À̾߱â(KLDP)

- Virtual Services HOWTO(KDDP)

- °¡»óÀ¥ mini HOWTO(KLDP)

- ¾ÆÆÄÄ¡ 1.3 ¸Þ´º¾ó Virtualhost(¿µ¹®)

- Proftpd Configuration(¿µ¹®)

- Proftpd Reference (¿µ¹®)

- POP3 daemon ¼³Ä¡ ¹× È°¿ë°¡À̵å -³×¹ø° ÆÇ(¹ÚÀçÈ£´Ô ȨÆäÀÌÁö)

- ±èÁ¤±Õ´ÔÀÇ È¨ÆäÀÌÁö





1-2. ³ªÀÇ Å×½ºÆ®È¯°æ ¹× ¸ñÇ¥



[¼­¹öȯ°æ]

- OS: ¾ËÂ¥¸®´ª½º6.0(Ä¿³Î2.2.12)

- 3Com 900B-TPO Ethernet Card 1°³

- Intel eepro 10 ISA Ethernet Card 1°³

- apache 1.3.9-1kr

- Sendmail 8.9.3-10kr

- qpopper 3.0

- bind 8.2-6

- Proftpd 1.2.0Pre6(99.09.11ÀÏÀÚ)

- »ç¿ëÇÑ IP: 192.168.10.3~5 (³»ºÎIP)



[Ŭ¶óÀ̾ðƮȯ°æ]

- OS: À©98

- 3Com 905B-TPO Ethernet Card 1°³

- »ç¿ëÇÑ IP: 192.168.10.11 (³»ºÎIP)



[³ªÀÇ ¸ñÇ¥]

- ¼­¹ö : ¸®´ª½º¹Ú½º1´ë

- »ç¿ëÇÒ IP : 192.168.10.3 192.168.10.4 192.168.105(3°³)

- ¾ÕÀ¸·Î °è¼Ó µµ¸ÞÀÎÀÌ Ãß°¡½Ã¿¡´Â 192.168.10.5 Çϳª¸¸ »ç¿ëÇÒ ¿¹Á¤ÀÌ´Ù.



- linux.ac.kr µµ¸ÞÀÎÀº Çö ¸®´ª½º¹Ú½ºÀÇ ÁÖ µµ¸ÞÀÎÀÌ°í game(°èÁ¤ : game)

   È£½ºÆ®¸¸ Á¦¿ÜÇÏ°í ¸ðµÎ root°¡ °ü¸®ÇÑ´Ù. game È£½ºÆ® °ü¸®ÀÚÀÎ gameÀº

   À¥ ¹®ÀÇ¿¡ ´ëÇÑ ¸ÞÀÏÀ»  gamedori at hanmail.net ·Î »ç¿ëÇÏ°íÀÚ ÇÑ´Ù.



- linuxer.com µµ¸ÞÀÎÀ» »ç¿ëÇÏ´Â ÀÚ´Â°í°´À̸ç 2°³ÀÇ À¥È£½ºÆ®

  (www. stock)¸¦ ¿î¿µÇϱ⸦ ¿øÇÏ°í 'stock' À¥È£½ºÆ® ´ëÇÑ À¥¹®ÀÇ´Â º°µµ·Î

  stock at linuxer.com À¸·Î ¹Þ°í ½Í¾îÇϸç Anonymous FTPµµ ¿î¿µÇÏ°íÀÚ ÇÑ

  ´Ù. °èÁ¤Àº comÀ̸ç 1¸íÀÌ °ü¸®ÇÏ°íÀÚ ÇÑ´Ù.



- linuxer.net µµ¸ÞÀÎÀ» »ç¿ëÇÏ´Â ÀÚ´Â °í°´ÀÌ¸ç ¿ª½Ã 2°³ÀÇ À¥È£½ºÆ®

   (www. meeting)¸¦ ¿î¿µÇÒ °èȹÀÌ°í meeting À¥È£½ºÆ®ÀÇ ÀÌ¿ëÀÚ°¡ ¸¹¾Æ

   'www' À¥È£½ºÆ®ÀÇ AdminÀÌ °ü¸®ÇÒ ¼ö ¾ø¾î ´Ù¸¥ »ç¶÷ÀÌ °ü¸®Çϱ⸦ ¿øÇÑ´Ù.

   µû¶ó¼­ 'www' À¥ È£½ºÆ®¿¡ ´ëÇؼ­´Â Admin(°èÁ¤ : net)°ú 'meeting' À¥È£½º

   Æ®¿¡ ´ëÇؼ­´Â ´Ù¸¥ »ç¶÷(account : meet)ÀÌ °ü¸®ÇÏ°íÀÚ ÇÑ´Ù. 'meeting'

   À¥È£½ºÆ®¿¡ ´ëÇÑ À¥¹®ÀÇ´Â meeting at linuxer.net ·Î »ç¿ëÇϹǷΠ°á±¹

   2¸íÀÌ °ü¸®ÇÏ´Â ¼ÀÀÌ´Ù.



- sonamu.co.kr µµ¸ÞÀÎÀ» »ç¿ëÇÏ´Â ÀÚ´Â °í°´ÀÌ¸ç ¿ÀÁ÷ ÇϳªÀÇ À¥È£½ºÆ®

   ('www')¸¸ ¿î¿µÇÏ°íÀÚ ÇÑ´Ù. ¶ÇÇÑ ¸ÞÀÏÀº webmaster at sonamu.co.kr ÀÌ

   ¾Æ´Ñ admin at sonamu.co.kr·Î »ç¿ëÇÏ°íÀÚ ÇÑ´Ù.  ¶ÇÇÑ ÀÌ °í°´ÀÌ ¸ö´ã°í

   ÀÖ°í ȸ»ç¿¡¼­´Â 4°³ÀÇ e-mailÀ» ´õ »ç¿ëÇϱ⸦ ¿øÇÑ´Ù. Áï ÀÌ È¸»çÀÇ »çÀåÀº

   namu at sonamu.co.kr, ³ª¸ÓÁö 3¸íÀÇ »ç¿øÀº °¢°¢ 'kim', 'park', 'lee' ¶ó´Â

   ID·Î ¸ÞÀÏÀ» ÀÌ¿ëÇÏ°íÀÚ ÇÑ´Ù. µû¶ó¼­ À¥ Admin°ú ¸ÞÀÏ»ç¿ëÀÚÀÎ 4¸íÀ» ÇÕÇϸé

   5¸íÀÇ »ç¿ëÀÚ°¡ µÈ´Ù.

   ±×¸®°í »çÀå°ú 3¸íÀÇ »ç¿øÀº http://www.sonamu.co.kr/~namu ¿Í °°Àº

   ȨÆäÀÌÁö¸¦ °¢ÀÚ °¡Áö°í ½Í¾î ÇÑ´Ù.



- ÁÖ)

   ÇÊÀÚ´Â À¥È£½ºÆþ÷ü¿¡ ¸ö´ã°í ÀÖÁö ¾Ê±â ¶§¹®¿¡ ¸¹Àº µµ¸ÞÀÎÀ» ½ÇÁ¦·Î °ü¸®

   Çغ» °æÇèÀº ¾ø´Ù.

   ´Ù¸¸ °í¹Î³¡¿¡ 2´ëÀÇ PC(¸®´ª½º, À©98)¸¦ ´Ù¸¥ PCµé°ú ÇÔ²² HUB·Î ¿¬°áÇÏ¿©

   ³»ºÎIP(CŬ·¡½º)¸¦ »ç¿ëÇÏ¿´À¸¸ç °¢°¢ÀÇ ¿©·¯°³ÀÇ µµ¸ÞÀο¡ ´ëÇؼ­ ½ÇÁ¦·Î

   ³»ºÎIP 1°³·Î »ç¿ëÇÏ¿©  ³×ÀÓ¼­¹ö ¹× www, mail, ftp, telnet Å×½ºÆ®Çϴµ¥

   ¼º°ø ÇßÀ» »ÓÀÌ´Ù.



- ¼¼ºÎ»çÇ×(*ÀÌ ±ÛÀ» ÀÌÇØÇϴµ¥ Çʼö)

======================+==============+================================

        È£½ºÆ®+µµ¸ÞÀÎ   IP             °èÁ¤   (Admin E-mail)         

======================+==============+================================

(ÁÖµµ¸ÞÀÎ)linux.ac.kr   192.168.10.3   root   (webmaster at linux.ac.kr) 

       ns.linux.ac.kr   192.168.10.3   root   (webmaster at linux.ac.kr)

      www.linux.ac.kr   192.168.10.3   root   (webmaster at linux.ac.kr)

      ftp.linux.ac.kr   192.168.10.3   root   (ftp at linux.ac.kr)

    study.linux.ac.kr   192.168.10.4   root   (study at linuxer.ac.kr)

study-app.linux.ac.kr   192.168.10.4   root   (study-app at linuxer.ac.kr)     

study-net.linun.ac.kr   192.168.10.4   root   (study-net at linuxer.ac.kr)

     game.linux.ac.kr   192.168.10.5   game   (gamedori at hanmail.net)

======================+==============+================================

(°í°´)    linuxer.com   192.168.10.5   com    (webmaster at linuxer.com) 

       ns.linuxer.com   192.168.10.5   com    (webmaster at linuxer.com)

      www.linuxer.com   192.168.10.5   com    (webmaster at linuxer.com)

      ftp.linuxer.com   192.168.10.5   com    (ftp at linuxer.com)            

    stock.linuxer.com   192.168.10.5   com    (stock at linuxer.com)

======================+==============+================================

(°í°´)    linuxer.net   192.168.10.5   net    (webmaster at linuxer.net) 

       ns.linuxer.net   192.168.10.5   net    (webmaster at linuxer.net)                   

      www.linuxer.com   192.168.10.5   net    (webmaster at linuxer.net)

      ftp.linuxer.com   192.168.10.5   net    (ftp at linuxer.net)            

  meeting.linuxer.com   192.168.10.5   meet   (meeting at linuxer.net)

======================+==============+================================

(°í°´)www.sonamu.co.kr  192.168.10.5   sonamu (admin at sonamu.co.kr)

                        (ÀϹݰèÁ¤)     namu   (namu at sonamu.co.kr)

                        (ÀϹݰèÁ¤)     kim    (kim at sonamu.co.kr)          

                        (ÀϹݰèÁ¤)     park   (pakr at sonamu.co.kr)

                        (ÀϹݰèÁ¤)     lee    (lee at sonamu.co.kr)  

======================+==============+================================ 



¸ÕÀú °èÁ¤À»  ¹ß±ÞÇØ ÁÖÀÚ.

linux.ac.kr µµ¸ÞÀÎÀº ½Ã½ºÅÛ °ü¸®ÀÚÀÎ root °¡ °ü¸®ÇϹǷΠº°µµ·Î °èÁ¤À»

¸¸µéÁö ¾Ê°í ÀϹÝÀ¯ÀúÀÎ 'san2' °¡ °ü¸®ÇÑ´Ù´Â °¡Á¤ÀÌ´Ù.



# adduser san2

# passwd san2

password *******



# adduser com

# passwd com

password *******



# adduser net

# passwd net

password *******



# adduser meet

# passwd meet

password *******



# adduser sonamu

# passwd sonamu

password *******



# adduser namu

# passwd namu

password *******



# adduser kim

# passwd kim

password *******



# adduser park

# passwd park

password *******



# adduser lee

# passwd lee

password *******





2. DNS(µµ¸ÞÀÎ ³×ÀÓ¼­ºñ½º) ¼³Á¤



°¡»óÀ¥È£½ºÆÃÀ» ¿øÇÏ°íÀÚ ÇÏ´Â ÀÌ´Â ¹«¾ùº¸´Ù µµ¸ÞÀγ×ÀÓ¼­¹ö¸¦ Àß ¼³Á¤

ÇؾßÇÑ´Ù. ³×ÀÓ¼­¹ö¸¦ ¾î¶»°Ô Àß ¼³Á¤ÇÏ´À³Ä ¸øÇÏ´À³Ä¿¡ µû¶ó¼­ À¥È£½ºÆÃ

°¡´ÉÀ¯¹«°¡ °áÁ¤µÈ´Ù.

¶ÇÇÑ IP°¡ ºÎÁ·ÇÏ¿© 1°³ÀÇ IP·Î ¿©·¯°³ÀÇ µµ¸ÞÀÎÀ» ÇÑ´ëÀÇ ¸®´ª½º¹Ú½º¿¡

¿î¿µÇÏ´Â °Íµµ ¿ª½Ã ¸¸Âù°¡ÁöÀÌ´Ù.

´ÙÀ½¿¡ º¸¿©ÁÖ´Â ³×ÀÓ¼­¹ö ¼³Á¤ÀÇ ¿¹´Â ¾îµð±îÁö³ª ÇÊÀÚÀÇ ¿¹ÀÌ´Ù. Áï ¾ó

¸¶µçÁö °°Àº °á°ú·Î ´Ù¸¥ ¿¹°¡ Àֱ⠸¶·ÃÀ̹ǷΠ³×ÀÓ¼­¹ö ¼³Á¤¿¡ ´ëÇÑ ¹®

¼­¸¦ ²À Àо±â ¹Ù¶õ´Ù. ¿©±â¿¡¼­´Â ù¸Ó¸®¿¡ ¸»ÇßµíÀÌ °³³äÀ̳ª Á¤ÀǸ¦

¼³¸íÇÏÁö´Â ¾Ê´Â´Ù. ´Ù¸¸ À§ÀÇ ¸ñÇ¥¿¡ ºÎÇյDZâ À§Çؼ­ ³×ÀÓ¼­¹ö¸¦

¼³Á¤ÇÒ »ÓÀÌ´Ù.(ÇÊÀÚÀº ³×ÀÓ¼­¹ö Àü¹®°¡°¡ ¾Æ´Ô)





2-1. Bind ¼³Ä¡Çϱâ



³×ÀÓ¼­¹ö¸¦ ±¸Ãà(¶Ç´Â ¼³Á¤)ÇÏ·Á¸é Bind ¼³Ä¡´Â ÇʼöÀûÀÌ´Ù.

Bind¿Í   caching-nameserver´Â ²À ¼³Ä¡ÇØ¾ß ÇÑ´Ù.

¿ì¼± ÀÚ½ÅÀÇ ¸®´ª½º¹Ú½º¿¡ ¼³Ä¡(rpm)µÇ¾î ÀÖ´ÂÁö È®ÀÎÇÏÀÚ.



[san2@www san2]$ rpm -qa | grep bind

bind-8.2-6

bind-utils-8.2-6

[san2@www san2]$

[san2@www san2]$ rpm -qa | grep name

caching-nameserver-6.0-2

[san2@www san2]$



ÇÊÀÚÀÇ ¸®´ª½º¹Ú½º¿¡´Â bind-8.2 ¿Í caching-nameserver-6.0ÀÌ ¼³Ä¡

µÇ¾î ÀÖ´Ù. ¼³Ä¡µÇ¾î ÀÖÁö ¾Ê´Ù¸é ´ÙÀ½°ú °°ÀÌ CD-ROMÀ̳ª FTP½ÎÀÌÆ®

¿¡¼­ ´Ù¿î·ÎµåÇÏ¿© ¼³Ä¡Çϱ⠹ٶõ´Ù.



¿¹: CD-ROMÀ¸·Î ¼³Ä¡Çϱâ



[san2@www san2]$ su

Password: ********

[root@www san2]# mount /mnt/cdrom

[root@www san2]# cd /mnt/cdrom/RedHat/RPMS

[root@www RPMS]# rpm -Uvh bind*

bind                            ##############################

bind-devel                      ##############################

bind-utils                      ##############################

[root@www RPMS]# rpm -Uvh caching-nameserver*

caching-nameserver              ##############################

[root@www RPMS]#



ÀÌÁ¦ ³×ÀÓ¼­¹ö¸¦ ±¸ÃàÇϱâ À§ÇÑ ¹Ø¹ÙÅÁÀº µÇ¾îÀÖ´Ù.  ´ÙÀ½´Ü°è¿¡´Â Á÷Á¢

'³ªÀÇ ¸ñÇ¥'¿¡ ºÎÇÕµÇ°Ô ³×ÀÓ¼­¹ö¸¦ ±¸Ãà(ÀÌÇÏ '¼³Á¤')ÇØ º¸ÀÚ.





2-2. ³ªÀÇ ¸ñÇ¥¿¡ ¸Â°Ô DNS ¼³Á¤



À§ÀÇ 2-1°úÁ¤À» ¹«»çÈ÷ ³¡³Â´Ù¸é



[root@www /etc]# ls -l named*

-rw-r--r--   1 root     root          407 Sep 13 08:24 named.boot

-rw-r--r--   1 root     root         1508 Sep 13 08:26 named.conf

[root@www /etc]# cd /var/named

[root@www named]# ls -l

total 8

-rw-r--r--   1 root     root         2769 Mar 22 04:49 named.ca

-rw-r--r--   1 root     root          422 Mar 22 04:49 named.local

[root@www named]#



À§ÀÇ ÆÄÀϵéÀÌ Á¸ÀçÇÒ °ÍÀÌ´Ù.

ÀÌÁ¦ º»°ÝÀûÀ¸·Î ³×ÀÓ¼­¹ö¸¦ 1-2¿¡¼­ ¸»ÇÑ ¸ñÇ¥´ë·Î ¼³Á¤ÇØ º¸ÀÚ.



Âü°í·Î ÇÊÀÚÀÇ ¸®´ª½º¹Ú½º¿¡´Â ÇöÀç ´ÙÀ½°ú °°ÀÌ IP-Aliasing µÇ¾î ÀÖ´Ù.



[san2@www san2]$ /sbin/ifconfig

eth0      Link encap:Ethernet  HWaddr 00:10:4B:18:17:77

          inet addr:192.168.10.3  Bcast:192.168.10.255  Mask:255.255.255.0

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:1297308 errors:6 dropped:0 overruns:0 frame:7

          TX packets:9037 errors:0 dropped:0 overruns:0 carrier:0

          collisions:404 txqueuelen:100

          Interrupt:9 Base address:0xe800



eth0:0    Link encap:Ethernet  HWaddr 00:10:4B:18:17:77

          inet addr:192.168.10.4  Bcast:192.168.10.255  Mask:255.255.255.0

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          Interrupt:9 Base address:0xe800



eth0:1    Link encap:Ethernet  HWaddr 00:10:4B:18:17:77

          inet addr:192.168.10.5  Bcast:192.168.10.255  Mask:255.255.255.0

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          Interrupt:9 Base address:0xe800



eth1      Link encap:Ethernet  HWaddr 00:A0:C9:0C:89:A5

          inet addr:210.123.59.66  Bcast:210.123.59.255  Mask:255.255.255.0



          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:1121139 errors:0 dropped:0 overruns:0 frame:9

          TX packets:35404 errors:1 dropped:0 overruns:0 carrier:2

          collisions:732 txqueuelen:100

          Interrupt:3 Base address:0x210



eth1:0    Link encap:Ethernet  HWaddr 00:A0:C9:0C:89:A5

          inet addr:210.123.59.72  Bcast:210.123.59.255  Mask:255.255.255.0



          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          Interrupt:3 Base address:0x210



lo        Link encap:Local Loopback

          inet addr:127.0.0.1  Mask:255.0.0.0

          UP LOOPBACK RUNNING  MTU:3924  Metric:1

          RX packets:1294 errors:0 dropped:0 overruns:0 frame:0

          TX packets:1294 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:0



[san2@www san2]$



[san2@www san2]$ cat /etc/sysconfig/network

NETWORKING=yes

FORWARD_IPV4=no

HOSTNAME=www.linux.ac.kr

DOMAINNAME=linux.ac.kr

GATEWAY=210.123.59.1    #<----½ÇÁ¦ Á¸ÀçÇÏ´Â GW (º» ³»¿ë°ú »ó°ü¾øÀ½)

GATEWAYDEV=eth1         #<----½ÇÁ¦ ÀÎÅͳÝÀ» »ç¿ëÇϱâ À§Çؼ­ 2¹ø°

#ÀÌ´õ³Ý (º» ³»¿ë°ú »ó°ü¾øÀ½)



[san2@www san2]$ cat /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0

IPADDR=192.168.10.3

NETMASK=255.255.255.0

NETWORK=192.168.10.0

BROADCAST=192.168.10.255

ONBOOT=yes

BOOTPROTO=none



[san2@www san2]$ cat /etc/sysconfig/network-scripts/ifcfg-eth0:0

DEVICE=eth0:0

USERCTL=no

ONBOOT=yes

BOOTPROTO=none

BROADCAST=192.168.10.255

NETWORK=192.168.10.0

NETMASK=255.255.255.0

IPADDR=192.168.10.4



[san2@www san2]$ cat /etc/sysconfig/network-scripts/ifcfg-eth0:1

DEVICE=eth0:1

USERCTL=no

ONBOOT=yes

BOOTPROTO=none

BROADCAST=192.168.10.255

NETWORK=192.168.10.0

NETMASK=255.255.255.0

IPADDR=192.168.10.5



[san2@www san2]$



ÇÊÀÚÀÇ bind ¹öÀüÀº 8.x´ëÀÌ´Ù. µû¶ó¼­ named.bootÆÄÀÏÀº ¼Õ´îÇÊ¿ä´Â

¾øÁö¸¸ ÇнÀÀÇ ¸ñÀû»ó named.boot ÆÄÀϵµ Æ÷ÇÔÇÑ´Ù.



¶ÇÇÑ 2Â÷ ³×ÀÓ¼­¹ö ¼³Á¤Àº »ý·«ÇÑ´Ù.





2-2-1. /etc/named.boot (bind 4.x)



----------/etc/named.boot --------------------------------



;

; a caching only nameserver config

;

; ³»ºÎ IP»ç¿ëÀÇ ¿¹

directory                                    /var/named

cache        .                               named.ca

primary         0.0.127.in-addr.arpa         named.local

primary         10.168.192.in-addr.arpa      zone-10.168.192

primary         linux.ac.kr                  zone-linux.ac.kr

primary         linuxer.com                  zone-linuxer.com

primary         linuxer.net                  zone-linuxer.net

primary         sonamu.co.kr                 zone-sonamu.co.kr



---------end 
---------------------------------------------





2-2-2. /etc/named.conf (bind 8.x)



----------/etc/named.conf ---------------------------------



// generated by named-bootconf.pl



options {

 directory "/var/named";

 /*

  * If there is a firewall between you and nameservers you want

  * to talk to, you might need to uncomment the query-source

  * directive below.  Previous versions of BIND always asked

  * questions using port 53, but BIND 8.1 uses an unprivileged

  * port by default.

  */

 // query-source address * port 53;

};



//

// a caching only nameserver config

//

zone "." {

         type hint;

         file "named.ca";

};

zone "0.0.127.in-addr.arpa" {

         type master;

         file "named.local";

};

zone "10.168.192.in-addr.arpa" {

        type master;

        file "zone-10.168.192";

};

zone "linux.ac.kr" {

        type master;

        file "zone-linux.ac.kr";

};

zone "linuxer.com" {

        type master;

        file "zone-linuxer.com";

};

zone "linuxer.net" {

        type master;

        file "zone-linuxer.net";

};

zone "sonamu.co.kr" {

        type master;

        file "zone-sonamu.co.kr";

};



---------end 
----------------------------------------------





2-2-3. /var/named/named.ca



--------/var/named/named.ca-------------------------------



        »ý·« (¡Ú ÆíÁýÇÒ ÇÊ¿ä¾øÀ½)



---------end 
----------------------------------------------





2-2-4. /var/named/named.local



¡Ú ÆíÁýÇÒ ÇÊ¿ä¾øÀ½



------/var/named/named.local ------------------------------

@       IN      SOA     localhost. root.localhost.  (

                                      1997022700 ; Serial

                                      28800          ; Refresh

                                      14400          ; Retry

                                      3600000        ; Expire

                                      86400 )        ; Minimum

         IN      NS       localhost.

1        IN      PTR      localhost.



---------end 
----------------------------------------------





2-2-5. /var/named/zone-10.168.192



------/var/named/zone-10.168.192 --------------------------



@       IN      SOA     ns.linux.ac.kr. admin.linux.ac.kr.  (

                                      1997022700 ; Serial

                                      28800          ; Refresh

                                      14400          ; Retry

                                      3600000        ; Expire

                                      86400 )        ; Minimum

        IN      NS      ns.linux.ac.kr.

3       IN     PTR     linux.ac.kr.

4       IN     PTR     study.linux.ac.kr.

5       IN     PTR     game.linux.ac.kr.

5       IN     PTR     linuxer.com.

5       IN     PTR     linuxer.net.

5       IN     PTR     sonamu.co.kr.    ;<---³¡¿¡ Á¡(Dot) Çʼö



---------end 
----------------------------------------------





2-2-6. /var/named/zone-linux.ac.kr



-------/var/named/zone-linux.ac.kr --------------------------



@       IN      SOA     ns.linux.ac.kr. admin.linux.ac.kr.  (

                                      1997022700 ; Serial

                                      28800          ; Refresh

                                      14400          ; Retry

                                      3600000        ; Expire

                                      86400 )        ; Minimum

        IN      NS          ns.linux.ac.kr.

        IN      A            192.168.10.3

        IN      HINFO     "x86 Pentium" "Alzza Linux 6.0"

        IN      MX         linux.ac.kr.



localhost     IN     A     127.0.0.1

study         IN     A     192.168.10.4

game          IN     A     192.168.10.5



ns            IN     CNAME @

www           IN     CNAME @

ftp           IN     CNAME @

study-app     IN     CNAME study

study-net     IN     CNAME study



---------end 
----------------------------------------------





2-2-7. /var/named/zone-linuxer.com



----- /var/named/zone-linuxer.com -------------------------



@       IN      SOA     ns.linuxer.com. admin.linuxer.com.  (

                                      1997022700 ; Serial

                                      28800          ; Refresh

                                      14400          ; Retry

                                      3600000        ; Expire

                                      86400 )        ; Minimum

        IN      NS      ns.linuxer.com.

        IN      A        192.168.10.5

        IN      HINFO "x86 Pentium" "Alzza Linux 6.0"

        IN      MX      linuxer.com.



;ns         IN      A 192.168.10.5

;www        IN     A 192.168.10.5

;stock      IN     A 192.168.10.5

;ftp        IN     A 192.168.10.5



ns          IN     CNAME @

www         IN     CNAME @

ftp         IN     CNAME @

stock       IN     CNAME @



---------end -----------------------------------------





2-2-8. /var/named/zone-linuxer.net



------/var/named/zone-linuxer.net ---------------------------



@       IN      SOA     ns.linuxer.net. admin.linuxer.net.  (

                                      1997022700 ; Serial

                                      28800          ; Refresh

                                      14400          ; Retry

                                      3600000        ; Expire

                                      86400 )        ; Minimum

        IN      NS      ns.linuxer.net.

        IN      A        192.168.10.5

        IN      HINFO "x86 Pentium" "Alzza Linux 6.0"

        IN      MX      linuxer.net.



ns          IN     CNAME @

www         IN     CNAME @

ftp         IN     CNAME @

meeting     IN     CNAME @



---------end -------------------------------------------





2-2-9. /var/named/zone-sonamu.co.kr



------/var/named/zone-sonamu.co.kr ------------------------



@       IN      SOA     ns.sonamu.co.kr. admin.sonamu.co.kr.  (

                                      1997022700 ; Serial

                                      28800          ; Refresh

                                      14400          ; Retry

                                      3600000        ; Expire

                                      86400 )        ; Minimum

        IN      NS      ns.sonamu.co.kr.

        IN      A        192.168.10.5

        IN      HINFO "x86 Pentium" "Alzza Linux 6.0"

        IN      MX      sonamu.co.kr.



www     IN     CNAME @



---------end 
-----------------------------------------------





ÀÌ»óÀ¸·Î 1°³ÀÇ IP¿¡ 4°³ÀÇ µµ¸ÞÀÎÀ» ¼³Á¤µÇ¾ú´Ù.



¼³Á¤(ÆíÁý)ÀÌ ³¡³µÀ¸¸é ³×ÀÓ¼­¹ö¸¦ Àç°¡µ¿ÇÑ´Ù.



[root@www san2]# /etc/rc.d/init.d/named restart







3. °¡»ó À¥¼­¹ö (¾ÆÆÄÄ¡ 1.3.9 °æ¿ì)



¾ÆÆÄÄ¡ ¼­¹ö´Â °¡»óÀ¥¼­¹ö¸¦ Áö¿øÇÑ´Ù. º¸Åë °¡»ó À¥È£½ºÆ®´Â Å©°Ô



- IP-based Virtual Hosts

- Name-based Virtual Hosts



·Î º¼ ¼ö ÀÖ´Ù.

º» ³»¿ë¿¡¼­´Â µÑ´Ù Æ÷ÇÔÇÏ°í ÀÖ´Ù.





3-1. ¾ÆÆÄÄ¡¼³Ä¡(»ý·«)



À¥»óÀ̳ª ÀÚ½ÅÀÌ »ç¿ëÇÏ´Â ¹èÆ÷º»ÀÇ FTP¿¡¼­ ÃÖ½ÅÀÇ ¹öÀüÀ» ¹Þ¾Æ¿Í¼­

RPMÀ¸·Î ¼³Ä¡ÇϵçÁö ¼Ò½º¸¦ Á÷Á¢ ÄÄÆÄÀÏÇÏ¿© ¼³Ä¡ÇϵçÁö ÀÌ°Ç ¿©·¯ºÐÀÇ

¼±ÅÃÀÌ´Ù.



¾ÆÆÄÄ¡ ¼³Ä¡´Â RPMÀ¸·Î ¼³Ä¡Çß´Ù´Â °¡Á¤ÇÏ¿¡ /etc/httpd/conf/httpd.conf

ÆÄÀÏÀÌ ¾ÆÆÄÄ¡ÀÇ ¼³Á¤ÆÄÀÏÀÌ´Ù.





3-2. ¾ÆÆÄÄ¡ ¼³Á¤ÆÄÀÏ(httpd.conf)



µåµð¾î °¡»ó À¥ È£½ºÆÃÀ» À§ÇÑ ÀÛ¾÷ÀÌ´Ù. RPMÀ¸·Î ¼³Ä¡ÇßÀ» °æ¿ì´Â

/etc/httpd/conf/httpd.conf ÆÄÀÏÀ» ÆíÁý±â·Î ¿­¾î ´ÙÀ½°ú °°ÀÌ ¿©·¯ºÐÀÇ

ȯ°æ¿¡ ¸ÂÃß¾î ÆíÁýÇÑ´Ù.



* ¼³Á¤ÆÄÀÏ¿¡ °¡»óÀ¥¼­¹ö¿¡ ´ëÇÑ ¸¹Àº Á¤º¸°¡ µé¾î °¡¹Ç·Î °¡±ÞÀû ÇÊ¿ä¾ø´Â

³»¿ëÀº ÀüºÎ ÁÖ¼®Ã³¸®ÇØ ÁØ´Ù.



------/etc/httpd/conf/httpd.conf -----------------------------



# Áß·«

ServerType standalone

ServerRoot "/etc/httpd"

# Áß·«

#ResourceConfig conf/srm.conf

#AccessConfig conf/access.conf

# Áß·«

BindAddress *

# Áß·«

ServerAdmin webmaster at linux.ac.kr

ServerName www.linux.ac.kr

# IP´Â 192.168.10.3 ÀÌ´Ù.

DocumentRoot "/home/httpd/html"

# Áß·«

UserDir Public_html

# Áß·«

HostnameLookups Off

# off ·Î ÇØ ³õÀº°Ô Á¶±Ý ºü¸£´Ù.

# Áß·«

ErrorLog logs/error_log

# Áß·«

CustomLog logs/access_log common

# Áß·«

ServerSignature Email

# ¼±ÅÃÀº ¿©·¯ºÐÀÇ ÀÚÀ¯ÀÌ´Ù.

# Áß·«



##########[°¡»ó À¥ È£½ºÆ® ¼³Á¤ ºÎºÐ]#####################

NameVirtualHost 192.168.10.4



<VirtualHost 192.168.10.4>

   ServerName study.linux.ac.kr

   ServerAdmin study at linux.ac.kr

   DocumentRoot /home/linux.ac.kr/study

   ErrorLog logs/study.linux.ac.kr-error_log

   CustomLog logs/study.linux.ac.kr-access_log common

</VirtualHost>



<VirtualHost 192.168.10.4>

   ServerName study-app.linux.ac.kr

   ServerAdmin study-app at linux.ac.kr

   DocumentRoot /home/linux.ac.kr/study-app

   ErrorLog logs/study-app.linux.ac.kr-error_log

   CustomLog logs/study-app.linux.ac.kr-access_log common

</VirtualHost>



<VirtualHost 192.168.10.4>

   ServerName study-net.linux.ac.kr

   ServerAdmin study-net at linux.ac.kr

   DocumentRoot /home/linux.ac.kr/study-net

   ErrorLog logs/study-net.linux.ac.kr-error_log

   CustomLog logs/study-net.linux.ac.kr-access_log common

</VirtualHost>



# NameVirtualHost IP´Â ¾î´À °÷¿¡ À§Ä¡ÇÏ¿©µµ °á°ú´Â ¶È°°´Ù.

# Áï ¿©±â¿¡¼­ ºÎ¿¬ ¼³¸íÇÏÀÚ¸é

# 192.168.105 ¸¦ »ç¿ëÇϴ ȣ½ºÆ®¿¡ ´ëÇؼ­´Â game.linux.ac.kr

# È£½ºÆ®°¡ ±× ¼±Ãë±ÇÀ» °¡Áö°í ÀÖ´Ù. ¿¹¸¦ µé¾î ³×ÀÓ¼­¹ö¿¡

# ns.linuxer.comÀÌ µî·ÏµÇ¾î ÀÖÁö¸¸ °¡»óÈ£½ºÆ® ¼³Á¤ºÎºÐ¿¡¼­

# ns.linuxer.com À» Á¤ÀÇÇØ ÁÖÁö ¾ÊÀ¸¸é ns.linuxer.comÀ¸·Î Á¢¼ÓÇϸé

# game.linux.ac.kr ÀÇ Document¸¦ º¸¿©ÁØ´Ù.

# ²À ³×ÀÓ¼­¹ö¿¡ Á¤ÀÇÇÑ ¸ðµç È£½ºÆ®¿¡ ´ëÇؼ­ °¡»óÈ£½ºÆ®¿¡ Á¤ÀÇÇØ

# ÁÖ¾î¾ß ¾î»öÇÔÀÌ ¾ø´Ù.

# À̶§ »ç¿ëÇÏ´Â °ÍÀÌ ServerAlias Áö½ÃÀÚÀÌ´Ù. ¾Æ·¡ÀÇ ³»¿ëÀ» Á»´õ

# »ìÆ캸ÀÚ.



NameVirtualHost 192.168.10.5



<VirtualHost 192.168.10.5>

   ServerName game.linux.ac.kr

# 192.168.10.5 ÀÇ IP¸¦ »ç¿ëÇÏ´Â ¸ðµç È£½ºÆ®ÀÇ ±âº»ÀÌ µÇ´Â È£½ºÆ®ÀÌ´Ù.

   ServerAdmin game at linux.ac.kr

   DocumentRoot /home/linux.ac.kr/game

   ErrorLog logs/game.linux.ac.kr-error_log

   CustomLog logs/game.linux.ac.kr-access_log common

</VirtualHost>



<VirtualHost 192.168.10.5>

   ServerName stock.linuxer.com

   ServerAdmin stock at linuxer.com

# adminÀº com °èÁ¤À¸·Î ¸ÞÀÏÀ» ¹Þ´Â´Ù.

   DocumentRoot /home/com/wwwhome_stock

   ScriptAlias /cgi-bin/ "/home/comwwwhome_stock/cig-bin/"

# ƯÈ÷ ½Éº¼¸¯¸µÅ©ÇÏ¿© ȨÀ» ¿î¿µÇÑ´Ù¸é ScriptAlias Á¤ÀÇ´Â ²À ÇØÁÖ¾î¾ß

# ÇÑ´Ù.

   ErrorLog logs/stock.linuxer.com-error_log

   CustomLog logs/stock.linuxer.com-access_log common

</VirtualHost>



<VirtualHost 192.168.10.5>

   ServerName www.linuxer.com

   ServerAdmin webmaster at linuxer.com

# adminÀº com °èÁ¤À¸·Î ¸ÞÀÏÀ» ¹Þ´Â´Ù.

   ServerAlias *.linuxer.com www.linuxer.com



# Áß¿ä ##################################

# ServerAlias ¿¡ ´ëÇؼ­ ºÎ¿¬¼³¸íÇϸé

# ServerName linuxer.com

# ServerAlias *.linuxer.com linuxer.com

# À¸·Î Çصµ °á°ú´Â À§¿Í ¶È°°´Ù.



# ¿ÞÂÊ¿¡´Â Alias ÇÒ °¡Â¥À̸§ÀÌ°í ¿À¸¥ÂÊ¿¡´Â ServerName À¸·Î ¼³Á¤ÇÑ

# È£½ºÆ®¸¦ Àû¾îÁØ´Ù.



# ¿¹¸¦ µé¾î

# ServerName linuer.com

# ServerAlias www.linuxer.com linuxer.com



# À¸·Î¸¸ Á¤ÀÇÇØ µÎ¸é ¹®Á¦°¡ ÀÖ´Ù.

# ¹Ù·Î À§¿¡ stcok.linuxer.com ÀÌ ¸ÕÀú Á¤ÀÇ µÇ¾î ÀÖ±â

# ¶§¹®¿¡ stock.linuxer.comÀÇ Á¢¼Ó°á°ú´Â ¿Ã¹Ù¸£°Ô º¸¿©ÁÖÁö¸¸

# ³×ÀÓ¼­¹ö¿¡ CNAMEÀ¸·Î ¼³Á¤µÇ¾î ÀÖ´Â

# ftp.linuxer.com ns.linuxer.com ¿¡ ´ëÇؼ­ Á¢¼ÓÇÏ¸é ¸ðµÎ

# game.linux.ac.kr ÀÇ ¹®¼­¸¦ º¸¿©ÁØ´Ù.

# µû¶ó¼­ stockÈ£½ºÆ®¸¦ Á¦¿ÜÇÏ°í ³×ÀÓ¼­¹ö¿¡ Á¤ÀǵǾî ÀÖ´Â ¸ðµç

# È£½ºÆ®(ns. ftp)¿¡ ´ëÇؼ­ www.linuxer.com À¸·Î º¸¿©ÁÙ·Á¸é À§¿Í

# °°ÀÌ ServerAlias¸¦ ÇØ ÁÖ¾î¾ß ÇÑ´Ù.



# ¶ÇÇÑ *(All)¶§½Å ´ÙÀ½°ú °°ÀÌ 2ÁÙÀÇ ServerAlias ·Î Á¤ÀÇÇØ Á־ µÈ´Ù.

# ´Ü ÀÌ°°Àº °æ¿ì ÀÚ¿øÀ» ¸¹ÀÌ Â÷ÁöÇϹǷΠº°·Î ÁÁÁö ¾ÊÀº ¹æ¹ýÀÌ´Ù.

# ServerAlias ftp.linuxer.com www.linuxer.com

# ServerAlias ns.linuxer.com www.linuxer.com



   DocumentRoot /home/linuxercom/wwwhome

# DocumentRoot ~linuxercom/wwwhome

# À§¿Í °°ÀÌ ~(Æ¿Æ®)·Î °æ·Î¸¦ ÁöÁ¤Çϸé À¥¼­¹ö´Â ãÁú ¸øÇÑ´Ù.

# ²À Àý´ë°æ·Î·Î Á¤ÀÇ.

   ErrorLog logs/www.linuxer.com-error_log

   CustomLog logs/www.linuxer.com-access_log common

</VirtualHost>



<VirtualHost 192.168.10.5>

   ServerName meeting.linuxer.net

   ServerAdmin meeting at linuxer.net

# adminÀº meet °èÁ¤À¸·Î ¸ÞÀÏÀ» ¹Þ´Â´Ù.

   DocumentRoot /home/meet/wwwhome

   ErrorLog logs/meeting.linuxer.net-error_log

   CustomLog logs/meeting.linuxer.net-access_log common

</VirtualHost>



<VirtualHost 192.168.10.5>

   ServerName linuxer.net

   ServerAdmin webmaster at linuxer.net

   ServerAlias *.linuxer.net linuxer.net

# adminÀº net °èÁ¤À¸·Î ¸ÞÀÏÀ» ¹Þ´Â´Ù.

   DocumentRoot /home/net/wwwhome

   ErrorLog logs/www.linuxer.net-error_log

   CustomLog logs/www.linuxer.net-access_log common

</VirtualHost>



<VirtualHost 192.168.10.5>

   ServerName www.sonamu.co.kr

   ServerAdmin admin at sonamu.co.kr

# adminÀº sonamu °èÁ¤À¸·Î ¸ÞÀÏÀ» ¹Þ´Â´Ù.



# ¿©±â¿¡¼­´Â ServerAlias¸¦ ÇÒ ÇÊ¿ä°¡ ¾ø´Ù ¿Ö³ÄÇÏ¸é ³×ÀÓ¼­¹ö¿¡ ¿ÀÁ÷

# www.sonamu.co.kr ¸¸ Á¤ÀÇÇØ ³õ¾Ò±â ¶§¹®ÀÌ´Ù.

# À§ÀÇ zone-sonamu.co.kr ÀÇ ÆÄÀÏÀ» È®ÀÎÇØ º¸½Ã¶ó.



   DocumentRoot /home/sonamu/wwwhome

   UserDir Pubic_home



# ´Ù¸¥ µµ¸ÞÀΰú ´Ù¸£°Ô UserDir À» Á¤ÀÇÇÑ´Ù.

# ÁÖ µµ¸ÞÀÎ(linux.ac.kr)ÀÇ UserDir ÀÌ Public_html À̹ǷÎ

# ÁÖ µµ¸ÞÀΰú ´Ù¸¥ µµ¸ÞÀΰú È¥ÇÕµÇÁö ¾Ê°Ô À§Çؼ­´Â ¿ÏÀüÈ÷ ´Ù¸¥

# µð·ºÅ丮¸¦ À§¿Í °°ÀÌ Á¤ÀÇÇØ ÁØ´Ù.

# °¡»óÈ£½ºÆ®¿¡ ´ëÇÑ UserDirÀ» ÁöÁ¤ÇØ ÁÖÁö ¾ÊÀ¸¸é

# ÁÖ µµ¸ÞÀÎ(linux.ac.kr)¿¡ ´ëÇÑ À¯ÀúÀÎ "Public_html" ·Î ÀνÄÇÏ·Á

# Çϱ⠶§¹®¿¡ Document ¸¦ º¸¿©ÁÙ ¼ö ¾ø´Ù.

# ¶ÇÇÑ Public_html À̶õ µð·ºÅ丮°¡ ÀÖ´Ù¸é www.linux.ac.kr/~namu

# ¿Í www.sonam.co.kr/~namu ´Â °°Àº ¹®¼­¸¦ º¸¿©ÁØ´Ù.

# ¶§¹®¿¡ °í°´ÀÌ °³ÀΠȨÆäÀÌÁö¸¦ °®°í ½Í¾î ÇÒ °æ¿ì¿¡´Â

# UserDirÀ» ´Ù¸£°Ô Á¤ÀÇ ÇØ ÁÖ¾î¾ß ÇÑ´Ù.



   ErrorLog logs/www.sonamu.co.kr-error_log

   CustomLog logs/www.sonamu.co.kr-access_log common

</VirtualHost>



#NameVirtualHost 192.168.10.5

# À§¿Í °°ÀÌ ¸Ç ³ªÁß¿¡ NameVirtualHost¸¦ Á¤ÀÇÇØ Á־ µÈ´Ù.

# ¾Õ¼­ ¾ê±â ÇßÁö¸¸  192.168.10.5 ¸¦ »ç¿ëÇÏ´Â ¸ðµç È£½ºÆ®¿¡ ´ëÇؼ­´Â

# ¸Ç¾Õ¿¡ °¡»óÈ£½ºÆ®·Î ÁöÁ¤ÇÑ È£½ºÆ®°¡ ±× ¼±ÃëÁ¡À» °¡Áö°í ÀÖ´Ù.

# ¿©±â¿¡¼­´Â game.linux.ac.kr ÀÇ È£½ºÆ®°¡ ÀÌ¿¡ ÇØ´çµÈ´Ù.



---------end 
---------------------------------------------



ÀÌ·Î½á °¡»óÀ¥¼­¹ö ¼³Á¤ÀÌ ¸ðµÎ ³¡³µ´Ù.



ÀÌÁ¦ ³²Àº °ÍÀº DocumentRoot °¡ µÉ µð·ºÅ丮¸¦ ¼³Á¤ÇÏ´Â °Í¸¸

³²¾Æ ÀÖ´Ù.



# mkdir /home/linux.ac.kr

# mkdir /home/linux.ac.kr/study

# mkdir /home/linux.ac.kr/study-app

# mkdir /home/linux.ac.kr/study-net

# mkdir /home/linux.ac.kr/game

# chmod 705 -R /home/linuxa.c.kr

# su com

$ mkdir ~com/wwwhome

$ chmod -R 705 ~com



$ su net

password *******

$ mkdir ~net/wwwhome

$ chmod -R 705 ~net



$ su meet

password *******

$ mkdir ~meet/wwwhome

$ chmod -R 705 ~meet



$ su sonamu

password *******

$ mkdir ~sonamu/wwwhome

$ chmod -R 705 ~sonamu



$ su namu

password *******

$ mkdir ~net/Public_home

$ chmod -R 705 ~namu



$ su kim

password *******

$ mkdir ~kim/Public_home

$ chmod -R 705 ~kim



$ su park

password *******

$ mkdir ~park/Public_home

$ chmod -R 705 ~park



$ su lee

password *******

$ mkdir ~lee/Public_home

$ chmod -R 705 ~lee

$
Regist Addr [ 127.0.0.1 ] ¸ñ·Ïº¸±â À­±Û ¾Æ·§±Û
Á¤±ÔÇ¥Çö½Ä [ »ó¼¼ °Ë»ö ]
Page Loading [ 0.08 Sec ] SQL Time [ 0 Sec ]

Copyleft 1999-2024 by JSBoard Open Project
Theme Designed by IDOO And follow GPL2

°³ÀÎÁ¤º¸ Ãë±Þ¹æħ ÀÌ¿ë ¾à°ü »çÀÌÆ® ¸Ê ¾îµå¹Î °ü¸®