{"id":362,"date":"2021-07-01T11:38:27","date_gmt":"2021-07-01T02:38:27","guid":{"rendered":"https:\/\/centos.ihavenomoney.co.kr\/?page_id=362"},"modified":"2021-07-01T13:53:44","modified_gmt":"2021-07-01T04:53:44","slug":"virtual-site-setting","status":"publish","type":"page","link":"https:\/\/centos.ihavenomoney.co.kr\/?page_id=362","title":{"rendered":"Virtual  Site Setting"},"content":{"rendered":"<h3>1.\u00a0 virtual Site Setting<\/h3>\n<p> \/ \uad00\ub9ac\ub97c \ud3b8\ud558\uac8c \ud558\uae30 \uc704\ud574 \uc0c8 \ub514\ub809\ud1a0\ub9ac\ub97c \ub9cc\ub4e0\ub2e4.<\/p>\n<pre class=\"lang:vim decode:true\"># sudo mkdir \/etc\/httpd\/sites-available\r\n# sudo mkdir \/etc\/httpd\/sites-enabled<\/pre>\n<h3>2. \ud30c\uc77c\ub05d Load \uc6a9 \uacbd\ub85c\ub97c  \ud55c\uc904 \ucd94\uac00 \ud55c\ub2e4. <\/h3>\n<pre class=\"lang:vim decode:true\">#sudo vim \/etc\/httpd\/conf\/httpd.conf\r\n\r\n#Add this line to the end of the file:\r\nIncludeOptional sites-enabled\/*.conf<\/pre>\n<h3>3.Virtual file\u00a0Setting<\/h3>\n<pre class=\"lang:vim decode:true\"># vi \/etc\/httpd\/sites-available\/test.conf\r\n&lt;VirtualHost *:80&gt;\r\n\r\n       ServerName test.co.kr\r\n       ServerAlias www.test.co.kr\r\n\r\n        ServerAdmin root@localhost\r\n        DocumentRoot \/var\/www\/test\r\n       \r\n       ErrorLog \/var\/log\/httpd\/error.log\r\n       CustomLog \/var\/log\/httpd\/access.log combined\r\n\r\n&lt;Directory \/var\/www\/test &gt;\r\n   Options FollowSymLinks\r\n   AllowOverride None\r\n   Order Deny,Allow\r\n   Allow from all\r\n   Require all granted\r\n&lt;\/Directory&gt;\r\n\r\n&lt;\/VirtualHost&gt;\r\n<\/pre>\n<h3>4. Site load ln -s<\/h3>\n<pre class=\"lang:vim decode:true\">sudo ln -s \/etc\/httpd\/sites-available\/test.conf \/etc\/httpd\/sites-enabled\/test.conf\r\n<\/pre>\n<h3>5. Apache restart<\/h3>\n<pre class=\"lang:vim decode:true\"># systemctl restart httpd\r\n<\/pre>\n<h3>6. Site Confirm Check<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/centos.ihavenomoney.co.kr\/wp-content\/uploads\/2021\/01\/http_IPTest.jpg\" alt=\"\" width=\"1003\" height=\"794\" class=\"alignnone size-full wp-image-133\" srcset=\"https:\/\/centos.ihavenomoney.co.kr\/wp-content\/uploads\/2021\/01\/http_IPTest.jpg 1003w, https:\/\/centos.ihavenomoney.co.kr\/wp-content\/uploads\/2021\/01\/http_IPTest-300x237.jpg 300w, https:\/\/centos.ihavenomoney.co.kr\/wp-content\/uploads\/2021\/01\/http_IPTest-768x608.jpg 768w\" sizes=\"auto, (max-width: 1003px) 100vw, 1003px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1.\u00a0 virtual Site Setting \/ \uad00\ub9ac\ub97c \ud3b8\ud558\uac8c \ud558\uae30 \uc704\ud574 \uc0c8 \ub514\ub809\ud1a0\ub9ac\ub97c \ub9cc\ub4e0\ub2e4. # sudo mkdir \/etc\/httpd\/sites-available # sudo mkdir \/etc\/httpd\/sites-enabled 2. \ud30c\uc77c\ub05d Load \uc6a9 \uacbd\ub85c\ub97c \ud55c\uc904 \ucd94\uac00 \ud55c\ub2e4. #sudo vim \/etc\/httpd\/conf\/httpd.conf #Add this line to the end of the file: IncludeOptional sites-enabled\/*.conf 3.Virtual file\u00a0Setting # vi \/etc\/httpd\/sites-available\/test.conf &lt;VirtualHost *:80&gt; ServerName test.co.kr ServerAlias www.test.co.kr ServerAdmin root@localhost &hellip;<br \/><a href=\"https:\/\/centos.ihavenomoney.co.kr\/?page_id=362\" class=\"more-link pen_button pen_element_default pen_icon_arrow_double\"><span class=\"screen-reader-text\">Virtual  Site Setting<\/span> \ub354\ubcf4\uae30<\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-362","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/centos.ihavenomoney.co.kr\/index.php?rest_route=\/wp\/v2\/pages\/362","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/centos.ihavenomoney.co.kr\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/centos.ihavenomoney.co.kr\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/centos.ihavenomoney.co.kr\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/centos.ihavenomoney.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=362"}],"version-history":[{"count":6,"href":"https:\/\/centos.ihavenomoney.co.kr\/index.php?rest_route=\/wp\/v2\/pages\/362\/revisions"}],"predecessor-version":[{"id":376,"href":"https:\/\/centos.ihavenomoney.co.kr\/index.php?rest_route=\/wp\/v2\/pages\/362\/revisions\/376"}],"wp:attachment":[{"href":"https:\/\/centos.ihavenomoney.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=362"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}