{"id":1268,"date":"2009-03-27T19:36:41","date_gmt":"2009-03-27T10:36:41","guid":{"rendered":""},"modified":"2017-10-27T17:53:07","modified_gmt":"2017-10-27T08:53:07","slug":"web-%ea%b0%99%ec%9d%80-%eb%94%94%eb%a0%89%ed%86%a0%eb%a6%ac%ec%97%90%ec%84%9c-%ec%84%9c%eb%a1%9c-%eb%8b%a4%eb%a5%b8-%eb%8f%84%eb%a9%94%ec%9d%b8-%eb%9d%84%ec%9a%b0%ea%b8%b0-apache%ec%84%a4%ec%a0%95-vir","status":"publish","type":"post","link":"https:\/\/heyo.net\/wp\/1268","title":{"rendered":"[web] \uac19\uc740 \ub514\ub809\ud1a0\ub9ac\uc5d0\uc11c \uc11c\ub85c \ub2e4\ub978 \ub3c4\uba54\uc778 \ub744\uc6b0\uae30 (apache\uc124\uc815 VirtualHost, DirectoryIndex \uc0ac\uc6a9)"},"content":{"rendered":"<p>\ud760.. \uc81c\ubaa9\ub9cc \ubcf4\uba74 \uc798 \uac10\uc774 \uc548\uc62c \uc218 \uc788\ub294\ub370&#8230;<br \/>\n\ud648\ud398\uc774\uc9c0\ub97c \ub9cc\ub4e4\ub2e4\ubcf4\uba74&#8230;<br \/>\n\uac8c\uc2dc\ud310 \ud558\ub098\ub9cc \ubcc4\ub3c4\uc758 \ub3c4\uba54\uc778\uc73c\ub85c \ub2e4\ub8e8\uace0 \uc2f6\uc744\ub54c\uac00 \uc788\ub2e4.<br \/>\n\ubcf4\ud1b5 \uac8c\uc2dc\ud310\ub9c8\ub2e4 \ubcc4\ub3c4\uc758 \uc8fc\uc18c(URL)\uac00 \uc788\uae34 \ud55c\ub370.. \uc8fc\uc18c\uce58\uc790\ub2c8 \uadc0\ucc2e\uace0.. \ub3c4\uba54\uc778\uc744 \uc544\uc5d0 \ub530\ub85c\u00a0\ud558\ub098 \uc950\uc5b4\uc8fc\uace0 \uc2f6\uc740\ub370.. \uadc0\ucc2e\uc544\uc11c \uae30\uc874 \ub3c4\uba54\uc778\uc774\ub791 \uac19\uc740 \ub514\ub809\ud1a0\ub9ac\ub97c \uc4f0\ub824\uace0 \ud560\ub54c..<br \/>\n\ubb50 \ubc29\ubc95\uc774\uc57c \uc5ec\ub7ec\uac00\uc9c0\uac00 \uc788\uaca0\uc9c0\ub9cc..<br \/>\n\uc778\ud130\ub137\uc5d0\uc11c \ucc3e\uc544\ubcf4\uba74.. \ubcf4\ud1b5 index.php\ub97c \ub9cc\ub4e4\uc5b4\uc11c.. $_SERVER[&#8220;HTTP_HOST&#8221;] \uac12\uc744 \ube44\uad50\ud574\uc11c \ud574\ub2f9 URL\ub85c \ub9c1\ud06c \ub744\uc6cc\uc8fc\ub294 \ubc29\uc2dd\uc744 \ucd94\ucc9c\ud55c\ub2e4..<br \/>\n\ub09c index.php\uc5d0\uc11c\ub3c4 \ub610 \ubcc4\ub3c4\ub85c \ud558\ub294\uac8c \uc788\uc5b4\uc11c..(ddns\uc0ac\uc6a9\uc911\uc778 adsl\uc774 \uc0b4\uc558\uc73c\uba74 \ubc14\ub85c \uadf8\ucabd \uc720\ub3d9ip\ub85c \uc5f0\uacb0\ud558\ub294 \uc791\uc5c5\uc744 index.php\uc5d0\uc11c \ud55c\ub2e4.)<br \/>\n\uadf8\ub0e5 apache httpd.conf\uc5d0 \uc124\uc815\ud574\ubc84\ub838\ub2e4.<\/p>\n<p>httpd.conf \uc5d0 virtualhost \uc124\uc815\ud558\ub294 \ubd80\ubd84\uc774 \uc788\ub294\ub370..<br \/>\n\uadf8\uc911\uc5d0 DirectoryIndex \ud56d\ubaa9\uc744 \ucd94\uac00\ud574\uc900\ub2e4.<\/p>\n<pre class=\"lang:default decode:true\">&lt;VirtualHost *:80&gt;      # &lt;--  \uc6d0\ub798\uc788\ub358 \ub0b4\uc6a9\r\n    ServerAdmin admin@server.com\r\n    DocumentRoot \/home\/myhome\/public_html\r\n    ServerName server.com\r\n    ServerAlias www.server.com\r\n    ErrorLog logs\/www.server.com-error_log\r\n    CustomLog logs\/www.server.com-access_log common\r\n&lt;\/VirtualHost&gt;\r\n\r\n&lt;VirtualHost *:80&gt;   # &lt;-- \ubcf5\uc0ac\ud574\uc11c \ud558\ub098 \ub354 \ub9cc\ub4e0\ub2e4.\r\n    ServerAdmin admin@server.com\r\n    DocumentRoot \/home\/myhome\/public_html\r\n    ServerName test.server.com    # &lt;-- \ub3c4\uba54\uc778 \uc124\uc815\ud574\uc8fc\uace0\r\n    DirectoryIndex test_index.php   # &lt;-- \ucd94\uac00\ud55c\ub2e4.\r\n    ErrorLog logs\/test.server.com-error_log\r\n    CustomLog logs\/test.server.com-access_log common\r\n&lt;\/VirtualHost&gt;<\/pre>\n<p>\uc774\ub807\uac8c \ud558\uba74.. \ud574\ub2f9\u00a0\ub3c4\uba54\uc778(test.server.com)\uc73c\ub85c \uc811\uc18d\ud558\uba74 index.php\uac00 \uc544\ub2cc test_index.php\ub97c \ucc3e\uac8c \ub418\ubbc0\ub85c..<br \/>\n\ud574\ub2f9 test_index.php\uc5d0\ub2e4\uac00 \uc6d0\ud558\ub294 \uac8c\uc2dc\ud310 \uc8fc\uc18c\ub85c \uac00\uac8c \ud574\ub193\uc73c\uba74 \ub41c\ub2e4..<\/p>\n<p>\uadfc\ub370.. zb4\ub97c \uc4f8\ub54c\ub294 \uc798 \ub410\ub294\ub370&#8230;<br \/>\n\uc5bc\ub9c8\uc804\uc5d0 xe\ub85c \ubc14\uafe8\ub354\ub2c8.. \uc774\uc0c1\ud558\uac8c \uc798 \uc548\ub418\ub294 \uac83\uc774\ub2e4..<br \/>\n\uba54\uc778 \ub3c4\uba54\uc778\uc73c\ub85c\ub294 \uc798 \ub410\ub294\ub370&#8230; test\ub3c4\uba54\uc778\uc73c\ub85c \ub4e4\uc5b4\uac00\uba74 \ud574\ub2f9 \uac8c\uc2dc\ud310\uc740 \uc798 \ub728\ub098, \ub85c\uadf8\uc778\uc774\ub77c\ub358\uac00.. \ud558\uc5ec\ud2bc.. \ubb54\uac00 \uc561\uc158\uc744 \ucde8\ud558\ub824\uba74 \uc798 \uc548\ub41c\ub2e4..<\/p>\n<p>\uc65c\uadf8\ub7f4\uae4c.. \uc5d0\ub7ec\ub294 403\uc778\ub370.. \uc6d0 \ub3c4\uba54\uc778\uc774\ub791 \uac19\uc740 \ub514\ub809\ud1a0\ub9ac\ub97c \uc0ac\uc6a9\ud558\ub2c8..\u00a0\uad8c\ud55c(&lt;Directory &#8230;&gt; \ubd80\ubd84)\uc740\u00a0\uc544\ub2cc\uac83 \uac19\uace0.. \ub3c4\uba54\uc778 \ubd80\ubd84\uc778\ub370.. \uadf8\ub7fc\u00a0VirtualHost \ubd80\ubd84\uc778\ub370..<br \/>\n\uc5ec\uae34 \ubb50 \uad8c\ud55c\uc774\ub098 \uc635\uc158 \uc124\uc815\ud558\ub294\uac83\ub3c4 \uc5c6\uace0.. \uc774\uc0c1\ud558\ub2e4..<br \/>\n\ud558\uace0 \ud55c\ucc38\uc744 \uace0\ubbfc\ud588\ub294\ub370..<br \/>\n\uc6d0\ub798 VirtualHost \ubd80\ubd84\uc744 \ubcf5\uc0ac\ud574\uc11c \ud574\ubcf4\uae30\ub3c4 \ud558\uace0.. \ud588\ub294\ub370.. \uacb0\uad6d \uc54c\uc544\ub0c8\ub2e4..<br \/>\n\ud3b8\ud558\uac8c \uc4f0\uace0\uc790 \ud588\ub358..\u00a0DirectoryIndex \ubd80\ubd84.. -_-;;;<br \/>\nhttpd.conf \uc5d0 \uc6d0\ub798 DirectoryIndex\ubd80\ubd84\uc774 \uc788\uace0..<br \/>\n\ub09c VirtualHost\uc5d0 \ub610 \uc124\uc815\ud558\uba74..\u00a0\uae30\uc874\uac83 \uc0c1\uc18d\ub3c4 \ud558\uace0\u00a0\uc800\uae30\uc5d0 \uc124\uc815\ud574\ub193\uc740\uac8c \ub354 \uc6b0\uc120\uc21c\uc704\uac00 \uba39\ub294\uc904 \uc54c\uc558\ub294\ub370..<br \/>\n\uadf8\uac8c \uc544\ub2cc\uac00\ubcf4\ub2e4.. \uae30\uc874\uac8c \uadf8\ub0e5 \ubb34\uc2dc\ub418\uace0.. VirtualHost\uc5d0 \uc801\uc5b4\ub193\uc740\uac83\ub9cc \uc778\uc2dd\ud558\ub294\ub4ef..<br \/>\n\uadf8\ub798\uc11c xe\/ \ubc11\uc5d0 index.php\ub97c \ubd88\ub7ec\uc624\uc9c8 \ubabb\ud558\uace0, test_index.php\ub97c \ucc3e\uc73c\ub824\ud558\ub2c8 \uc5c6\uc5b4\uc11c \uc624\ub958\uac00 \ub098\ub294 \ub4ef<\/p>\n<p>\ud574\uc11c.. \uc6d0\ub798 \uc788\ub358\u00a0\uac12\ub4e4\uc744 \ucd94\uac00\ud574\uc92c\ub2e4.<\/p>\n<p>&nbsp;<\/p>\n<pre class=\"lang:default decode:true\">&lt;VirtualHost *:80&gt;   # &lt;-- \ubcf5\uc0ac\ud574\uc11c \ud558\ub098 \ub354 \ub9cc\ub4e0\ub2e4.\r\n    ServerAdmin admin@server.com\r\n    DocumentRoot \/home\/myhome\/public_html\r\n    ServerName test.server.com    # &lt;-- \ub3c4\uba54\uc778 \uc124\uc815\ud574\uc8fc\uace0\r\n    DirectoryIndex temp_index.html index.php index.html   # &lt;-- \ub610 \ucd94\uac00\ud55c\ub2e4.\r\n    ErrorLog logs\/test.server.com-error_log\r\n    CustomLog logs\/test.server.com-access_log common\r\n&lt;\/VirtualHost&gt;<\/pre>\n<p>\uc774\ub807\uac8c \ud588\ub354\ub2c8 \uc798 \ub3cc\uc544\uac04\ub2e4.. -_-;;<\/p>\n<p>\uae30\uc874\uc758 zb4\uc5d0\uc11c\ub294 \uac70\uc758 \ubaa8\ub4e0 \ub9c1\ud06c\ub4e4\uc774 \uc628\uc804\ud55c \ub9c1\ud06c\uc778\ub370.. xe\uc5d0\uc11c\ub294 rewrite_mode\ub97c \ud65c\uc6a9\ud558\uae30\ub3c4 \ud558\uace0 \ud574\uc11c.. \ub514\ub809\ud1a0\ub9ac \ub4a4\uc5d0 \/?mid= \uc774\ub7f0\uc2dd\uc73c\ub85c\ub3c4 \ub9ce\uc774 \uc4f4\ub2e4..<br \/>\n\uadf8\ub7ec\ub2c8 index.php\ub97c \ubabb\ucc3e\uc544\uc11c \uc5d0\ub7ec\uac00 \ub0ac\ub358 \uac8c\uc9c0.. -_-;;<br \/>\n\ud760&#8230; \ud558\uc5ec\ud2bc.. \ub09c \uace0\uc0dd\ud588\ub358\uac70\ub77c.. \ud3ec\uc2a4\ud305 \ud55c\ub2e4..<br \/>\n(\uadfc\ub370.. \ub098\ucc98\ub7fc VirtualHost\uc5d0 DirectoryIndex \uc124\uc815\ud574\uc11c \uc4f0\ub294 \uc0ac\ub78c \ubcc4\ub85c \uc5c6\uc744 \ub4ef..)<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_1268\" class=\"pvc_stats all  \" data-element-id=\"1268\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/heyo.net\/wp\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\ud760.. \uc81c\ubaa9\ub9cc \ubcf4\uba74 \uc798 \uac10\uc774 \uc548\uc62c \uc218 \uc788\ub294\ub370&#8230; \ud648\ud398\uc774\uc9c0\ub97c \ub9cc\ub4e4\ub2e4\ubcf4\uba74&#8230;&#8230;<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_1268\" class=\"pvc_stats all  \" data-element-id=\"1268\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/heyo.net\/wp\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kadence_starter_templates_imported_post":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[3],"tags":[],"class_list":["post-1268","post","type-post","status-publish","format-standard","hentry","category-prog_tip"],"_links":{"self":[{"href":"https:\/\/heyo.net\/wp\/wp-json\/wp\/v2\/posts\/1268","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/heyo.net\/wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/heyo.net\/wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/heyo.net\/wp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/heyo.net\/wp\/wp-json\/wp\/v2\/comments?post=1268"}],"version-history":[{"count":9,"href":"https:\/\/heyo.net\/wp\/wp-json\/wp\/v2\/posts\/1268\/revisions"}],"predecessor-version":[{"id":66338,"href":"https:\/\/heyo.net\/wp\/wp-json\/wp\/v2\/posts\/1268\/revisions\/66338"}],"wp:attachment":[{"href":"https:\/\/heyo.net\/wp\/wp-json\/wp\/v2\/media?parent=1268"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/heyo.net\/wp\/wp-json\/wp\/v2\/categories?post=1268"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/heyo.net\/wp\/wp-json\/wp\/v2\/tags?post=1268"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}