{"id":831,"date":"2012-05-07T02:35:24","date_gmt":"2012-05-07T02:35:24","guid":{"rendered":"http:\/\/brain.dailyon.net\/?p=831"},"modified":"2012-05-07T02:35:24","modified_gmt":"2012-05-07T02:35:24","slug":"hosting-%ec%9d%b4%eb%af%b8%ec%a7%80-%eb%ac%b4%eb%8b%a8%eb%a7%81%ed%81%ac-%eb%b0%a9%ec%a7%80","status":"publish","type":"post","link":"https:\/\/blog.goorigo.com\/?p=831","title":{"rendered":"Hosting &#8211; \uc774\ubbf8\uc9c0 \ubb34\ub2e8\ub9c1\ud06c \ubc29\uc9c0"},"content":{"rendered":"<div>\n<div>\uc5bc\ub9c8\uc804\uc5d0 \ub0b4\uac00 \uad00\ub9ac\ud558\ub294 \ud648\ud398\uc774\uc9c0(\uc774\ud6c4\ub85c A\ud648\ud53c) \ud558\ub098\uac00 \ud2b8\ub798\ud53d \ucd08\uacfc\uac00 \ub418\uc5b4\uc11c \uc811\uc18d\uc774 \uc548\ub418\ub294 \uacbd\uc6b0\uac00 \ubc1c\uc0dd\ud588\ub2e4.\ubcc4\uc2a4\ub7f0 \ud648\ud398\uc774\uc9c0\ub3c4 \uc544\ub2cc\ub370 \uadf8\ub7f0 \uc77c\uc774 \ubc1c\uc0dd\ud574\uc11c \uc774\uc720\ub97c \uc0b4\ud3b4\ubcf4\uc558\ub2e4.<\/p>\n<\/div>\n<div><strong>\ub204\uad70\uac00\uac00 \uc790\uc2e0\uc758 \ud648\ud398\uc774\uc9c0\uc5d0 A\ud648\ud53c\uc758 \uc774\ubbf8\uc9c0\ub97c \ub9c1\ud06c\ud574\uc11c \uc774\uc6a9\ud558\uace0 \uc788\uc5c8\uace0, \uadf8 \ud398\uc774\uc9c0\uac00 \ud3ec\ud0c8 \uac80\uc0c9\uc5d0 \uac78\ub9ac\uac8c \ub41c \uac83\uc774\ub2e4.<br \/>\n<\/strong><\/div>\n<div>\uc774\ub807\ub4ef \uc774\ubbf8\uc9c0\ub098 \ub3d9\uc601\uc0c1 \ud30c\uc77c\uc744 \ub2e4\ub978 \ud648\ud398\uc774\uc9c0\uc5d0 \uc62c\ub824\uc11c(upload) \uc774\uc6a9\ud558\uba74 \uc800\uc791\uad8c\uc744 \uc81c\uc678\ud55c \ubb38\uc81c\uac00 \uc5c6\uc9c0\ub9cc, \ud37c\uac00\uc9c0 \uc54a\uace0?<strong>\uadf8\ub300\ub85c \ub9c1\ud06c\ub97c \uac78\uba74 \uc774\ubbf8\uc9c0\uac00 \uc704\uce58\ud55c \ud648\ud398\uc774\uc9c0\ub294 \ud544\uc694\uc5c6\ub294 \ud2b8\ub798\ud53d\uc774 \ubc1c\uc0dd<\/strong>\ud574\uc11c \ud53c\ud574\ub97c \ubcfc \uc218 \uc788\ub2e4.\uc774\uac83\uc740 Apapche \uc6f9\uc11c\ubc84\uc758 rewrite rule \uc744 \uc774\uc6a9\ud574\uc11c \ub9c9\uc744 \uc218\uac00 \uc788\ub2e4.<br \/>\n\ud558\uc9c0\ub9cc, \uc6f9\ud638\uc2a4\ud305\uc744 \uc774\uc6a9\ud558\ub294 \uacbd\uc6b0\uc5d0\ub294 Apache \uc6f9\uc11c\ubc84 \uc124\uc815\uc5d0 \uc811\uadfc\ud560 \uc218 \uc5c6\uc73c\ubbc0\ub85c,?<strong>\uc77c\ubc18\uc801\uc73c\ub85c \uc6f9\ud638\uc2a4\ud305\uc0ac\uc5d0\uc11c \uc81c\uacf5\ud558\ub294 .htaccess \ud30c\uc77c\uc744 \uc774\uc6a9\ud574\uc11c \ub9c9\ub294 \uac83\uc744 \uc124\uba85\ud558\uaca0\ub2e4<\/strong>.<\/p>\n<div><strong>1. .htaccess \ud30c\uc77c\uc5d0 \uc544\ub798\uc758 \ub0b4\uc6a9\uc744 \uc785\ub825\ud55c\ub2e4.<\/strong><br \/>\n?? (\uc608\uc81c \ud648\ud398\uc774\uc9c0 \uc8fc\uc18c : abc.com)<br \/>\n============= \uc544\ub798 ============<br \/>\nphp_flag register_globals on<\/p>\n<div>SetEnvIf Referer &#8220;abc.com&#8221; link_allow<br \/>\nSetEnvIf Referer &#8220;www.abc.com&#8221; link_allow<\/div>\n<div>Order Deny,Allow<br \/>\nDeny from all<br \/>\nAllow from env=link_allow<\/div>\n<div>SetEnvIf Referer abc.com go_in<br \/>\nSetEnvIf Referer www.abc.com go_in<br \/>\nSetEnvIf Referer ^$ go_in<\/div>\n<div>Order Deny,Allow<br \/>\nAllow from env=go_in<br \/>\nDeny from all<br \/>\n============ \uc544\ub798 \ub05d ===========<br \/>\n\uac04\ub2e8\ud788 \uc124\uba85\ud558\uba74 \ud30c\uc77c\uc744 \ubd80\ub974\ub294 \ud398\uc774\uc9c0\uac00 abc.com \uc774\ub098 www.abc.com\uc774 \uc544\ub2c8\uba74 \uc811\uadfc\uc744 \ub9c9\ub294\ub2e4\ub294 \uac83\uc774\ub2e4.\ubc18\ub4dc\uc2dc abc.com \uacfc www.abc.com \ubd80\ubd84\uc744 \uc790\uc2e0\uc758 \ud648\ud398\uc774\uc9c0 \uc8fc\uc18c\ub85c \ubcc0\uacbd\ud574\uc57c \ud55c\ub2e4.<\/p>\n<p><strong>2. \uc678\ubd80 \uc811\uadfc\uc744 \ucc28\ub2e8\ud55c \uc774\ubbf8\uc9c0\ub098 \ud30c\uc77c\uc774 \uc704\uce58\ud55c \ub514\ub809\ud130\ub9ac\uc5d0 .htaccess \ud30c\uc77c\uc744 \uc800\uc7a5\ud55c\ub2e4.<\/strong><\/p>\n<\/div>\n<div>.htaccess \ud30c\uc77c\uc740 \uc790\uc2e0\uc758 \uc704\uce58\ud55c \ub514\ub809\ud130\ub9ac \ubc0f \uadf8 \ud558\uc704 \ub514\ub809\ud130\ub9ac\uc5d0 \ubaa8\ub450 \uc601\ud5a5\uc744 \ubbf8\uce5c\ub2e4.\ub9cc\uc57d, \ud648\ud398\uc774\uc9c0 \ud30c\uc77c\uc774 \uc704\uce58\ud55c \ucd5c\uc0c1\uc704 \ub514\ub809\ud130\ub9ac\uc5d0 \uc774\ud30c\uc77c\uc744 \ub9cc\ub4e4\uba74 \ud558\uc704\uc758 \ubaa8\ub4e0 \ud30c\uc77c\uc5d0 \uc801\uc6a9\uc774 \ub418\ubbc0\ub85c \uc8fc\uc758\ud574\uc57c \ud55c\ub2e4.<\/p>\n<\/div>\n<\/div>\n<p>\uc774 .htaccess \ud30c\uc77c\uc740 \uc774\ub7ec\ud55c \ucc28\ub2e8 \uae30\ub2a5 \ub9cc \uc788\ub294 \uac83\uc774 \uc544\ub2c8\ub2e4.<br \/>\n\uc774 \ud30c\uc77c\uc740 Apache \uc6f9\uc11c\ubc84\uc758 \uc77c\ubd80 \uc124\uc815\uc744 \ub514\ub809\ud130\ub9ac \ub2e8\uc704\ub85c \ud560 \uc218 \uc788\uac8c \ud574\uc8fc\ub294 \uc5ed\ud560\uc744 \ud55c\ub2e4.<\/p>\n<p>\uc6f9\ud638\uc2a4\ud305 \uc11c\ube44\uc2a4\ub97c \ubc1b\uac8c \ub418\uba74?<strong>404\uc5d0\ub7ec<\/strong>(\uc5c6\ub294 \ud398\uc774\uc9c0\uc5d0 \ub300\ud55c \uc5d0\ub7ec)\ud398\uc774\uc9c0\ub97c \uc6f9\ud638\uc2a4\ud305 \ud68c\uc0ac\uc758 \ud398\uc774\uc9c0\ub85c \uae30\ubcf8 \uc81c\uacf5\ud55c\ub2e4.<br \/>\n\ucc38\uc73c\ub85c \ubcf4\uae30\uac00 \uc88b\uc9c0 \uc54a\ub2e4. \ucc28\ub77c\ub9ac \uc6f9\ube0c\ub77c\uc6b0\uc800\uc758 \uae30\ubcf8 \uc5d0\ub7ec \ud398\uc774\uc9c0\uac00 \ub354 \uc88b\uc9c0&#8230;<\/p>\n<p>\uc544\ubb34\ud2bc \uc5b4\uca54 \uc218 \uc5c6\uc774 \uc774\uc6a9\ud574\ud558\ub294 \uc6f9\ud638\uc2a4\ud305\uc774\ub2c8 \uc5b4\uca54 \uc218 \uc5c6\ub2e4.<\/p>\n<p>\uadf8\ub7fc,?<strong>.htaccess \ud30c\uc77c\uc744 \uc774\uc6a9\ud574\uc11c 404 \uc5d0\ub7ec \ud398\uc774\uc9c0\ub97c \ubcc0\uacbd\ud574 \ubcf4\uc790.<\/strong><br \/>\n\uc544\ub798\ub294 \uc5c6\ub294 \ud398\uc774\uc9c0\ub97c \ubd80\ub978 \uacbd\uc6b0 \uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 alert\ucc3d\uc744 \ub744\uc6b0\uace0 \ud655\uc778\uc744 \ub204\ub974\uba74 \uba54\uc778\ud398\uc774\uc9c0\ub85c \uc774\ub3d9\ud558\uac8c \ud558\ub294 html \uc18c\uc2a4\ub2e4.<\/p>\n<div><img loading=\"lazy\" src=\"http:\/\/cfile10.uf.tistory.com\/image\/160BEF144BE2D37493D78E\" alt=\"404 \uc5d0\ub7ec\ud398\uc774\uc9c0\" width=\"530\" height=\"365\" \/><\/div>\n<p>404 \uc5d0\ub7ec\ud398\uc774\uc9c0 \ubcc0\uacbd\uc740 \uc124\uc815\uc744 \uc704\ud55c .htaccess \ud30c\uc77c\uacfc \uc5d0\ub7ec\ub97c \ud45c\uc2dc\ud560 html \ud30c\uc77c\uc774 \ud544\uc694\ud558\ub2e4.<\/p>\n<div><strong>1. .htaccess \ud30c\uc77c\uc5d0 \uc544\ub798\uc758 \ub0b4\uc6a9\uc744 \uc785\ub825\ud55c\ub2e4.<\/strong><br \/>\n(\uc608\uc81c \ud648\ud398\uc774\uc9c0 \uc8fc\uc18c : abc.com)<br \/>\n============== \uc544\ub798 ===============<br \/>\nErrorDocument 404?<strong>http:\/\/www.abc.com\/404.html<\/strong><br \/>\n============= \uc544\ub798 \ub05d ==============<\/p>\n<div>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><strong>2. \ud648\ud398\uc774\uc9c0 \ud30c\uc77c\uc774 \uc704\uce58\ud55c \ucd5c\uc0c1\uc704 \ub514\ub809\ud130\ub9ac\uc5d0 .htaccess \ud30c\uc77c\uc744 \uc800\uc7a5\ud55c\ub2e4.<br \/>\n<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><strong>3. 404.html \ud30c\uc77c\uc744 \uc544\ub798\uc640 \uac19\uc774 \ub9cc\ub4e0\ub2e4.<\/strong><\/p>\n<p>============== \uc544\ub798 ===============<\/p>\n<p>&lt;html&gt;<br \/>\n&lt;head&gt;<br \/>\n&lt;title&gt;P2P \ub274\uc2a4&lt;\/title&gt;<br \/>\n&lt;script language=&#8221;javascript&#8221;&gt;<br \/>\n&lt;!&#8211;<br \/>\nalert(&#8220;\uc874\uc7ac\ud558\uc9c0 \uc54a\ub294 \ud398\uc774\uc9c0\uc785\ub2c8\ub2e4&#8221;);<br \/>\nlocation.href=&#8221;\/&#8221;;<br \/>\n&#8211;&gt;<br \/>\n&lt;\/script&gt;<br \/>\n&lt;\/head&gt;<br \/>\n&lt;\/html&gt;<br \/>\n============= \uc544\ub798 \ub05d =============<br \/>\n<strong>4. 404.html \ud30c\uc77c\uc744 \ud648\ud398\uc774\uc9c0 \ud30c\uc77c\uc774 \uc704\uce58\ud55c \ucd5c\uc0c1\uc704 \ub514\ub809\ud130\ub9ac\uc5d0 \uc800\uc7a5\ud55c\ub2e4.<\/strong><\/p>\n<\/div>\n<\/div>\n<p>\ucc38 \uc4f8\ubaa8\uac00 \ub9ce\uc740 .htaccess \ud30c\uc77c\uc774\ub2e4.<\/p>\n<\/div>\n<div>\n<p>&nbsp;<\/p>\n<p>\uc6f9\ud638\uc2a4\ud305\ud68c\uc0ac \ub9c8\ub2e4 .htaccess \ud30c\uc77c\uc744 \uc9c0\uc6d0\ud558\uc9c0 \uc54a\ub294 \uacf3\ub3c4 \uc788\uc73c\ubbc0\ub85c \ucc38\uace0\ud558\uc2dc\uae38~<\/p>\n<\/div>\n<\/div>\n<div><\/div>\n<div>\ucd9c\ucc98 \ud83d\ude15<a href=\"http:\/\/blog.bsmind.co.kr\/78\">http:\/\/blog.bsmind.co.kr\/78<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\uc5bc\ub9c8\uc804\uc5d0 \ub0b4\uac00 \uad00\ub9ac\ud558\ub294 \ud648\ud398\uc774\uc9c0(\uc774\ud6c4\ub85c A\ud648\ud53c) \ud558\ub098\uac00 \ud2b8\ub798\ud53d \ucd08\uacfc\uac00 \ub418\uc5b4\uc11c \uc811\uc18d\uc774 \uc548\ub418\ub294 \uacbd\uc6b0\uac00 \ubc1c\uc0dd\ud588\ub2e4.\ubcc4\uc2a4\ub7f0 \ud648\ud398\uc774\uc9c0\ub3c4 \uc544\ub2cc\ub370 \uadf8\ub7f0 \uc77c\uc774 \ubc1c\uc0dd\ud574\uc11c \uc774\uc720\ub97c \uc0b4\ud3b4\ubcf4\uc558\ub2e4. \ub204\uad70\uac00\uac00 \uc790\uc2e0\uc758 \ud648\ud398\uc774\uc9c0\uc5d0 A\ud648\ud53c\uc758 \uc774\ubbf8\uc9c0\ub97c \ub9c1\ud06c\ud574\uc11c \uc774\uc6a9\ud558\uace0 \uc788\uc5c8\uace0, \uadf8 \ud398\uc774\uc9c0\uac00&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\/831"}],"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=831"}],"version-history":[{"count":0,"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=\/wp\/v2\/posts\/831\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=831"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=831"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=831"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}