[Re:[Áú¹®]VirtualHost ¼ÂÆÿ¡¼­ ÇϳªÀÇ ÆäÀÌÁö¸¸ º¸¿©¿ä. ] -Named VirtualHost- ±Û¾´ÀÌ: »êÀÌ ±Û¾´³¯: 1999³â 08¿ù 13ÀÏ 18½Ã 37ºÐ : VirtualHost¸¦ ¼ÂÆÃÇߴµ¥, °¢°¢ÀÇ µµ¸ÞÀγ×ÀÓÀÌ ¸ðµÎ °°Àº ÆäÀÌÁö¸¦ ¸µÅ©Çؼ­ º¸¿©ÁÝ´Ï´Ù. : °¢ µð·ºÅ丮¸¦ Àû¾îÁá´Âµ¥µµ ¸ðµÎ /home/http/html/index.html ¸¸ »Ñ·ÁÁÝ´Ï´Ù. : ¼ÃÆÃÀº ´ÙÀ½°ú °°ÀÌ Çß½À´Ï´Ù. : : : NameVirtualHost 210.110.49.16 : : : ServerAdmin lsg@localhost : DocumentRoot /home/httpd/html : ServerName pro-web.suwon-c.ac.kr : : : : : ServerAdmin lsg@localhost : DocumentRoot /home/lsg/public_html : ServerName golfstar.suwon-c.ac.kr : : : : httpd -S Çϸé Á¤»óÀûÀ¸·Î µÇ¾ú´Ù´Â ´ÙÀ½ÀÇ ¸Þ½ÃÁö°¡ ³ª¿É´Ï´Ù. : : [root@pro-web /root]# httpd -S : VirtualHost configuration: : 210.110.49.16:80 is a NameVirtualHost : default server pro-web.suwon-c.ac.kr (/etc/httpd/conf/htt : pd.conf:305) : port 80 namevhost pro-web.suwon-c.ac.kr (/etc/httpd/conf/ : httpd.conf:305) : port 80 namevhost golfstar.suwon-c.ac.kr (/etc/httpd/conf : /httpd.conf:312) : : : ¹«¾úÀ» À߸øÇß´ÂÁö Á» ¾Ë·Á ÁÖ¼¼¿ä.... --------------------- ¾È³çÇϼ¼¿ä?? ù±Û¿¡ ´ñ±Û´Þ°í Àû½À´Ï´Ù. »ç¿ë¾ÈÇÔÀ¸·Î °íÃļ­ Àû½À´Ï´Ù. -- 1°³ÀÇ IP¿¡ ¿©·¯°³ÀÇ host¸¦ Àû¿ë(?)½ÃÄÑ °¡»óÀ¥¼­¹ö¸¦ ¿î¿µÇÒ·Á¸é ´ÙÀ½°ú °°Àº (¼ø¼­·Î)Á¶°ÇÀ» ¸¸Á·ÇØ¾ß ÇÕ´Ï´Ù. 1)Àû¿ë½Ãų °¢°¢ÀÇ È£½ºÆ®°¡ ³×ÀÓ¼­¹ö¿¡ µî·ÏµÇ¾î ÀÖ¾î¾ßÇÔ. NT or ¸®´ª½º »ó°ü¾øÀ½ 2)nslookup ¸í·ÉÀ¸·Î Á¦´ë·Î µî·ÏµÇ¾î ÀÖ³ª ÀçÈ®ÀÎ 3)Á¤»óÀûÀ¸·Î µî·ÏµÇ¾î ÀÖ´Ù¸é 4)¾ÆÆÄÄ¡À¥¼­ÀÏ °æ¿ì /etc/httpd/conf/httpd.conf ¼³Á¤ÆÄÀÏ¿¡¼­ ...... ºÎºÐ¹Ù·Î À§¿¡(ÇÏ½Å°Í Ã³·³) #NameVirtualHost "Çش縮´ª½º¹Ú½ºIP" ¸Ç¾ÕÀÇ Çؽ¬(#), Áï ÁÖ¼®À» Á¦°ÅÇÏ°í, "Çش縮´ª½º¹Ú½ºIP"¿¡´Â IPÁÖ¼Ò¸¦ Á¤È®ÇÏ°Ô Àû¾îÁÝ´Ï´Ù. 5)±×¸®°í NameVirtualHost 210.110.49.16 ¹Ù·ÎÀ§¿¡ (¹ØÀÌ ¾Æ´Ô) DocumentRoot /home/httpd/html ServerName "¿ø·¡ÀÇServerName" ¼³¸íÇÏÀÚ¸é VirtualHost ¹®¼­¿¡¼­´Â ±×³É NameVirtualHost IPÁÖ¼Ò¸¸ Àû¿ë½ÃÄÑÁÖ¸é µÇ´Â°Í Ã³·³ µÇ¾î ÀÖÁö¸¸ ½ÇÁ¦·Î À§¿Í °°ÀÌ NameVirtualHostÁö½ÃÀÚ ¹Ù·Î À§¿¡ ±âº» Ȩµð·ºÅ丮¸¦ ÁöÁ¤ÇØ Áà¾ß ÇÑ´Ù°í ÇÕ´Ï´Ù. (----->±èÁ¤±Õ(http://www.oops.kr.net/)´Ô Ȩ¿¡¼­ ÀοëÇß½À´Ï´Ù.) "¿ø·¡ÀÇServerName"ºÎºÐÀ» ¾Æ½Ã°ÚÁö¸¸ httpd.confÆÄÀÏÀÇ ¾ÕºÎºÐ¿¡ ÀÖ´Â ServerNameÁö½ÃÀÚ¿¡ ÇØ´çÇÏ´Â ServerNameÀ» Àû¾îÁÖ¸é µË´Ï´Ù. 6)¾ÆÆÄÄ¡ Àç°¡µ¿ ¹× Å×½ºÆ® ÁÖ)·¹µåÇÞ°æ¿ì¸¦ Áß½ÉÀ¸·Î Àû¾î º¸¾Ò½À´Ï´Ù. *PS)¼ö¿ø´ëÇб³°¡ ¾Æ´Ï°í "¼ö¿ø¿©ÀÚ´ëÇÐ" À̳׿ä...