{"id":207,"date":"2023-04-09T01:55:56","date_gmt":"2023-04-08T16:55:56","guid":{"rendered":"https:\/\/shugomatsuzawa.com\/techblog\/?p=207"},"modified":"2023-06-20T04:29:07","modified_gmt":"2023-06-19T19:29:07","slug":"amazon-lightsail-wordpress%e3%82%a4%e3%83%b3%e3%82%b9%e3%82%bf%e3%83%b3%e3%82%b9%e5%86%85%e3%81%ab%e5%88%a5%e3%83%89%e3%83%a1%e3%82%a4%e3%83%b3%e3%81%a7%e3%82%82%e3%81%86%e4%b8%80%e3%81%a4html","status":"publish","type":"post","link":"https:\/\/shugomatsuzawa.com\/techblog\/2023\/04\/09\/207\/","title":{"rendered":"Amazon Lightsail WordPress\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5185\u306b\u5225\u30c9\u30e1\u30a4\u30f3\u3067\u3082\u3046\u4e00\u3064HTML\u30b5\u30a4\u30c8\u3092\u4f5c\u308b"},"content":{"rendered":"\n<p>\u3053\u306e\u30b5\u30a4\u30c8\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306b\u306f\u3001WordPress\u30de\u30eb\u30c1\u30b5\u30a4\u30c8\u306e\u4ed6\u306bNext.js\u304b\u3089\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u3057\u305f\u7236\u306e\u5e97\u306eWeb\u30b5\u30a4\u30c8\u304c\u5165\u3063\u3066\u3044\u308b\u3002<br>\u30ea\u30bd\u30fc\u30b9\u3082\u3042\u307e\u308a\u4f7f\u308f\u306a\u3044\u3057\u3001\u30b3\u30b9\u30c8\u3092\u7bc0\u7d04\u3057\u305f\u304b\u3063\u305f\u306e\u3067\u3053\u306e\u3088\u3046\u306a\u5f62\u306b\u306a\u3063\u305f\u3002<br>\u3084\u308a\u65b9\u3092\u89e3\u8aac\u3002\uff08\u3068\u3044\u3063\u3066\u3082<a href=\"https:\/\/aws.amazon.com\/jp\/premiumsupport\/knowledge-center\/lightsail-add-website-as-subdomain\/\" data-type=\"URL\" data-id=\"https:\/\/aws.amazon.com\/jp\/premiumsupport\/knowledge-center\/lightsail-add-website-as-subdomain\/\" target=\"_blank\" rel=\"noreferrer noopener\">\u3053\u3053\u306b\u66f8\u3044\u3066\u3042\u308b\u901a\u308a<\/a>\u306a\u306e\u3060\u304c\uff09<\/p>\n\n\n\n<p><code>\/opt\/bitnami\/apache2\/conf\/vhosts\/<\/code>\u306b\u3001\u65b0\u3057\u3044<code>.conf<\/code>\u3092\u4f5c\u6210\u3059\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;VirtualHost *:80&gt;\n    ServerName &lt;HTML\u30b5\u30a4\u30c8\u306e\u30c9\u30e1\u30a4\u30f3&gt;.com\n    DocumentRoot \"\/opt\/bitnami\/wordpress\/&lt;HTML\u30b5\u30a4\u30c8\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea&gt;\"\n    &lt;Directory \"\/opt\/bitnami\/wordpress\/&lt;HTML\u30b5\u30a4\u30c8\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea&gt;\"&gt;\n    Options +MultiViews +FollowSymLinks\n    AllowOverride All\n    Require all granted\n    &lt;\/Directory&gt;\n&lt;\/VirtualHost&gt;<\/code><\/pre>\n\n\n\n<p>SSL\u3092\u4f7f\u7528\u3059\u308b\u306b\u306f\u6b21\u3092\u8ffd\u52a0\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;VirtualHost *:443&gt;\n    ServerName &lt;HTML\u30b5\u30a4\u30c8\u306e\u30c9\u30e1\u30a4\u30f3&gt;.com\n    DocumentRoot \"\/opt\/bitnami\/wordpress\/&lt;HTML\u30b5\u30a4\u30c8\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea&gt;\"\n    SSLEngine on\n    SSLCertificateFile \"\/opt\/bitnami\/apache2\/conf\/bitnami\/certs\/&lt;\u8a3c\u660e\u66f8&gt;.crt\"\n    SSLCertificateKeyFile \"\/opt\/bitnami\/apache2\/conf\/bitnami\/certs\/&lt;\u30ad\u30fc\u30d5\u30a1\u30a4\u30eb&gt;.key\"\n    &lt;Directory \"\/opt\/bitnami\/wordpress\/&lt;HTML\u30b5\u30a4\u30c8\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea&gt;\"&gt;\n    Options +MultiViews +FollowSymLinks\n    AllowOverride All\n    Require all granted\n    &lt;\/Directory&gt;\n&lt;\/VirtualHost&gt;<\/code><\/pre>\n\n\n\n<p>Apache\u3092\u518d\u8d77\u52d5\u3057\u3066\u9069\u7528\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo \/opt\/bitnami\/ctlscript.sh restart apache<\/code><\/pre>\n\n\n\n<p>\u3053\u308c\u3067<code>&lt;HTML\u30b5\u30a4\u30c8\u306e\u30c9\u30e1\u30a4\u30f3&gt;.com<\/code>\u3067\u30b5\u30a4\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3002<br>\u3057\u304b\u3057<code>&lt;WordPress\u30b5\u30a4\u30c8\u306e\u30c9\u30e1\u30a4\u30f3&gt;.com\/&lt;HTML\u30b5\u30a4\u30c8\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea&gt;<\/code>\u3067\u3082\u30a2\u30af\u30bb\u30b9\u3067\u304d\u3066\u3057\u307e\u3046\u3002<br>\u3053\u308c\u3092\u9632\u3050\u306b\u306fWordPress\u30b5\u30a4\u30c8\u306e<code>vhost.conf<\/code>\uff08<code>\/opt\/bitnami\/apache2\/conf\/vhosts\/wordpress-vhost.conf<\/code>\u3068<code>\/opt\/bitnami\/apache2\/conf\/vhosts\/wordpress-https-vhost.conf<\/code>\uff09\u5185\u306e<code>&lt;VirtualHost&gt;<\/code>\u306b\u4ee5\u4e0b\u3092\u8ffd\u52a0\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;Directory \"\/opt\/bitnami\/wordpress\/&lt;HTML\u30b5\u30a4\u30c8\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea&gt;\"&gt;\n  order deny,allow\n  deny from all\n&lt;\/Directory&gt;<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u53c2\u8003<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/aws.amazon.com\/jp\/premiumsupport\/knowledge-center\/lightsail-add-website-as-subdomain\/\" data-type=\"URL\" data-id=\"https:\/\/aws.amazon.com\/jp\/premiumsupport\/knowledge-center\/lightsail-add-website-as-subdomain\/\" target=\"_blank\" rel=\"noreferrer noopener\">HTML \u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u3092 Lightsail WordPress \u3067\u30b5\u30d6\u30c9\u30e1\u30a4\u30f3\u3068\u3057\u3066\u30db\u30b9\u30c8\u3059\u308b<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"\u3053\u306e\u30b5\u30a4\u30c8\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306b\u306f\u3001WordPress\u30de\u30eb\u30c1\u30b5\u30a4\u30c8\u306e\u4ed6\u306bNext.js\u304b\u3089\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u3057\u305f\u7236\u306e\u5e97\u306eWeb\u30b5\u30a4\u30c8\u304c\u5165\u3063\u3066\u3044\u308b\u3002\u30ea\u30bd\u30fc\u30b9\u3082\u3042\u307e\u308a\u4f7f\u308f\u306a\u3044\u3057\u3001\u30b3\u30b9\u30c8\u3092\u7bc0\u7d04\u3057\u305f\u304b\u3063\u305f\u306e\u3067\u3053\u306e\u3088\u3046\u306a\u5f62\u306b\u306a\u3063\u305f\u3002\u3084\u308a\u65b9\u3092\u89e3 [&hellip;]","protected":false},"author":1,"featured_media":234,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":3,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[8],"tags":[66,69,65,51,10],"class_list":["post-207","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-system-management","tag-lightsail","tag-bitnami","tag-debian","tag-html","tag-memo"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/shugomatsuzawa.com\/techblog\/wp-content\/uploads\/sites\/3\/2023\/03\/back-to-school-gf5275bef9_1920.jpg","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/posts\/207","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/comments?post=207"}],"version-history":[{"count":4,"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/posts\/207\/revisions"}],"predecessor-version":[{"id":254,"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/posts\/207\/revisions\/254"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/media\/234"}],"wp:attachment":[{"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/media?parent=207"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/categories?post=207"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/tags?post=207"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}