{"id":364,"date":"2023-03-05T14:58:27","date_gmt":"2023-03-05T05:58:27","guid":{"rendered":"https:\/\/software.satoshis.jp\/?p=364"},"modified":"2023-04-11T14:13:59","modified_gmt":"2023-04-11T05:13:59","slug":"macos%e3%81%abbrew%e3%81%a7httpd%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b%e3%81%a8documentroot%e3%81%8c%e5%a4%89%e3%82%8f%e3%82%8b","status":"publish","type":"post","link":"https:\/\/software.satoshis.jp\/?p=364","title":{"rendered":"MacOS\u306bbrew\u3067httpd\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068DocumentRoot\u304c\u5909\u308f\u308b"},"content":{"rendered":"<p>HTML\/CSS\u306e\u30c6\u30b9\u30c8\u3092\u3084\u308b\u5fc5\u8981\u304c\u3042\u3063\u305f\u306e\u3067\u3001\u3072\u3055\u3057\u3076\u308a\u306b\u3001Mac\u4e0a\u306eapache2\u3092\u8d77\u52d5\u3057\u3066\u307f\u305f\u3002<\/p>\n<p>\u4ee5\u524d\u3001\u300c<a href=\"https:\/\/software.satoshis.jp\/?p=91\">Mac\u306b\u6a19\u6e96\u3067\u5165\u3063\u3066\u3044\u308bapache2\u306b\u3064\u3044\u3066<\/a>\u300d\u3068\u3044\u3046\u306e\u3092\u66f8\u3044\u3066\u304a\u3044\u305f\u306e\u3067\u3001\u3053\u3061\u3089\u306b\u66f8\u304b\u308c\u3066\u3044\u308bDocumentRoot\u306bHTML\u30d5\u30a1\u30a4\u30eb\u3092\u7f6e\u3044\u3066\u30a2\u30af\u30bb\u30b9\u3057\u3066\u307f\u305f\u3089\u3001404\u30a8\u30e9\u30fc\u306b\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u3002<\/p>\n<p>\/etc\/apache2\/httpd.conf \u30d5\u30a1\u30a4\u30eb\u3092\u898b\u3066\u307f\u305f\u3051\u3069\u3001DocumentRoot\u3092\u5909\u66f4\u3057\u3066\u3044\u308b\u308f\u3051\u3067\u3082\u306a\u3044\u3002<\/p>\n<p>\u306f\u3063\uff01<\/p>\n<p>\u305d\u3046\u3044\u3048\u3070\u3001\u3044\u3064\u304b\u5fd8\u308c\u305f\u3051\u3069\u3001Mac\u6a19\u6e96\u3067\u306f\u306a\u3044httpd\u3092brew\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3088\u3046\u306a\u8a18\u61b6\u304c\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n~ % brew search httpd\r\n==&gt; Formulae\r\ndarkhttpd      httpd\u2713       httpdiff       libmicrohttpd  lighttpd       mighttpd2      httpx          httpry         httpie\r\n\r\n==&gt; Casks\r\nhttpie\r\n<\/pre>\n<p>\u3084\u3063\u3071\u308abrew\u3067httpd\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u305f\u3002<\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u306f\u3001\u3053\u3061\u3089\u306ehttpd\u304c\u52d5\u3044\u3066\u3044\u308b\u3089\u3057\u3044\u3002info\u3092\u51fa\u3057\u3066\u307f\u308b\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n ~ % brew info httpd\r\n==&gt; httpd: stable 2.4.54 (bottled)\r\nApache HTTP server\r\nhttps:\/\/httpd.apache.org\/\r\n\/usr\/local\/Cellar\/httpd\/2.4.54_1 (1,662 files, 31.7MB) *\r\n  Poured from bottle on 2022-11-21 at 11:44:24\r\nFrom: https:\/\/github.com\/Homebrew\/homebrew-core\/blob\/HEAD\/Formula\/httpd.rb\r\nLicense: Apache-2.0\r\n==&gt; Dependencies\r\nRequired: apr\u2713, apr-util\u2713, brotli\u2713, libnghttp2\u2717, openssl@1.1\u2713, pcre2\u2713\r\n==&gt; Caveats\r\nDocumentRoot is \/usr\/local\/var\/www.\r\n\r\nThe default ports have been set in \/usr\/local\/etc\/httpd\/httpd.conf to 8080 and in\r\n\/usr\/local\/etc\/httpd\/extra\/httpd-ssl.conf to 8443 so that httpd can run without sudo.\r\n\r\nTo restart httpd after an upgrade:\r\n  brew services restart httpd\r\nOr, if you don&#039;t want\/need a background service you can just run:\r\n  \/usr\/local\/opt\/httpd\/bin\/httpd -D FOREGROUND\r\n==&gt; Analytics\r\ninstall: 20,117 (30 days), 76,196 (90 days), 373,223 (365 days)\r\ninstall-on-request: 16,430 (30 days), 57,972 (90 days), 285,893 (365 days)\r\nbuild-error: 60 (30 days)\r\n<\/pre>\n<p>DocumentRoot\u306f \/usr\/local\/var\/www \u3092\u898b\u3066\u3044\u305f\u3002<\/p>\n<p>\u3053\u3061\u3089\u306bHTML\u3092\u7f6e\u3044\u3066\u307f\u305f\u3089\u554f\u984c\u306a\u304f\u30a2\u30af\u30bb\u30b9\u3067\u304d\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>HTML\/CSS\u306e\u30c6\u30b9\u30c8\u3092\u3084\u308b\u5fc5\u8981\u304c\u3042\u3063\u305f\u306e\u3067\u3001\u3072\u3055\u3057\u3076\u308a\u306b\u3001Mac\u4e0a\u306eapache2\u3092\u8d77\u52d5\u3057\u3066\u307f\u305f\u3002 \u4ee5\u524d\u3001\u300cMac\u306b\u6a19\u6e96\u3067\u5165\u3063\u3066\u3044\u308bapache2\u306b\u3064\u3044\u3066\u300d\u3068\u3044\u3046\u306e\u3092\u66f8\u3044\u3066\u304a\u3044\u305f\u306e\u3067\u3001\u3053\u3061\u3089\u306b\u66f8\u304b &#8230; <\/p>\n","protected":false},"author":1,"featured_media":92,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34,111],"tags":[51,60,36,37,144],"class_list":["post-364","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-apache","category-mac","tag-apache2","tag-brew","tag-documentroot","tag-httpd","tag-macos"],"nelio_content":{"autoShareEndMode":"never","automationSources":{"useCustomSentences":false,"customSentences":[]},"efiAlt":"","efiUrl":"","followers":[1],"highlights":[],"isAutoShareEnabled":true,"networkImageIds":[],"permalinkQueryArgs":[],"series":[],"suggestedReferences":[]},"views":2441,"_links":{"self":[{"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=\/wp\/v2\/posts\/364","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=364"}],"version-history":[{"count":3,"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=\/wp\/v2\/posts\/364\/revisions"}],"predecessor-version":[{"id":367,"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=\/wp\/v2\/posts\/364\/revisions\/367"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=\/wp\/v2\/media\/92"}],"wp:attachment":[{"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=364"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=364"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=364"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}