{"id":136,"date":"2019-07-11T19:17:47","date_gmt":"2019-07-11T10:17:47","guid":{"rendered":"http:\/\/www.space4u.co.kr\/wp\/?p=136"},"modified":"2019-07-11T19:38:15","modified_gmt":"2019-07-11T10:38:15","slug":"%ec%9b%b9%ed%98%b8%ec%8a%a4%ed%8c%85-%ea%b3%84%ec%a0%95%eb%93%b1%eb%a1%9d-%ec%a0%88%ec%b0%a8-%ec%8a%a4%ed%81%ac%eb%a6%bd%ed%8a%b8","status":"publish","type":"post","link":"http:\/\/www.space4u.co.kr\/wp\/?p=136","title":{"rendered":"[\ud638\uc2a4\ud305 \uad6c\ucd95] \uacc4\uc815\ub4f1\ub85d \uc808\ucc28 \uc2a4\ud06c\ub9bd\ud2b8"},"content":{"rendered":"\n<p>\uc6f9\ud638\uc2a4\ud305 \uacc4\uc815\ub4f1\ub85d \uc808\ucc28<\/p>\n\n\n\n<ul><li>\ud604\uc7ac \uc784\uc2dc\ub85c \uad6c\ud604\ub41c \uacc4\uc815\ub4f1\ub85d \uc2a4\ud06c\ub9bd\ud2b8\ub97c \uc774\uc6a9\ud560 \ub54c\uc758 \uc808\ucc28\uc774\uba70, \ucd94\ud6c4 \uacc4\uc815\uc0dd\uc131 \uae30\ub2a5\ub3c4 \uc2a4\ud06c\ub9bd\ud2b8\uc5d0 \ud1b5\ud569\uc2dc\ucf1c\uc11c \uc880\ub354 \ub2e8\uc21c\ud654 \ud560 \uc608\uc815\uc774\ub2e4. <\/li><li>\ubcf8 \uc808\ucc28\ub294 \uc544\ub798 \uc11c\ubc84\ud638\uc2a4\ud305 \uc124\uc815\ub0b4\uc6a9\uc744 \uae30\ucd08\ub85c \ud55c \ub0b4\uc6a9\uc774\ubbc0\ub85c \uc11c\ubc84\uc758 \ub124\uc784\uc11c\ubc84\ub098 \uc6f9\uc11c\ubc84\uc758 \uc124\uc815\uc774 \ub2e4\ub978 \uacbd\uc6b0 \uc81c\ub300\ub85c \ub3d9\uc791\ud558\uc9c0 \uc54a\uc744 \uc218 \uc788\ub2e4.<\/li><\/ul>\n\n\n\n<p>1. \uc6f9\ud638\uc2a4\ud305 \uacc4\uc815\uc0dd\uc131<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@localhost ~]# useradd -g users guest1 \/\/--&gt; guest1 \uacc4\uc815 \uc0dd\uc131<br>[root@localhost home]# chmod 701 \/home\/guest1\/ \/\/--&gt; \uacc4\uc815 www \ub514\ub809\ud1a0\ub9ac\uc758 \uc6f9\uc811\uadfc \ud5c8\uc6a9\uc744 \uc704\ud55c \uc791\uc5c5<\/pre>\n\n\n\n<p>2. \uc6f9\ud638\uc2a4\ud305 \uacc4\uc815\ub4f1\ub85d \uc2a4\ud06c\ub9bd\ud2b8 \uc2e4\ud589<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@suware admin]# .\/vhost.sh\necho -n \"User Name : \"\nread username\n\necho -n \"Web address : \"\nread webaddr\n\necho \"Username : $username\"\necho \"Web address : $webaddr\"\n\nvhost_dir=\"\/usr\/local\/apache2\/conf\/extra\/httpd-vhosts.conf\"\nname_dir=\"\/etc\/named.external.zones\"\n\n# \uc544\ud30c\uce58 .conf \ud30c\uc77c\uc5d0 \uac00\uc0c1\ud638\uc2a4\ud2b8 \ubd80\ubd84\uc744 \ucd94\uac00\ud568\necho \"\" &gt;&gt; $vhost_dir\necho \"\" &gt;&gt; $vhost_dir\necho \" &nbsp;&nbsp; ServerAdmin&nbsp;<a href=\"mailto:admin@mymail.com\">admin@mymail.com<\/a>\" &gt;&gt; $vhost_dir\necho \" &nbsp;&nbsp; DocumentRoot \\\"\/home\/$username\/www\\\"\" &gt;&gt; $vhost_dir\necho \" &nbsp;&nbsp; ServerName $webaddr\" &gt;&gt; $vhost_dir\necho \" &nbsp;&nbsp; ServerAlias *.$webaddr\" &gt;&gt; $vhost_dir\necho \" &nbsp;&nbsp; \" &gt;&gt; $vhost_dir\necho \" &nbsp; &nbsp; Options IncludesNoExec\" &gt;&gt; $vhost_dir\necho \" &nbsp;&nbsp; \" &gt;&gt; $vhost_dir\necho \"\" &gt;&gt; $vhost_dir\n\n# \ub124\uc784\uc11c\ubc84 zone \ud30c\uc77c\uc5d0 \ub3c4\uba54\uc778 \ucd94\uac00\ud568\necho \"zone \\\"$webaddr\\\" IN { &nbsp; &nbsp; type master; file \\\"general.zone\\\"; allow-update { none; }; };\" &gt;&gt; $name_dir\n\necho \"1)APACHE restarting...\"\nservice httpd restart\n\necho \"2)Name Server restarting...\"\n\/etc\/init.d\/named restart<\/pre>\n\n\n\n<p><br>\ucd9c\ucc98 :&nbsp;<a href=\"http:\/\/sharpwork.pe.kr\/bbs\/board.php?folder=&amp;bo_table=linux&amp;page=1&amp;bbs_id=3023\">http:\/\/sharpwork.pe.kr\/bbs\/board.php?folder=&amp;bo_table=linux&amp;page=1&amp;bbs_id=3023<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uc6f9\ud638\uc2a4\ud305 \uacc4\uc815\ub4f1\ub85d \uc808\ucc28 \ud604\uc7ac \uc784\uc2dc\ub85c \uad6c\ud604\ub41c \uacc4\uc815\ub4f1\ub85d \uc2a4\ud06c\ub9bd\ud2b8\ub97c \uc774\uc6a9\ud560 \ub54c\uc758 \uc808\ucc28\uc774\uba70, \ucd94\ud6c4 \uacc4\uc815\uc0dd\uc131 \uae30\ub2a5\ub3c4 \uc2a4\ud06c\ub9bd\ud2b8\uc5d0 \ud1b5\ud569\uc2dc\ucf1c\uc11c \uc880\ub354 \ub2e8\uc21c\ud654 \ud560 \uc608\uc815\uc774\ub2e4. \ubcf8 \uc808\ucc28\ub294 \uc544\ub798 \uc11c\ubc84\ud638\uc2a4\ud305 \uc124\uc815\ub0b4\uc6a9\uc744&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"http:\/\/www.space4u.co.kr\/wp\/?p=136\">\ub354 \uc77d\uae30<span class=\"screen-reader-text\">[\ud638\uc2a4\ud305 \uad6c\ucd95] \uacc4\uc815\ub4f1\ub85d \uc808\ucc28 \uc2a4\ud06c\ub9bd\ud2b8<\/span> <i class=\"fas fa-angle-right\"><\/i><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[109,58,112],"aioseo_notices":[],"_links":{"self":[{"href":"http:\/\/www.space4u.co.kr\/wp\/index.php?rest_route=\/wp\/v2\/posts\/136"}],"collection":[{"href":"http:\/\/www.space4u.co.kr\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.space4u.co.kr\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.space4u.co.kr\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.space4u.co.kr\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=136"}],"version-history":[{"count":3,"href":"http:\/\/www.space4u.co.kr\/wp\/index.php?rest_route=\/wp\/v2\/posts\/136\/revisions"}],"predecessor-version":[{"id":249,"href":"http:\/\/www.space4u.co.kr\/wp\/index.php?rest_route=\/wp\/v2\/posts\/136\/revisions\/249"}],"wp:attachment":[{"href":"http:\/\/www.space4u.co.kr\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=136"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.space4u.co.kr\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=136"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.space4u.co.kr\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=136"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}