{"id":25,"date":"2024-12-01T07:52:19","date_gmt":"2024-12-01T07:52:19","guid":{"rendered":"http:\/\/211.230.203.47\/wordpress\/?p=25"},"modified":"2024-12-01T07:52:19","modified_gmt":"2024-12-01T07:52:19","slug":"sudo-nano-etc-apache2-sites-available-wordpress-conf","status":"publish","type":"post","link":"https:\/\/www.soon7shop.kr\/wordpress\/?p=25","title":{"rendered":"sudo nano \/etc\/apache2\/sites-available\/wordpress.conf"},"content":{"rendered":"<article class=\"w-full scroll-mb-[var(--thread-trailing-height,150px)] text-token-text-primary focus-visible:outline-2 focus-visible:outline-offset-[-4px]\" dir=\"auto\" data-testid=\"conversation-turn-17\" data-scroll-anchor=\"false\">\n<div class=\"m-auto text-base py-[18px] px-3 md:px-4 w-full md:px-5 lg:px-4 xl:px-5\">\n<div class=\"mx-auto flex flex-1 gap-4 text-base md:gap-5 lg:gap-6 md:max-w-3xl lg:max-w-[40rem] xl:max-w-[48rem]\">\n<div class=\"group\/conversation-turn relative flex w-full min-w-0 flex-col agent-turn\">\n<div class=\"flex-col gap-1 md:gap-3\">\n<div class=\"mb-2 flex gap-3 empty:hidden -ml-2\">\n<div class=\"items-center justify-start rounded-xl p-1 z-10 -mt-1 bg-token-main-surface-primary md:absolute md:sr-only\">\n<div class=\"flex items-center\">\n<div class=\"flex\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/article>\n<article class=\"w-full scroll-mb-[var(--thread-trailing-height,150px)] text-token-text-primary focus-visible:outline-2 focus-visible:outline-offset-[-4px]\" dir=\"auto\" data-testid=\"conversation-turn-19\" data-scroll-anchor=\"false\">\n<div class=\"m-auto text-base py-[18px] px-3 md:px-4 w-full md:px-5 lg:px-4 xl:px-5\">\n<div class=\"mx-auto flex flex-1 gap-4 text-base md:gap-5 lg:gap-6 md:max-w-3xl lg:max-w-[40rem] xl:max-w-[48rem]\">\n<div class=\"group\/conversation-turn relative flex w-full min-w-0 flex-col agent-turn\">\n<div class=\"flex-col gap-1 md:gap-3\">\n<div class=\"flex max-w-full flex-col flex-grow\">\n<div class=\"min-h-8 text-message flex w-full flex-col items-end gap-2 whitespace-normal break-words [.text-message+&amp;]:mt-5\" dir=\"auto\" data-message-author-role=\"assistant\" data-message-id=\"8ce75296-8dad-4336-8582-b673d068cf7c\" data-message-model-slug=\"gpt-4o\">\n<div class=\"flex w-full flex-col gap-1 empty:hidden first:pt-[3px]\">\n<div class=\"markdown prose w-full break-words dark:prose-invert light\">\n<p><code>\/etc\/apache2\/sites-available\/wordpress.conf<\/code>\ub294 \uc6cc\ub4dc\ud504\ub808\uc2a4\uc6a9 Apache \uac00\uc0c1 \ud638\uc2a4\ud2b8 \ud30c\uc77c\uc785\ub2c8\ub2e4. \uc774 \ud30c\uc77c\uc740 \uc6cc\ub4dc\ud504\ub808\uc2a4 \uc0ac\uc774\ud2b8\uc758 \ub3c4\uba54\uc778, \ub8e8\ud2b8 \ub514\ub809\ud1a0\ub9ac, \ub85c\uadf8 \uacbd\ub85c \ub4f1\uacfc \uac19\uc740 \uc124\uc815\uc744 \uc815\uc758\ud569\ub2c8\ub2e4. \uc544\ub798\ub294 \uc6cc\ub4dc\ud504\ub808\uc2a4\ub97c \uc704\ud55c \uae30\ubcf8 \uad6c\uc131 \uc608\uc81c\uc785\ub2c8\ub2e4.<\/p>\n<hr \/>\n<h3>1. <strong>\ud30c\uc77c \uc5f4\uae30<\/strong><\/h3>\n<p>\ub2e4\uc74c \uba85\ub839\uc5b4\ub85c \ud30c\uc77c\uc744 \uc5fd\ub2c8\ub2e4:<\/p>\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950\">\n<div class=\"flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none\">bash<\/div>\n<div class=\"sticky top-9 md:top-[5.75rem]\">\n<div class=\"absolute bottom-0 right-2 flex h-9 items-center\">\n<div class=\"flex items-center rounded bg-token-sidebar-surface-primary px-2 font-sans text-xs text-token-text-secondary dark:bg-token-main-surface-secondary\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-bash\">sudo nano \/etc\/apache2\/sites-available\/wordpress.conf<br \/>\n<\/code><\/div>\n<\/div>\n<hr \/>\n<h3>2. <strong>\uac00\uc0c1 \ud638\uc2a4\ud2b8 \uad6c\uc131 \ucd94\uac00<\/strong><\/h3>\n<p>\uc544\ub798 \ub0b4\uc6a9\uc744 <code>wordpress.conf<\/code>\uc5d0 \ucd94\uac00\ud569\ub2c8\ub2e4. \ub3c4\uba54\uc778 \uc774\ub984\uacfc \ub514\ub809\ud1a0\ub9ac\ub97c \ud658\uacbd\uc5d0 \ub9de\uac8c \uc218\uc815\ud558\uc138\uc694.<\/p>\n<h4>\uae30\ubcf8 \uc124\uc815 \uc608\uc81c:<\/h4>\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950\">\n<div class=\"flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none\">apache<\/div>\n<div class=\"sticky top-9 md:top-[5.75rem]\">\n<div class=\"absolute bottom-0 right-2 flex h-9 items-center\">\n<div class=\"flex items-center rounded bg-token-sidebar-surface-primary px-2 font-sans text-xs text-token-text-secondary dark:bg-token-main-surface-secondary\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\">\n<p>&lt;VirtualHost *:80&gt;<br \/>\nServerAdmin admin@yourdomain.com<br \/>\nServerName yourdomain.com<br \/>\nServerAlias www.yourdomain.com<\/p>\n<p>DocumentRoot \/var\/www\/html\/wordpress<\/p>\n<p>&lt;Directory \/var\/www\/html\/wordpress&gt;<br \/>\nOptions Indexes FollowSymLinks<br \/>\nAllowOverride All<br \/>\nRequire all granted<br \/>\n&lt;\/Directory&gt;<\/p>\n<p>ErrorLog ${APACHE_LOG_DIR}\/wordpress_error.log<br \/>\nCustomLog ${APACHE_LOG_DIR}\/wordpress_access.log combined<br \/>\n&lt;\/VirtualHost&gt;<\/p>\n<\/div>\n<\/div>\n<hr \/>\n<h3>3. <strong>\uc124\uc815 \ub0b4\uc6a9 \uc124\uba85<\/strong><\/h3>\n<ul>\n<li><strong><code>ServerAdmin<\/code><\/strong>: \uad00\ub9ac\uc790\uc758 \uc774\uba54\uc77c \uc8fc\uc18c. (\uc5d0\ub7ec \uba54\uc2dc\uc9c0\uc5d0\uc11c \ud45c\uc2dc\ub428)<\/li>\n<li><strong><code>ServerName<\/code><\/strong>: \uc0ac\uc774\ud2b8\uc758 \uc8fc \ub3c4\uba54\uc778 (\uc608: <code>yourdomain.com<\/code>).<\/li>\n<li><strong><code>ServerAlias<\/code><\/strong>: \ucd94\uac00 \ub3c4\uba54\uc778 \ub610\ub294 \uc11c\ube0c\ub3c4\uba54\uc778 (\uc608: <code>www.yourdomain.com<\/code>).<\/li>\n<li><strong><code>DocumentRoot<\/code><\/strong>: \uc6cc\ub4dc\ud504\ub808\uc2a4 \ud30c\uc77c\uc774 \uc704\uce58\ud55c \uacbd\ub85c.<\/li>\n<li><strong><code>&lt;Directory&gt;<\/code><\/strong>: \ub514\ub809\ud1a0\ub9ac \uc635\uc158.\n<ul>\n<li><code>AllowOverride All<\/code>: <code>.htaccess<\/code> \ud30c\uc77c\uc5d0\uc11c Apache \uc124\uc815\uc744 \ud5c8\uc6a9.<\/li>\n<li><code>Require all granted<\/code>: \ub514\ub809\ud1a0\ub9ac\uc5d0 \ub300\ud55c \uc811\uadfc \ud5c8\uc6a9.<\/li>\n<\/ul>\n<\/li>\n<li><strong><code>ErrorLog<\/code><\/strong>: \uc5d0\ub7ec \ub85c\uadf8 \ud30c\uc77c \uacbd\ub85c.<\/li>\n<li><strong><code>CustomLog<\/code><\/strong>: \uc811\uadfc \ub85c\uadf8 \ud30c\uc77c \uacbd\ub85c.<\/li>\n<\/ul>\n<hr \/>\n<h3>4. <strong>HTTPS(SSL) \ucd94\uac00 \uc124\uc815<\/strong> (\uc120\ud0dd)<\/h3>\n<p>HTTPS\ub97c \uc0ac\uc6a9\ud558\ub824\uba74 \uc544\ub798\uc640 \uac19\uc740 \ucd94\uac00 \uad6c\uc131\uc744 \uc791\uc131\ud574\uc57c \ud569\ub2c8\ub2e4.<\/p>\n<h4>HTTPS \uc608\uc81c:<\/h4>\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950\">\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-apache\"><code class=\"!whitespace-pre hljs language-apache\"><\/code><\/code>&lt;VirtualHost *:443&gt;<br \/>\nServerAdmin admin@yourdomain.com<br \/>\nServerName yourdomain.com<br \/>\nServerAlias www.yourdomain.com<\/p>\n<p><code class=\"!whitespace-pre hljs language-apache\"><code class=\"!whitespace-pre hljs language-apache\"><\/code><\/code>DocumentRoot \/var\/www\/html\/wordpress<\/p>\n<p><code class=\"!whitespace-pre hljs language-apache\"><code class=\"!whitespace-pre hljs language-apache\"><\/code><\/code>&lt;Directory \/var\/www\/html\/wordpress&gt;<br \/>\nOptions Indexes FollowSymLinks<br \/>\nAllowOverride All<br \/>\nRequire all granted<br \/>\n&lt;\/Directory&gt;<\/p>\n<p><code class=\"!whitespace-pre hljs language-apache\"><code class=\"!whitespace-pre hljs language-apache\"><\/code><\/code>SSLEngine on<br \/>\nSSLCertificateFile \/etc\/ssl\/certs\/yourdomain.crt<br \/>\nSSLCertificateKeyFile \/etc\/ssl\/private\/yourdomain.key<\/p>\n<p><code class=\"!whitespace-pre hljs language-apache\"><code class=\"!whitespace-pre hljs language-apache\"><\/code><\/code>ErrorLog ${APACHE_LOG_DIR}\/wordpress_ssl_error.log<br \/>\nCustomLog ${APACHE_LOG_DIR}\/wordpress_ssl_access.log combined<br \/>\n&lt;\/VirtualHost&gt;<\/p>\n<p><code class=\"!whitespace-pre hljs language-apache\"><br \/>\n<\/code><\/div>\n<\/div>\n<hr \/>\n<h3>5. <strong>\uac00\uc0c1 \ud638\uc2a4\ud2b8 \ud65c\uc131\ud654<\/strong><\/h3>\n<p>\uc0c8\ub85c\uc6b4 \uc124\uc815\uc744 \ud65c\uc131\ud654\ud569\ub2c8\ub2e4:<\/p>\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950\">\n<div class=\"flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none\">bash<\/div>\n<div class=\"sticky top-9 md:top-[5.75rem]\">\n<div class=\"absolute bottom-0 right-2 flex h-9 items-center\">\n<div class=\"flex items-center rounded bg-token-sidebar-surface-primary px-2 font-sans text-xs text-token-text-secondary dark:bg-token-main-surface-secondary\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-bash\">sudo a2ensite wordpress.conf<br \/>\n<\/code><\/div>\n<\/div>\n<hr \/>\n<h3>6. <strong>Apache \ubaa8\ub4c8 \ud65c\uc131\ud654 \ubc0f \uc7ac\uc2dc\uc791<\/strong><\/h3>\n<p>\uc544\ub798 \uba85\ub839\uc5b4\ub85c Apache\uc758 \ud544\uc694 \ubaa8\ub4c8\uc744 \ud65c\uc131\ud654\ud558\uace0 \uc11c\ubc84\ub97c \uc7ac\uc2dc\uc791\ud569\ub2c8\ub2e4:<\/p>\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950\">\n<div class=\"flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none\">bash<\/div>\n<div class=\"sticky top-9 md:top-[5.75rem]\">\n<div class=\"absolute bottom-0 right-2 flex h-9 items-center\">\n<div class=\"flex items-center rounded bg-token-sidebar-surface-primary px-2 font-sans text-xs text-token-text-secondary dark:bg-token-main-surface-secondary\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-bash\">sudo a2enmod rewrite<br \/>\nsudo systemctl reload apache2<br \/>\n<\/code><\/div>\n<\/div>\n<hr \/>\n<h3>7. <strong>\ud30c\uc77c \ud14c\uc2a4\ud2b8<\/strong><\/h3>\n<p>\uad6c\uc131\uc774 \uc62c\ubc14\ub978\uc9c0 \ud655\uc778:<\/p>\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950\">\n<div class=\"flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none\">bash<\/div>\n<div class=\"sticky top-9 md:top-[5.75rem]\">\n<div class=\"absolute bottom-0 right-2 flex h-9 items-center\">\n<div class=\"flex items-center rounded bg-token-sidebar-surface-primary px-2 font-sans text-xs text-token-text-secondary dark:bg-token-main-surface-secondary\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-bash\">sudo apache2ctl configtest<br \/>\n<\/code><\/div>\n<\/div>\n<p>\ubb38\uc81c\uac00 \uc5c6\ub2e4\uba74 \ucd9c\ub825\uc740 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4:<\/p>\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950\">\n<div class=\"flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none\">mathematica<\/div>\n<div class=\"sticky top-9 md:top-[5.75rem]\">\n<div class=\"absolute bottom-0 right-2 flex h-9 items-center\">\n<div class=\"flex items-center rounded bg-token-sidebar-surface-primary px-2 font-sans text-xs text-token-text-secondary dark:bg-token-main-surface-secondary\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-mathematica\"><span class=\"hljs-built_in\">Syntax<\/span> <span class=\"hljs-variable\">OK<\/span><\/code><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/article>\n","protected":false},"excerpt":{"rendered":"<p>\/etc\/apache2\/sites-available\/wordpress.conf\ub294 \uc6cc\ub4dc\ud504\ub808\uc2a4\uc6a9 Apache \uac00\uc0c1 \ud638\uc2a4\ud2b8 \ud30c\uc77c\uc785\ub2c8\ub2e4. \uc774 \ud30c\uc77c\uc740 \uc6cc\ub4dc\ud504\ub808\uc2a4 \uc0ac\uc774\ud2b8\uc758 \ub3c4\uba54\uc778, \ub8e8\ud2b8 \ub514\ub809\ud1a0\ub9ac, \ub85c\uadf8 \uacbd\ub85c \ub4f1\uacfc \uac19\uc740 \uc124\uc815\uc744 \uc815\uc758\ud569\ub2c8\ub2e4. \uc544\ub798\ub294 \uc6cc\ub4dc\ud504\ub808\uc2a4\ub97c \uc704\ud55c \uae30\ubcf8 \uad6c\uc131 \uc608\uc81c\uc785\ub2c8\ub2e4. 1. \ud30c\uc77c \uc5f4\uae30 \ub2e4\uc74c \uba85\ub839\uc5b4\ub85c \ud30c\uc77c\uc744 \uc5fd\ub2c8\ub2e4: bash sudo nano \/etc\/apache2\/sites-available\/wordpress.conf 2. \uac00\uc0c1 \ud638\uc2a4\ud2b8 \uad6c\uc131 \ucd94\uac00 \uc544\ub798 \ub0b4\uc6a9\uc744 wordpress.conf\uc5d0 \ucd94\uac00\ud569\ub2c8\ub2e4. \ub3c4\uba54\uc778 \uc774\ub984\uacfc \ub514\ub809\ud1a0\ub9ac\ub97c \ud658\uacbd\uc5d0 \ub9de\uac8c \uc218\uc815\ud558\uc138\uc694. \uae30\ubcf8 \uc124\uc815 \uc608\uc81c: apache &hellip; <a href=\"https:\/\/www.soon7shop.kr\/wordpress\/?p=25\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;sudo nano \/etc\/apache2\/sites-available\/wordpress.conf&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-25","post","type-post","status-publish","format-standard","hentry","category-4"],"_links":{"self":[{"href":"https:\/\/www.soon7shop.kr\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/25","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.soon7shop.kr\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.soon7shop.kr\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.soon7shop.kr\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.soon7shop.kr\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=25"}],"version-history":[{"count":1,"href":"https:\/\/www.soon7shop.kr\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/25\/revisions"}],"predecessor-version":[{"id":26,"href":"https:\/\/www.soon7shop.kr\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/25\/revisions\/26"}],"wp:attachment":[{"href":"https:\/\/www.soon7shop.kr\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=25"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.soon7shop.kr\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=25"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.soon7shop.kr\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=25"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}