{"id":128,"date":"2016-03-21T15:32:49","date_gmt":"2016-03-21T06:32:49","guid":{"rendered":"https:\/\/iwako.pgw.jp\/?p=128"},"modified":"2019-03-28T12:42:10","modified_gmt":"2019-03-28T03:42:10","slug":"apache2%e3%81%ae%e8%a8%ad%e5%ae%9a-%e4%bc%8d","status":"publish","type":"post","link":"https:\/\/iwako.pgw.jp\/?p=128","title":{"rendered":"\u62fe\u4f0d-apache2\u306e\u8a2d\u5b9a-\u4f0d"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-129\" src=\"https:\/\/iwako.pgw.jp\/wp-content\/uploads\/2016\/03\/hanaG.jpg\" alt=\"hanaG\" width=\"1024\" height=\"683\" \/><br \/>\n\u30fbapache2\u3092\u518d\u8d77\u52d5\u3057\u3088\u3046\u3068\u3057\u305f\u3089\u5d4c\u3063\u305f<br \/>\n\u3042\u308b\u65e5\u3001\u68ee\u306e\u4e2d\u3001apache2\u3092\u518d\u8d77\u52d5\u3057\u3088\u3046\u3068\u3057\u305f\u3089\u8b8a\u306a\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u3002<br \/>\n$ sudo service apache2 restart<br \/>\n* Restarting web server apache2<br \/>\nAH00558: apache2: Could not reliably determine the server&#8217;s fully qualified domain name, using 127.0.1.1. Set the &#8216;ServerName&#8217; directive globally to suppress this message<br \/>\n\u306a\u3001\u306a\u3093\u3067\u3084\u2026\u30ef\u30a4\u306f\u306a\u3093\u3082\u3057\u3066\u3078\u3093\u3067\u2026<br \/>\n\u521d\u3081\u3066\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u6642\u306f\u3001\u518d\u8d77\u52d5\u3082\u3067\u304d\u306a\u304f\u306a\u3063\u305f\u3002<br \/>\n\u73fe\u5728\u306f\u72c0\u6cc1\u3092\u518d\u73fe\u3057\u3088\u3046\u3068\u3057\u3066\u3082\u3001\u30a8\u30e9\u30fc\u306f\u51fa\u308b\u3051\u3069\u4e00\u61c9\u8d77\u52d5\u306f\u3059\u308b\u3088\u3046\u3060\u3002<\/p>\n<p>\u30a8\u30e9\u30fc\u306e\u539f\u56e0\u306fFQDN\u304c\u898b\u3064\u304b\u3089\u306a\u3044\u305f\u3081\u3089\u3057\u3044\u3002<br \/>\napache2\u306e\u8a2d\u5b9a\u9805\u76ee\u306bServerName\u306e\u8a2d\u5b9a\u3092\u3059\u308b\u3068<br \/>\n\u30a8\u30e9\u30fc\u306a\u304f\u8d77\u52d5\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<br \/>\n\u307e\u305a\u306f\u30b5\u30fc\u30d0\u30fc\u306ehostname\u3092\u78ba\u8a8d\u3057\u3066\u89ba\u3048\u3066\u304a\u304f\u3002<br \/>\n$ hostname<\/p>\n<p>\u6b21\u306bconf-available\u306e\u30d5\u30a9\u30eb\u30c0\u5185\u306bServerName\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b\u3002<br \/>\n$ cd \/etc\/apache2\/conf-available\/<br \/>\n$ sudo vim fqdn.conf<br \/>\n\u30d5\u30a1\u30a4\u30eb\u540d\u306f\u4efb\u610f\u3067\u826f\u3044\u3002<br \/>\nvim\u3092\u8d77\u52d5\u3057\u3066\u4e0b\u8a18\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3057\u3066\u4fdd\u5b58\u3059\u308b\u3002<br \/>\nServerName &lt;hostname&gt;<br \/>\n\u203b$ hostname\u3067\u51fa\u529b\u3057\u305f\u6587\u5b57\u3092\u5165\u308c\u308b\u3002<br \/>\n\u4fdd\u5b58\u3057\u305f\u3089\u305d\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u6307\u5b9a\u3057\u3066\u8a2d\u5b9a\u3092\u53cd\u6620\u3055\u305b\u308b\u3002<br \/>\n$ sudo a2enconf fqdn.conf<br \/>\n\u53cd\u6620\u3055\u305b\u305f\u3089\u518d\u8d77\u52d5\u3002<br \/>\n$ sudo service apache2 restart<br \/>\n\u30a8\u30e9\u30fc\u306a\u304f\u518d\u8d77\u52d5\u3059\u308c\u3070\u6210\u529f\u3002<br \/>\nubuntu\u306e\u5834\u5408\u306f<br \/>\n* Restarting web server apache2\u3000\u3000\u3000\u3000\u3000[OK]<br \/>\n\u3068\u3044\u3046\u8868\u793a\u304c\u51fa\u308b\u304c\u3001raspbian\u306e\u5834\u5408\u306f\u554f\u984c\u304c\u306a\u3051\u308c\u3070<br \/>\n\u30e1\u30c3\u30bb\u30fc\u30b8\u306a\u3069\u306f\u8fd4\u3057\u3066\u3053\u306a\u3044\u3002<\/p>\n<p>\u3053\u308c\u3067apache\u306e\u8a2d\u5b9a\u306f\u7d42\u308f\u308a\u3002<br \/>\n\u672c\u7576\u306f\u4ed6\u306b\u3082\u3044\u308d\u3044\u308d\u3084\u308b\u3079\u304d\u3053\u3068\u304c\u3042\u308b\u3060\u308d\u3046\u3051\u3069\u3072\u3068\u307e\u305a\u7d42\u308f\u308a\u3002<br \/>\n\u6b21\u56d8\u306f\u3001\u7121\u6599\u306e\u7368\u81ea\u30c9\u30e1\u30a4\u30f3\u3092\u53d6\u5f97\u3059\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30fbapache2\u3092\u518d\u8d77\u52d5\u3057\u3088\u3046\u3068\u3057\u305f\u3089\u5d4c\u3063\u305f \u3042\u308b\u65e5\u3001\u68ee\u306e\u4e2d\u3001apache2\u3092\u518d\u8d77\u52d5\u3057\u3088\u3046\u3068\u3057\u305f\u3089\u8b8a\u306a\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u3002 $ sudo service apache2 restart * Restarting web ser [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-128","post","type-post","status-publish","format-standard","hentry","category-raspberry-pi"],"_links":{"self":[{"href":"https:\/\/iwako.pgw.jp\/index.php?rest_route=\/wp\/v2\/posts\/128","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/iwako.pgw.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/iwako.pgw.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/iwako.pgw.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/iwako.pgw.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=128"}],"version-history":[{"count":4,"href":"https:\/\/iwako.pgw.jp\/index.php?rest_route=\/wp\/v2\/posts\/128\/revisions"}],"predecessor-version":[{"id":157,"href":"https:\/\/iwako.pgw.jp\/index.php?rest_route=\/wp\/v2\/posts\/128\/revisions\/157"}],"wp:attachment":[{"href":"https:\/\/iwako.pgw.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=128"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/iwako.pgw.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=128"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/iwako.pgw.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=128"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}