by ÀúÀÚ¿¡´ëÇØ: ÀúÀÚ´Â ½ºÀ§½º¿¡¼ À¥¸¶½ºÅÍ¿Í À¯´Ð½º °ü¸®ÀÚ·Î ÀÏÇÏ°í ÀÖ´Ù. ÀúÀÚ´Â Linux, unix, Perl, Apache¿Í GPL s/wµî¿¡ °ü½ÉÀ» °¡Áö°í ÀÖ´Ù. ÀúÀÚ¿¡ ´ëÇÑ ´õ ÀÚ¼¼ÇÑ °ÍÀº ÀúÀÚÀÇ È¨ÆäÀÌÁö¿¡¼ ¹ß°ßÇÒ ¼ö ÀÖ´Ù. Â÷·Ê: |
Abstract:
ÀÌ ¹®¼´Â Unix¿Í Linux»ó¿¡¼ ¾ÆÆÄÄ¡¸¦ »ç¿ëÇÏ¿© °°Àº IP ÁÖ¼Ò¸¦ »ç¿ëÇÏ´Â ¿©·¯°³ÀÇ ¹öÃß¾ó À¥¼¹ö¸¦ ¿î¿µÇÏ´Â ¹ýÀ» º¸ÀδÙ. ÀÌ ¹®¼´Â µ¶ÀÚ°¡ ¾ÆÆÄÄ¡¿Í DNS ±×¸®°í Unix¿¡ ´ëÇØ ±âº»ÀûÀÎ Áö½ÄÀ» °¡Áö°í ÀÖ´Ù°í °¡Á¤ÇÑ´Ù. ÀÌ ¹®¼ÀÇ ÁÖ µ¶ÀÚ´Â ISP¿Í ½Ã½ºÅÛ °ü¸®ÀÚ ±×¸®°í ¹è¿ì±â¸¦ ¿øÇÏ´Â ¸ðµç »ç¶÷µéÀÌ´Ù.
IP ÁÖ¼Ò¸¦ Àç»ç¿ë ÇÏ´Â °ÍÀº ¿©·¯°¡Áö ÀÌÀ¯¿¡¼ À¯¿ëÇÏ´Ù.
NameVirtualHost 192.168.1.1:80
#Host for unix files ServerName unix.hometranet.home DocumentRoot /www/unix/html ScriptAlias /cgi-bin/ /www/unix/cgi-bin/ TransferLog /www/unix/logs/access_log ErrorLog /www/unix/logs/error_log #Host for perl stuff ServerName perl.hometranet.home DocumentRoot /www/perl/html ScriptAlias /cgi-bin/ /www/perl/cgi-bin/ TransferLog /www/perl/logs/access_log ErrorLog /www/perl/logs/error_log #Here we host some cool Apache stuff ServerName apache.hometranet.home DocumentRoot /www/apache/html ScriptAlias /cgi-bin/ /www/apache/cgi-bin/ TransferLog /www/apache/logs/access_log ErrorLog /www/apache/logs/error_logÀ§¿Í °°ÀÌ Ãß°¡Çϸé ÇϳªÀÇ IPÁÖ¼Ò·Î ½±°Ô 3°³ÀÇ ¹öÃß¾ó È£½ºÆ®¸¦ µ¡ ºÙÀÏ ¼ö ÀÖ´Ù.
perl.hometranet.home. IN A 192.168.1.1 apache.hometranet.home. IN A 192.168.1.1 unix.hometranet.home. IN A 192.168.1.1
ÀÌ°ÍÀº »õ·Î¿î ±â´ÉÀÌ´Ù. ¾ÆÆÄÄ¡´Â È£½ºÆ® À̸§¿¡ ¿ÍÀϵåÄ«µå¸¦ »ç¿ëÇÏ´Â °ÍÀ» Çã¿ëÇÑ´Ù.
ÀÌ°ÍÀº ´ç½ÅÀÌ µµ¸ÞÀÎÀ» *.home.hometranet.home°ú °°ÀÌ ¼³Á¤ÇÒ ¼ö ÀÖ´Ù´Â °ÍÀ» ÀǹÌÇÑ´Ù. ±×¸®°í user1.home.hometranet.home, user2.home.hometranet.home, user3.home.hometranet.homeµîµî¿¡ ´ëÇÑ ¸ðµç ÁúÀÇ´Â ÀÀ´äµÉ ¼ö ÀÖ°Ô µÈ´Ù.
¿¹:
#host for users ServerName home.hometranet.home ServerAlias *.home.hometranet.home DocumentRoot /www/home/html TransferLog /www/home/logs/access_log ErrorLog /www/home/logs/error_log ±×¸®°í zone ÆÄÀÏ ¾È¿¡¼ÀÇ Ç׸ñ. *.home.hometranet.home. IN A 192.168.1.1ÁÖÀÇ : ÀÌ·¯ÇÑ Æ®¸¯Àº ´ç½ÅÀÌ ¸¸¾à ¸¶ÀÌÅ©·Î ¼ÒÇÁÆ®ÀÇ DNS Server¸¦ »ç¿ëÇÑ´Ù¸é ÀÛµ¿µÇÁö ¾Ê´Â´Ù. ¸¶ÀÌÅ©·Î ¼ÒÇÁÆ®ÀÇ DNS Server´Â È£½ºÆ®À̸§¿¡¼ ¿ÍÀϵåÄ«µå¸¦ »ç¿ëÇϴ°ÍÀ» Çã¿ëÇÏÁö ¾Ê´Â´Ù.
ÀÌ°ÍÀº Á»´õ ÀÚ¼¼ÇÑ ¼³Àý ÆÄÀÏÀÔ´Ï´Ù. ÀÌ°ÍÀº ÀúÀÇ ¸ÞÀÎ httpd.conf ÆÄÀÏ¿¡¼ ÃßÃâÇÑ °ÍÀÔ´Ï´Ù.
ÀÌ°ÍÀº Á¦ ¼¹ö¿¡¼ Á¤È®È÷ ÀÛµ¿ÇÕ´Ï´Ù.
ÀÌ ÆÄÀÏÀ» httpd.conf¿¡ Ãß°¡½ÃÅ°±â À§Çؼ´Â ´ç½ÅÀÇ httpd.conf ÆÄÀϾȿ¡¼ Include Áö½ÃÀÚ¸¦ »ç¿ëÇÏ¸é µË´Ï´Ù.
Include "/etc/vhosts.conf"
º» À¥ÆäÀÌÁö´Â ¸®´ª½ºÆ÷Ä¿½º ÆíÁýÀÚ ÆÀ¿¡ÀÇÇØ °ü¸®µË´Ï´Ù. © Atif Ghaffar LinuxFocus 1999 |
1999-11-06, generated by lfparser version 0.9