{"id":39,"date":"2011-10-28T00:20:39","date_gmt":"2011-10-28T00:20:39","guid":{"rendered":"http:\/\/hhs1080.hosting.paran.com\/?p=39"},"modified":"2011-10-28T00:20:39","modified_gmt":"2011-10-28T00:20:39","slug":"%eb%a6%ac%eb%88%85%ec%8a%a4-%ea%b0%80%ec%83%81%ed%98%b8%ec%8a%a4%ed%8a%b8virtual-host-%ed%8e%8c","status":"publish","type":"post","link":"https:\/\/blog.goorigo.com\/?p=39","title":{"rendered":"[\ub9ac\ub205\uc2a4 \uac00\uc0c1\ud638\uc2a4\ud2b8]Virtual host [\ud38c]"},"content":{"rendered":"<p>\ud38c \ud83d\ude15<a href=\"http:\/\/cheolgoon.tistory.com\/83\">http:\/\/cheolgoon.tistory.com\/83<\/a><\/p>\n<p>\ud558\ub098\uc758 \uc6f9\uc11c\ubc84\uc5d0\uc11c 2\uac1c \uc774\uc0c1\uc758 \uc5ec\ub7ec \uac1c\uc758 \uc6f9\uc11c\ubc84\ub97c \uc6b4\uc601\ud558\ub294 \uac83\uc744 virtual host\ub77c\uace0 \ud569\ub2c8\ub2e4. virtual<br \/>\nhost\ub294 \ubcf5\uc218\uc758 \ud648\ud398\uc774\uc9c0\ub97c \ud558\ub098\uc758 \uc11c\ubc84\uc5d0\uc11c \uc6b4\uc601\ud558\ubbc0\ub85c \uc11c\ubc84\uc758 \ube44\uc6a9\uc808\uac10\uc5d0 \ud070 \ud6a8\uacfc\uac00 \uc788\uc2b5\ub2c8\ub2e4.<br \/>\n\ub300\ubd80\ubd84\uc758 \ud638\uc2a4\ud305\uc5c5\uccb4\uc5d0\uc11c \uc0ac\uc6a9\ud558\ub294 \uac01\uae30 \ub2e4\ub978 \ud68c\uc0ac\uc758 \ud648\ud398\uc774\uc9c0\uc758 \uc6b4\uc601\ubc29\ubc95\uc774\ub77c\uace0 \uc0dd\uac01\ud558\uc2dc\uba74<br \/>\n\ub429\ub2c8\ub2e4. virtual?host\ub294 \ucef4\ud4e8\ud130\ub9cc \ud55c \ub300\uc774\uc9c0 ip\uc640 domain\ub3c4 \ub2e4\ub974\uae30 \ub54c\ubb38\uc5d0 \uc678\ubd80\uc5d0\uc11c\ub294 \uac19\uc740<br \/>\n\ud638\uc2a4\ud2b8\uc5d0\uc11c \uc6b4\uc601\ub418\ub294 \uc0ac\uc2e4\uc744?\uc54c \uc218 \uc5c6\uc2b5\ub2c8\ub2e4. \ud638\uc2a4\ud305\uc5c5\uccb4\uc5d0\uc11c \uc6f9\uc11c\ubc84\ub97c \uc6b4\uc601\ud558\ub294 \ubc29\ubc95\uc5d0\ub294<br \/>\n4\uac00\uc9c0\uac00 \uc788\ub294\ub370 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4.<\/p>\n<table width=\"550\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"#666666\">\n<tbody>\n<tr>\n<td>\n<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\">\n<tbody>\n<tr bgcolor=\"#cccccc\">\n<td width=\"317\" height=\"20\">\n<p align=\"center\">\ubd84 ?\ub958<\/p>\n<\/td>\n<td width=\"368\" height=\"20\">\n<p align=\"center\">\uc124 \uba85<\/p>\n<\/td>\n<\/tr>\n<tr bgcolor=\"#ffffff\">\n<td width=\"317\" height=\"20\">\n<p align=\"left\">???????Name Based Virtual host<\/p>\n<\/td>\n<td width=\"368\" height=\"20\">??\ub3c4\uba54\uc778\ub124\uc784 \uae30\ubc18 \uac00\uc0c1 \ud638\uc2a4\ud2b8<\/td>\n<\/tr>\n<tr bgcolor=\"#ffffff\">\n<td width=\"317\" height=\"20\">\n<p align=\"left\">???????IP Based Virtual host<\/p>\n<\/td>\n<td width=\"368\" height=\"20\">???IP \uc8fc\uc18c \uae30\ubc18 \uac00\uc0c1 \ud638\uc2a4\ud2b8<\/td>\n<\/tr>\n<tr bgcolor=\"#ffffff\">\n<td width=\"317\" height=\"20\">\n<p align=\"left\">???????Port Based Virtual host<\/p>\n<\/td>\n<td width=\"368\" height=\"20\">??\ud3ec\ud2b8 \uae30\ubc18 \uac00\uc0c1 \ud638\uc2a4\ud2b8<\/td>\n<\/tr>\n<tr bgcolor=\"#ffffff\">\n<td width=\"317\" height=\"20\">\n<p align=\"left\">???????Default Virtual host<\/p>\n<\/td>\n<td width=\"368\" height=\"20\">??\ub514\ud3f4\ud2b8 \uac00\uc0c1\ud638\uc2a4\ud2b8<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p>\uc704\uc5d0\uc11c \uac01\uac01\uc758 \uacbd\uc6b0\ub294<\/p>\n<table width=\"550\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"#666666\">\n<tbody>\n<tr>\n<td>\n<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td bgcolor=\"#cccccc\" width=\"98\" height=\"20\">Name Base<\/td>\n<td bgcolor=\"#ffffff\" width=\"500\" height=\"20\">\ud558\ub098\uc758 ip\uc5d0 \uc5ec\ub7ec \uac1c\uc758 \ub3c4\uba54\uc778\uc744 \ubd80\uc5ec\ud558\uc5ec \uac01\uac01 \ub2e4\ub978 \ud638\uc2a4\ud2b8\ub85c \uc6b4\uc6a9<\/td>\n<\/tr>\n<tr>\n<td bgcolor=\"#cccccc\" width=\"98\" height=\"20\">IP Base<\/td>\n<td bgcolor=\"#ffffff\" width=\"500\" height=\"20\">\uac00\uc0c1 \ud638\uc2a4\ud2b8 \uac01\uac01\uc5d0 \ub2e4\ub978 IP \uc8fc\uc18c\ub97c \ubd80\uc5ec\ud574\uc11c \uc6b4\uc6a9<\/td>\n<\/tr>\n<tr>\n<td bgcolor=\"#cccccc\" width=\"98\" height=\"20\">Port Base<\/td>\n<td bgcolor=\"#ffffff\" width=\"500\" height=\"20\">\ud558\ub098\uc758?\ub3d9\uc77c\ud55c \ud638\uc2a4\ud2b8\uc5d0 \ud3ec\ud2b8\ub9cc \ub2e4\ub974\uac8c \uc9c0\uc815\ud574\uc11c?\uc6b4\uc6a9<\/td>\n<\/tr>\n<tr>\n<td bgcolor=\"#cccccc\" width=\"98\" height=\"20\">Default<\/td>\n<td bgcolor=\"#ffffff\" width=\"500\" height=\"20\">\uc704\uc758 \uc138\uac00\uc9c0\uc5d0 \ud574\ub2f9\uc0ac\ud56d\uc774 \uc5c6\ub294 \uacbd\uc6b0 \uae30\ubcf8\uc73c\ub85c \uc751\ub2f5\ud558\ub294 \ud638\uc2a4\ud2b8<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p>3\uac00\uc9c0 \uc911 \uac00\uc7a5 \ub9ce\uc774 \uc4f0\uc774\ub294 \uac83\uc740 \ud558\ub098\uc758 ip \uc5d0 \uc5ec\ub7ec \uac1c\uc758 \ub3c4\uba54\uc778\uc744 \ubd80\uc5ec\ud558\ub294 \ubc29\ubc95\uc73c\ub85c, \ucd08\uae30\uc5d0\ub294 ip base<br \/>\n\ubc29\uc2dd\uc774 \ub9ce\uc774 \uc4f0\uc600\uc9c0\ub9cc \uc694\uc998\uc740 ip \uc8fc\uc18c\uc758 \ubd80\uc871\uc73c\ub85c \uac70\uc758 \uc0ac\uc6a9\ub418\uc9c0 \uc54a\ub294\ub2e4\uace0 \ud569\ub2c8\ub2e4. \uc544\ub798\ub294 \uc54c\uc9dc \ub9ac\ub205\uc2a4\uc758<br \/>\nhttpd.conf \ud30c\uc77c\uc758 \uac00\uc0c1\ud638\uc2a4\ud2b8 \ubd80\ubd84\uc5d0 \ub300\ud55c \uc124\uba85\uc744?\uc62e\uae34 \uac83\uc778\ub370 \ucc38\uace0\ud558\uc2dc\uae30 \ubc14\ub78d\ub2c8\ub2e4.<\/p>\n<table width=\"550\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#cccccc\">\n<tbody>\n<tr>\n<td>##################################################################<br \/>\n### \uc139\uc158 3: \uac00\uc0c1 \ud638\uc2a4\ud2b8<br \/>\n#<br \/>\n# VirtualHost: \uc5ec\ub7ec\ubd84\uc758 \ub9ac\ub205\uc2a4 \ubc15\uc2a4\uc5d0 \uc5ec\ub7ec \uac1c\uc758 \ub3c4\uba54\uc778\/\ud638\uc2a4\ud2b8\uc774\ub984\uc744<br \/>\n# \uad00\ub9ac\ud558\uace0 \uc2f6\ub2e4\uba74 \uac01\uac01\uc5d0 \ub300\ud558\uc5ec VirtualHost \ucee8\ud14c\uc774\ub108\ub97c \uc124\uc815\ud55c\ub2e4.<br \/>\n# \uac00\uc0c1 \ud638\uc2a4\ud2b8\ub97c \uc124\uc815\ud558\uae30\uc5d0 \uc55e\uc11c \uc790\uc138\ud55c \uc124\uba85\uc744<br \/>\n# &lt;URL:http:\/\/www.apache.org\/docs\/vhosts\/&gt;\uc5d0 \ub4e4\ub7ec \uc77d\uc5b4\ubcf4\uae30 \ubc14\ub780\ub2e4.<br \/>\n# \uac00\uc0c1 \ud638\uc2a4\ud2b8 \uc124\uc815 \ub0b4\uc6a9\uc744 \uc810\uac80\ud574\ubcf4\uae30 \uc704\ud574\uc11c\ub294 \uc544\ud30c\uce58\ub97c \uc2e4\ud589\ud560 \ub54c<br \/>\n# \uba85\ub839\ud589 \uc635\uc158\uc73c\ub85c &#8216;-S&#8217;\ub97c \uc0ac\uc6a9\ud55c\ub2e4.<\/p>\n<p>#<br \/>\n# \uc774\ub984 \uae30\ubc18\uc758 \uac00\uc0c1 \ud638\uc2a4\ud2b8\ub97c \uc0ac\uc6a9\ud558\ub824\uba74 \uc0ac\uc6a9\ud560 IP \uc8fc\uc18c (\ucd5c\uc18c 1 \uac1c,<br \/>\n# \uadf8\ub9ac\uace0 \ud3ec\ud2b8 \ubc88\ud638)\ub97c \uc815\uc758\ud574\uc8fc\uc5b4\uc57c \ud55c\ub2e4.<br \/>\n#<br \/>\n# \uacbd\uace0 : \uc544\ud30c\uce58 1.2.x \ubc84\uc804\uc5d0\uc11c\ub9cc \uac00\uc0c1 \ud638\uc2a4\ud2b8 \uae30\ub2a5\uc744 \uc0ac\uc6a9\ud574 \uc628 \uad00\ub9ac\uc790\ub4e4\uc740<br \/>\n# ???????\uc544\ud30c\uce58 1.3.x \ubc84\uc804\uc5d0\uc11c NameVirtualHost \uc9c0\uc2dc\uc790\ub85c IP \uc8fc\uc18c\ub97c<br \/>\n# ???????\ud574\uc8fc\uc5b4\uc57c\ub9cc \uac00\uc0c1 \ud638\uc2a4\ud2b8\uac00 \uc81c\ub300\ub85c \ub3d9\uc791\ud55c\ub2e4\ub294 \uc0ac\uc2e4\uc744 \uaf2d \uc54c\uc544\uc57c \ud55c\ub2e4!!!<br \/>\n# ???????1.2 \ubc84\uc804\uc744 \uc4f0\ub2e4 1.3 \ubc84\uc804\uc73c\ub85c \uc640\uc11c \uac00\uc0c1 \ud638\uc2a4\ud2b8\uac00 \ub3d9\uc791\ud558\uc9c0 \uc54a\ub294<br \/>\n# ???????\ubb38\uc81c\uc758 99% \ub294 \ubc14\ub85c NameVirtualHost \uc124\uc815\uc5d0 \uc788\ub2e4.<br \/>\n#<br \/>\n#<br \/>\n#NameVirtualHost 12.34.56.78:80<br \/>\n#NameVirtualHost 12.34.56.78<\/p>\n<p>#<br \/>\n# \uac00\uc0c1 \ud638\uc2a4\ud2b8 \uc608\uc81c:<br \/>\n# \uac70\uc758 \ubaa8\ub4e0 \uc544\ud30c\uce58 \uc9c0\uc2dc\uc790\uac00 VirtualHost \ucee8\ud14c\uc774\ub108\uc5d0 \uc62c \uc218 \uc788\ub2e4.<br \/>\n#<br \/>\n#&lt;VirtualHost ip.address.of.host.some_domain.com&gt;<br \/>\n# ???ServerAdmin webmaster@host.some_domain.com<br \/>\n# ???DocumentRoot \/www\/docs\/host.some_domain.com<br \/>\n# ???ServerName host.some_domain.com<br \/>\n# ???CustomLog logs\/host.some_domain.com-access_log common<br \/>\n# ???ErrorLog logs\/host.some_domain.com-error_log<\/p>\n<p>#&lt;\/VirtualHost&gt;<\/p>\n<p>#&lt;VirtualHost _default_:*&gt;<br \/>\n#&lt;\/VirtualHost&gt;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\uadf8\ub7fc \ud558\ub098, \ud558\ub098 \uc608\ub97c \ub4e4\uc5b4\uc11c \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4..<br \/>\n\ub2e8 \uac01\uac01\uc758 \uacbd\uc6b0\uc5d0\uc11c \ub2e4\ud050\uba3c\ud2b8 \ud30c\uc77c\uc758 \uc704\uce58\ub294 \uc784\uc758\ub85c \ud55c \uac83\uc784\uc744 \uc54c\ub9bd\ub2c8\ub2e4.<\/p>\n<p><span style=\"font-size: small\"><strong>1. Name base virtual host?<\/strong><\/span>\uc758 \uc608\uc81c\uc785\ub2c8\ub2e4.<\/p>\n<p>\ud558\ub098\uc758 ip 192.168.1.1\uc5d0 alpha.linux.org,?bravo.llinux.org 2\uac1c\uc758 \ud638\uc2a4\ud2b8\ub97c \uc6b4\uc601\ud560 \uacbd\uc6b0.<\/p>\n<table width=\"550\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#cccccc\">\n<tbody>\n<tr>\n<td>\n<table width=\"550\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td colspan=\"3\" height=\"20\">&lt;VirtualHost 192.168.1.1&gt;<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">ServerAdmin<\/td>\n<td width=\"434\" height=\"20\">root@alpha.linux.org<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">ServerName<\/td>\n<td width=\"434\" height=\"20\">alpha.linux.org<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">DocumentRoot<\/td>\n<td width=\"434\" height=\"20\">&nbsp;<\/p>\n<p>\/home\/alpha\/public_html<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">ScriptAlias<\/td>\n<td width=\"434\" height=\"20\">\/cgi-bin \/home\/alpha\/wwwhome\/cgi-bin<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">CustomLog<\/td>\n<td width=\"434\" height=\"20\">logs\/alpha.linux.org-access_log common<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">ErrorLog<\/td>\n<td width=\"434\" height=\"20\">logs\/alpha.linux.org-accss-errog_log<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">&lt;\/VirtualHost&gt;<\/td>\n<td width=\"434\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table width=\"550\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td colspan=\"3\" height=\"20\">&lt;VirtualHost 192.168.1.1&gt;<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">ServerAdmin<\/td>\n<td width=\"434\" height=\"20\">root@alpha.linux.org<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">ServerName<\/td>\n<td width=\"434\" height=\"20\">bravo.linux.org<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">DocumentRoot<\/td>\n<td width=\"434\" height=\"20\">&nbsp;<\/p>\n<p>\/home\/bravo\/public_html<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">ScriptAlias<\/td>\n<td width=\"434\" height=\"20\">\/cgi-bin \/home\/bravo\/wwwhome\/cgi-bin<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">CustomLog<\/td>\n<td width=\"434\" height=\"20\">logs\/bravo.linux.org-access_log common<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">ErrorLog<\/td>\n<td width=\"434\" height=\"20\">logs\/bravo.linux.org-accss-errog_log<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">&lt;\/VirtualHost&gt;<\/td>\n<td width=\"434\" height=\"20\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"font-size: small\"><strong>2. IP base virtual host?<\/strong><\/span>\uc758 \uc608\uc81c<\/p>\n<p>ip 192.168.1.1 , ?192.168.1.2 , 192.168.1.3 ?3\uac1c\uc758 \uc8fc\uc18c\uc0ac\uc6a9\ud560 \ub54c.<\/p>\n<table width=\"550\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#cccccc\">\n<tbody>\n<tr>\n<td>port 80<\/p>\n<p>ServerName alpha.linux.org<\/p>\n<p>DocumentRoot \/usr\/local\/apache\/htdocs ?????????&lt;&lt; ?\uc8fc \ud638\uc2a4\ud2b8 alpha 192.168.1.1 \uc758 \uc124\uc815<\/p>\n<p>&nbsp;<\/p>\n<table width=\"550\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td colspan=\"3\" height=\"20\">&lt;VirtualHost 192.168.1.1&gt;<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">ServerAdmin<\/td>\n<td width=\"433\" height=\"20\">root@alpha.linux.org<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">ServerName<\/td>\n<td width=\"433\" height=\"20\">alpha.linux.org<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">DocumentRoot<\/td>\n<td width=\"433\" height=\"20\">&nbsp;<\/p>\n<p>\/home\/alpha\/public_html<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">ScriptAlias<\/td>\n<td width=\"433\" height=\"20\">\/cgi-bin \/home\/alpha\/wwwhome\/cgi-bin<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">CustomLog<\/td>\n<td width=\"433\" height=\"20\">logs\/alpha.linux.org-access_log common<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">ErrorLog<\/td>\n<td width=\"433\" height=\"20\">logs\/alpha.linux.org-accss-errog_log<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">&lt;\/VirtualHost&gt;<\/td>\n<td width=\"433\" height=\"20\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<table width=\"550\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td colspan=\"3\" height=\"20\">&lt;VirtualHost 192.168.1.2&gt;<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">ServerAdmin<\/td>\n<td width=\"434\" height=\"20\">root@alpha.linux.org<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">ServerName<\/td>\n<td width=\"434\" height=\"20\">bravo.linux.org<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">DocumentRoot<\/td>\n<td width=\"434\" height=\"20\">&nbsp;<\/p>\n<p>\/home\/bravo\/public_html<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">ScriptAlias<\/td>\n<td width=\"434\" height=\"20\">\/cgi-bin \/home\/bravo\/wwwhome\/cgi-bin<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">CustomLog<\/td>\n<td width=\"434\" height=\"20\">logs\/bravo.linux.org-access_log common<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">ErrorLog<\/td>\n<td width=\"434\" height=\"20\">logs\/bravo.linux.org-accss-errog_log<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">&lt;\/VirtualHost&gt;<\/td>\n<td width=\"434\" height=\"20\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table width=\"550\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td colspan=\"3\" height=\"20\">&lt;VirtualHost 192.168.1.3&gt;<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">ServerAdmin<\/td>\n<td width=\"434\" height=\"20\">root@alpha.linux.org<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">ServerName<\/td>\n<td width=\"434\" height=\"20\">charlie.linux.org<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">DocumentRoot<\/td>\n<td width=\"434\" height=\"20\">&nbsp;<\/p>\n<p>\/home\/charlie\/public_html<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">ScriptAlias<\/td>\n<td width=\"434\" height=\"20\">\/cgi-bin \/home\/charlie\/wwwhome\/cgi-bin<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">CustomLog<\/td>\n<td width=\"434\" height=\"20\">logs\/charlie.linux.org-access_log common<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">ErrorLog<\/td>\n<td width=\"434\" height=\"20\">logs\/charlie.linux.org-accss-errog_log<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">&lt;\/VirtualHost&gt;<\/td>\n<td width=\"434\" height=\"20\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p><strong>3. Port base virtual host?<\/strong>\uc758 \uc608\uc81c<\/p>\n<table width=\"550\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#cccccc\">\n<tbody>\n<tr>\n<td>Listen 80<\/p>\n<p>ServerName alpha.linux.org<\/p>\n<p>DocumentRoot \/usr\/local\/apache\/htdocs ?????????&lt;&lt; ?\uc8fc \ud638\uc2a4\ud2b8 alpha 192.168.1.1 \uc758 \uc124\uc815<\/p>\n<p>&nbsp;<\/p>\n<p>Listen 8080 ??????????????????????????????????????????????????????????&lt;&lt; \uc0ac\uc6a9\ud560 \ud3ec\ud2b8\ubc88\ud638<\/p>\n<p>Listen 8081<\/p>\n<table width=\"550\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td colspan=\"3\" height=\"20\">&lt;VirtualHost 192.168.1.2 :8080&gt;<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">ServerAdmin<\/td>\n<td width=\"434\" height=\"20\">root@alpha.linux.org<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">ServerName<\/td>\n<td width=\"434\" height=\"20\">alpha.linux.org<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">DocumentRoot<\/td>\n<td width=\"434\" height=\"20\">&nbsp;<\/p>\n<p>\/home\/alpha\/public_html<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">ScriptAlias<\/td>\n<td width=\"434\" height=\"20\">\/cgi-bin \/home\/alpha\/wwwhome\/cgi-bin<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">CustomLog<\/td>\n<td width=\"434\" height=\"20\">logs\/alpha.linux.org-access_log common<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">ErrorLog<\/td>\n<td width=\"434\" height=\"20\">logs\/alpha.linux.org-accss-errog_log<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">&lt;\/VirtualHost&gt;<\/td>\n<td width=\"434\" height=\"20\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table width=\"550\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td colspan=\"3\" height=\"20\">&lt;VirtualHost 192.168.1.2 :8081&gt;<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">ServerAdmin<\/td>\n<td width=\"434\" height=\"20\">root@alpha.linux.org<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">ServerName<\/td>\n<td width=\"434\" height=\"20\">bravo.linux.org<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">DocumentRoot<\/td>\n<td width=\"434\" height=\"20\">&nbsp;<\/p>\n<p>\/home\/bravo\/public_html<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">ScriptAlias<\/td>\n<td width=\"434\" height=\"20\">\/cgi-bin \/home\/bravo\/wwwhome\/cgi-bin<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">CustomLog<\/td>\n<td width=\"434\" height=\"20\">logs\/bravo.linux.org-access_log common<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">ErrorLog<\/td>\n<td width=\"434\" height=\"20\">logs\/bravo.linux.org-accss-errog_log<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">&lt;\/VirtualHost&gt;<\/td>\n<td width=\"434\" height=\"20\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><strong>4. Default virtual host?<\/strong>\uc758 \uc608\uc81c<\/p>\n<table width=\"550\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#cccccc\">\n<tbody>\n<tr>\n<td>\n<table width=\"550\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td colspan=\"3\">&lt;VirtualHost?_default_:*&gt;<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">ServerAdmin<\/td>\n<td width=\"434\">root@alpha.linux.org<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">ServerName<\/td>\n<td width=\"434\">bravo.linux.org<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">DocumentRoot<\/td>\n<td width=\"434\">&nbsp;<\/p>\n<p>\/home\/bravo\/public_html<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">ScriptAlias<\/td>\n<td width=\"434\">\/cgi-bin \/home\/bravo\/wwwhome\/cgi-bin<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">CustomLog<\/td>\n<td width=\"434\">logs\/bravo.linux.org-access_log common<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">ErrorLog<\/td>\n<td width=\"434\">logs\/bravo.linux.org-accss-errog_log<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">&lt;\/VirtualHost&gt;<\/td>\n<td width=\"434\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\uc0c1\uae30 \uc608\uc81c\uc5d0\uc11c CustomLog, ?ErrorLog \uc640 TransferLog, \ub4f1 log \ud30c\uc77c\uc740 \uaf2d \ud544\uc694\ub85c \ud558\uac70\ub098 \uc6d0\ud558\ub294 \uacbd\uc6b0\uc5d0<br \/>\n\ub9cc \uc124\uc815\ud558\ub294 \uac83\uc774 \uc88b\uc2b5\ub2c8\ub2e4. \ud55c \uc11c\ubc84\uc5d0 \ub9ce\uc740 \ub3c4\uba54\uc778\uc774 \uc788\uc744 \uacbd\uc6b0 \uc804\ubd80 log \ud30c\uc77c\uc744 \uc8fc\uac8c \ub418\uba74 \ub108\ubb34 \ub9ce\uc740<br \/>\n\ud30c\uc77c\uc774 \uc5f4\ub9ac\uac8c \ub418\uc5b4 cgi \ub098 apache \uc11c\ubc84\uc758 \uc624\uc791\ub3d9\uc744 \ubd88\ub7ec\uc62c \uc218 \uc788\uc73c\ubbc0\ub85c \uc8fc\uc758\ub97c \ud544\uc694\ub85c \ud569\ub2c8\ub2e4. \ud558\uc9c0\ub9cc<br \/>\n\uc6f9\ub85c\uadf8\ubd84\uc11d\uc744 \ud560 \uacbd\uc6b0\uc5d0\ub294 \ub85c\uadf8\ub97c \ub85c\ud14c\uc774\ud2b8\ud558\uac70\ub098 \uc9c0\uc6b0\uba74 \uc548 \ub418\uaca0\uc9c0\uc694.<br \/>\n\uadf8\ub7fc \uc2e4\uc81c \uc608\ub97c \ub4e4\uc5b4\ubcf4\uc9c0\uc694. \uc81c\uac00 \uad00\ub9ac\ud558\ub358 \uc11c\ubc84\uc758 \uc544\ud30c\uce58 \uc124\uc815 \ubd80\ubd84\uc785\ub2c8\ub2e4.<br \/>\n\uc774 \uacbd\uc6b0\ub294 \uc694\uc998 \uac70\uc758 \ub300\ubd80\ubd84\uc758 \uc6f9\ud638\uc2a4\ud305\uc5d0 \uc4f0\uc774\ub294 Name base virtual host?\uc758 \uc608\uc81c\uc785\ub2c8\ub2e4.<br \/>\n\uc804\ubd80\ub294 \ubcf4\uc5ec\ub4dc\ub9b4 \uc218 \uc5c6\uace0 \uc77c\ubd80\ub97c \ubcf4\uc5ec\ub4dc\ub9bd\ub2c8\ub2e4.<br \/>\n\uadf8\ub9ac\uace0 \uc2e4\uc81c \ub3c4\uba54\uc778\uc778 \uad00\uacc4\ub85c xxx\ucc98\ub9ac\ud55c \uac83\uc744 \uc774\ud574\ud558\uc2dc\uae30 \ubc14\ub78d\ub2c8\ub2e4.<\/p>\n<p>\uc6b0\uc120 \uc544\ud30c\uce58 \uc124\uc815\ud30c\uc77c\uc744 \uc5f4\uc5b4\uc11c \ub2e4\uc74c\uacfc \uac19\uc774 virtual host \ubd80\ubd84\uc744 \uc791\uc11d\ud558\uac70\ub098?\uc801\ub2f9\ud558\uac8c \uc218\uc815\ud569\ub2c8\ub2e4.<\/p>\n<table width=\"550\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#cccccc\">\n<tbody>\n<tr>\n<td>[root@tradexxxx \/root]# vi \/usr\/local\/apache\/conf\/httpd.conf<\/p>\n<p>#NameVirtualHost 211.174.60.28<br \/>\n## Section 3: Virtual Hosts #<br \/>\n####################################################<br \/>\n# hosting group #<br \/>\n####################################################<\/p>\n<table width=\"550\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td colspan=\"3\" height=\"20\">#### acexxxx.co.kr ################################<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">ServerAdmin<\/td>\n<td width=\"434\" height=\"20\">webmaster@xxxventure.com<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">ServerName<\/td>\n<td width=\"434\" height=\"20\">www.acexxxx.co.kr<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">DocumentRoot<\/td>\n<td width=\"434\" height=\"20\">\/home\/hosting\/acexxxx\/wwwhome<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">ScriptAlias<\/td>\n<td width=\"434\" height=\"20\">\/cgi-bin \/home\/hosting\/acexxxx\/wwwhome\/cgi-bin<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">CustomLog<\/td>\n<td width=\"434\" height=\"20\">logs\/acexxxx.co.kr-access_log common<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\"># ErrorLog<\/td>\n<td width=\"434\" height=\"20\">logs\/host.some_domain.com-error_log<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<table width=\"550\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td colspan=\"3\" height=\"20\">#### celexxx.co.kr ##################################<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">ServerAdmin<\/td>\n<td width=\"434\" height=\"20\">webmaster@xxxventure.com<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">ServerName<\/td>\n<td width=\"434\" height=\"20\">www.celexxx.co.kr<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">DocumentRoot<\/td>\n<td width=\"434\" height=\"20\">\/home\/hosting\/celexxx\/wwwhome<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">ScriptAlias<\/td>\n<td width=\"434\" height=\"20\">\/cgi-bin \/home\/hosting\/celexxx\/wwwhome\/cgi-bin<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">CustomLog<\/td>\n<td width=\"434\" height=\"20\">logs\/celexxx.co.kr-access_log common<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\"># ErrorLog<\/td>\n<td width=\"434\" height=\"20\">logs\/host.some_domain.com-error_log<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<table width=\"550\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td colspan=\"3\" height=\"20\">#### suanxx.com ####################################<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">ServerAdmin<\/td>\n<td width=\"435\" height=\"20\">webmaster@xxxventure.com<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">ServerName<\/td>\n<td width=\"435\" height=\"20\">www.suanxx.com<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">DocumentRoot<\/td>\n<td width=\"435\" height=\"20\">\/home\/hosting\/suanxx\/wwwhome<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">ScriptAlias<\/td>\n<td width=\"435\" height=\"20\">\/cgi-bin \/home\/hosting\/suanxx\/wwwhome\/cgi-bin<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">CustomLog<\/td>\n<td width=\"435\" height=\"20\">logs\/suanxx.com-access_log common<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\"># ErrorLog<\/td>\n<td width=\"435\" height=\"20\">logs\/host.some_domain.com-error_log<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<table width=\"550\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td colspan=\"3\" height=\"20\">#### imyxxx.com ####################################<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">ServerAdmin<\/td>\n<td width=\"434\" height=\"20\">webmaster@xxxventure.com<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">ServerName<\/td>\n<td width=\"434\" height=\"20\">www.imyxxx.com<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">DocumentRoot<\/td>\n<td width=\"434\" height=\"20\">\/home\/hosting\/imyxxx\/wwwhome<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">ScriptAlias<\/td>\n<td width=\"434\" height=\"20\">\/cgi-bin \/home\/hosting\/imyxxx\/wwwhome\/cgi-bin<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\">CustomLog<\/td>\n<td width=\"434\" height=\"20\">logs\/imyxxx.com-access_log common<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\" height=\"20\"># ErrorLog<\/td>\n<td width=\"434\" height=\"20\">logs\/host.some_domain.com-error_log<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\uc774\ub7f0 \uc2dd\uc73c\ub85c \uc124\uc815\uc744 \ud55c \ud6c4\uc5d0 httpd.conf \ud30c\uc77c\uc744 \uc800\uc7a5\ud558\uace0 \uc544\ud30c\uce58\ub97c \uc7ac\uc2e4\ud589 \uc2dc\ud0b5\ub2c8\ub2e4.<\/p>\n<table width=\"550\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#cccccc\">\n<tbody>\n<tr>\n<td>[root@traderoad \/root]# \/usr\/local\/apache\/bin\/apachectl stop<br \/>\n\/usr\/local\/apache\/bin\/apachectl stop: httpd stopped<br \/>\n[root@traderoad \/root]# \/usr\/local\/apache\/bin\/apachectl start<br \/>\n\/usr\/local\/apache\/bin\/apachectl start: httpd started<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p>\ubb3c\ub860 dns \uc138\ud305\ub3c4 \uc81c\ub300\ub85c \ub418\uc5b4\uc5b4\uc57c \uaca0\uc9c0\uc694.?\uc774\uc0c1\uc5d0\uc11c \uc608\uc81c\ub97c \ud1b5\ud574 \uc124\uc815\ubc29\ubc95\uc744 \uc54c\uc544\ubcf4\uc558\uc2b5\ub2c8\ub2e4.<br \/>\nName Base virtual host \uc5d0\uc11c\ub294 \uc0c1\uc704\uc758 \ub124\uc784\uc11c\ubc84\uc5d0 \ub3c4\uba54\uc778\uc774 \ub4f1\ub85d\ub418\uc5b4\uc57c \uc0ac\uc6a9\ud560 \uc218 \uc788\uace0,<br \/>\nIP Base virtual host \uc5d0\uc11c\ub294 \ud558\ub098\uc758 \ub79c\uce74\ub4dc\uc5d0 \ub450 \uac1c \uc774\uc0c1\uc758 ip \uc8fc\uc18c\ub97c \ubd80\uc5ec\ud558\uae30 \uc704\ud574 ip alias\ub97c<br \/>\n\uc0ac\uc6a9\ud558\uc57c \ud558\uba70, Port base virtual host\uc5d0\uc11c\ub294 \ud3ec\ud2b8\ubc88\ud638\ub97c \uc54c\uc544\uc57c \uc811\uadfc\uc774 \uac00\ub2a5\ud569\ub2c8\ub2e4.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ud38c \ud83d\ude15http:\/\/cheolgoon.tistory.com\/83 \ud558\ub098\uc758 \uc6f9\uc11c\ubc84\uc5d0\uc11c 2\uac1c \uc774\uc0c1\uc758 \uc5ec\ub7ec \uac1c\uc758 \uc6f9\uc11c\ubc84\ub97c \uc6b4\uc601\ud558\ub294 \uac83\uc744 virtual host\ub77c\uace0 \ud569\ub2c8\ub2e4. virtual host\ub294 \ubcf5\uc218\uc758 \ud648\ud398\uc774\uc9c0\ub97c \ud558\ub098\uc758 \uc11c\ubc84\uc5d0\uc11c \uc6b4\uc601\ud558\ubbc0\ub85c \uc11c\ubc84\uc758 \ube44\uc6a9\uc808\uac10\uc5d0 \ud070 \ud6a8\uacfc\uac00 \uc788\uc2b5\ub2c8\ub2e4. \ub300\ubd80\ubd84\uc758 \ud638\uc2a4\ud305\uc5c5\uccb4\uc5d0\uc11c \uc0ac\uc6a9\ud558\ub294 \uac01\uae30&hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=\/wp\/v2\/posts\/39"}],"collection":[{"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=39"}],"version-history":[{"count":0,"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=\/wp\/v2\/posts\/39\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=39"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=39"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=39"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}