{"id":151,"date":"2017-05-29T22:25:42","date_gmt":"2017-05-29T13:25:42","guid":{"rendered":"https:\/\/pandanote.info\/?p=151"},"modified":"2022-08-06T23:15:46","modified_gmt":"2022-08-06T14:15:46","slug":"apache-httpdv2-4%e3%81%a7%e7%89%b9%e5%ae%9a%e3%81%ae%e7%af%84%e5%9b%b2%e3%81%aeipv6%e3%82%a2%e3%83%89%e3%83%ac%e3%82%b9%e3%81%8b%e3%82%89%e3%81%aehttps%e6%8e%a5%e7%b6%9a%e3%81%ab%e3%82%88%e3%82%8b","status":"publish","type":"post","link":"https:\/\/pandanote.info\/?p=151","title":{"rendered":"Apache httpd(v2.4)\u3067\u7279\u5b9a\u306e\u7bc4\u56f2\u306eIPv6\u30a2\u30c9\u30ec\u30b9\u304b\u3089\u306eHTTPS\u63a5\u7d9a\u306b\u3088\u308b\u30a2\u30af\u30bb\u30b9\u3092\u5225\u306e\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u306b\u8a18\u9332\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<h2>\u307e\u305a\u3001\u524d\u7f6e\u304d\u3002<\/h2>\n<p>\u500b\u4eba\u7684\u306b\u30d6\u30ed\u30b0\u30b5\u30a4\u30c8\u306e\u3088\u3046\u306a\u3082\u306e\u304c\u7a3c\u50cd\u3057\u3066\u3044\u308b\u30b5\u30fc\u30d0\u3092\u7ba1\u7406\u3057\u3066\u3044\u308b\u3068\u3001\u5916\u51fa\u5148\u304b\u3089\u3067\u3082\u30b5\u30a4\u30c8\u306e\u72b6\u6cc1\u3092\u78ba\u8a8d\u3057\u305f\u3044\u3053\u3068\u304c\u304b\u306a\u308a\u983b\u7e41\u306b\u3042\u308a\u307e\u3059\u3002\u305d\u3093\u306a\u3068\u304d\u306bPC\u304c\u4f7f\u3048\u306a\u3044\u72b6\u6cc1\u3084\u53d6\u308a\u51fa\u3059\u306e\u304c\u96e3\u3057\u3044\u72b6\u6cc1\u3060\u3063\u305f\u308a\u3067\u30b9\u30de\u30db\u3057\u304b\u4f7f\u3048\u306a\u3044\u72b6\u6cc1\u3060\u3063\u305f\u308a\u3059\u308b\u3068\u3001\u3067\u304d\u308c\u3070\u3042\u307e\u308a\u4f59\u8a08\u306a\u60c5\u5831\u306f\u8868\u793a\u305b\u305a\u5fc5\u8981\u306a\u60c5\u5831\u3060\u3051\u53d6\u5f97\u3057\u305f\u3044\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>\u300c\u305d\u3093\u306a\u3068\u304d\u306b\u3069\u3046\u3084\u3063\u3066\u30b9\u30de\u30db\u304b\u3089Web\u30b5\u30fc\u30d0\u306e\u30b7\u30a7\u30eb\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u306e?\u300d\u3068\u3044\u3046\u3064\u3063\u3053\u307f\u306f\u3042\u308b\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u81ea\u5206\u306f\u30b9\u30de\u30db\u306eSSH\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3068\u3057\u3066<a href=\"http:\/\/connectbot.vx.sk\/\">VX ConnectBot<\/a>\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002\u4f7f\u7528\u65b9\u6cd5\u306b\u3064\u3044\u3066\u306f\u5225\u306e\u8a18\u4e8b\u3067\u6c17\u304c\u5411\u3044\u305f\u3089\u66f8\u304d\u307e\u3059\u3002<\/p>\n<p>\u300cWeb\u30b5\u30fc\u30d0\u306e\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u3067\u5fc5\u8981\u306a\u60c5\u5831\u3092\u898b\u305f\u3044\u3051\u3069\u3001\u81ea\u5206\u304c\u30a2\u30af\u30bb\u30b9\u3057\u305f\u60c5\u5831\u3082\u540c\u3058\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u306b\u4e00\u7dd2\u306b\u8a18\u9332\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u672c\u6765\u898b\u305f\u3044\u60c5\u5831\u306b\u306a\u304b\u306a\u304b\u305f\u3069\u308a\u7740\u3051\u306a\u304b\u3063\u305f\u308a\u3001\u898b\u9003\u3057\u305f\u308a\u3057\u3066\u4f55\u5ea6\u3082\u898b\u76f4\u3057\u3066\u3044\u308b\u3046\u3061\u306b\u3001\u30b9\u30de\u30db\u306e\u901a\u4fe1\u72b6\u614b\u304c\u60aa\u304f\u306a\u3063\u305f\u308a\u3057\u3066\u3001Web\u30b5\u30fc\u30d0\u3078\u306e\u63a5\u7d9a\u304b\u3089\u3084\u308a\u76f4\u3057\u3001\u2026(\u4ee5\u4e0b\u30eb\u30fc\u30d7)\u300d\u3068\u3044\u3046\u3088\u3046\u306a\u4e8b\u614b\u304c\u767a\u751f\u3059\u308b\u3068\u3001\u30b9\u30de\u30db\u306e\u96fb\u6c60\u306e\u6d88\u8017\u306e\u539f\u56e0\u306b\u306a\u308b\u3060\u3051\u306a\u306e\u3067\u3001\u4e0a\u8a18\u306e\u3088\u3046\u306a\u4e8b\u614b\u306b\u9665\u308b\u306e\u306f\u3067\u304d\u308b\u3060\u3051\u306a\u3057\u306b\u3057\u305f\u3044\u308f\u3051\u3067\u3059\u3002\u3055\u3089\u306b\u30b5\u30fc\u30d0\u306bIPv6\u30a2\u30c9\u30ec\u30b9\u304c\u5272\u308a\u5f53\u3066\u3089\u308c\u3066\u3044\u305f\u308a\u3001\u81ea\u5b85\u306eLAN\u4e0a\u306ePC\u306b\u3082IPv6\u30a2\u30c9\u30ec\u30b9\u304c\u5272\u308a\u5f53\u3066\u3089\u308c\u3066\u3044\u308b\u3068\u3001\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u306b\u8a18\u9332\u3055\u308c\u3066\u3044\u308bIPv6\u30a2\u30c9\u30ec\u30b9\u306e\u3046\u3061\u306e\u4e00\u90e8\u306b\u3064\u3044\u3066\u3082\u81ea\u5206\u304c\u30a2\u30af\u30bb\u30b9\u3057\u305f\u60c5\u5831\u3068\u307f\u306a\u3057\u3066\u8a2d\u5b9a\u3092\u884c\u3046\u5fc5\u8981\u304c\u51fa\u3066\u304d\u307e\u3059\u3002<\/p>\n<h2>\u3053\u3053\u304b\u3089\u304c\u3001\u672c\u984c\u3067\u3059\u3002<\/h2>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u524d\u7f6e\u304d\u304c\u9577\u304f\u306a\u308a\u307e\u3057\u305f\u304c\u3001\u672c\u8a18\u4e8b\u3067\u306fApache httpd(v2.4)\u3067\u7279\u5b9a\u306e\u7bc4\u56f2\u306eIPv6\u30a2\u30c9\u30ec\u30b9\u304b\u3089\u306eHTTPS\u63a5\u7d9a\u306b\u3088\u308b\u30a2\u30af\u30bb\u30b9\u3092\u5225\u306e\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u306b\u4fdd\u5b58\u3059\u308b\u3088\u3046\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u66f8\u304d\u307e\u3059\u3002<\/p>\n<h3>\u8a2d\u5b9a\u306e\u65b9\u6cd5<\/h3>\n<p>\u4ee5\u4e0b\u306e\u624b\u9806\u3067ssl.conf\u3092\u7de8\u96c6\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<ol>\n<li>\u4ee5\u4e0b\u306e\u8a2d\u5b9a\u3092ssl.conf\u306eVirtualHost\u306e\u76f4\u5f8c\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002\u3059\u308b\u3068abcd:efgh:jikl:mnop::\/64\u3068\u3044\u3046\u30a2\u30c9\u30ec\u30b9\u304b\u3089\u306e\u30a2\u30af\u30bb\u30b9\u304c\u3042\u3063\u305f\u5834\u5408\u306b\u74b0\u5883\u5909\u6570log_from_local\u304c\u30bb\u30c3\u30c8\u3055\u308c\u307e\u3059\u3002\n<div class=\"code\">SetEnvIf Remote_Addr &#8220;^abcd:efgh:jikl:mnop:&#8221; log_from_local<\/div>\n<\/li>\n<li>HTTPS\u63a5\u7d9a\u306b\u3088\u308b\u30a2\u30af\u30bb\u30b9\u3092\u8a18\u9332\u3059\u308b\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb(httpd\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u8a2d\u5b9a\u3067\u306fssl_access_log\u3067\u3059\u304c\u3001\u7570\u306a\u308b\u5834\u5408\u306b\u306f\u9069\u5b9c\u8aad\u307f\u66ff\u3048\u3066\u304f\u3060\u3055\u3044\u3002)\u3092\u8a2d\u5b9a\u3059\u308b\u884c\u3092\u63a2\u3057\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u66f4\u3059\u308b\u3002\u306a\u304a\u3001ssl.conf\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u8a2d\u5b9a\u3067\u306fTransferLog\u304c\u4f7f\u7528\u3055\u308c\u3066\u3044\u308b\u304c\u3001\u305d\u306e\u307e\u307e\u3060\u3068\u74b0\u5883\u5909\u6570\u306e\u8a2d\u5b9a\u3092\u53cd\u6620\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u306a\u3044\u306e\u3067\u3001CustomLog\u3092\u4f7f\u7528\u3059\u308b\u3088\u3046\u306b\u5909\u66f4\u3057\u3066\u3044\u307e\u3059\u3002\n<div class=\"code\">LogFormat &#8220;%h %l %u %t \\&#8221;%r\\&#8221; %&gt;s %b \\&#8221;%{Referer}i\\&#8221; \\&#8221;%{User-agent}i\\&#8221;&#8221; pandanote_combined<br \/>\nCustomLog \/var\/log\/httpd\/ssl_access_log pandanote_combined env=!log_from_local<br \/>\nCustomLog \/var\/log\/httpd\/ssl_access_log_local pandanote_combined env=log_from_local<\/div>\n<p>&nbsp;<br \/>\n\u624b\u98061\u306e\u8a2d\u5b9a\u3068\u5408\u308f\u305b\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308c\u3070OK\u3067\u3059\u3002<\/p>\n<div class=\"code\">SetEnvIf Remote_Addr &#8220;^abcd:efgh:jikl:mnop:&#8221; log_from_local<\/p>\n<p># \u4e2d\u7565<\/p>\n<p>LogFormat &#8220;%h %l %u %t \\&#8221;%r\\&#8221; %&gt;s %b \\&#8221;%{Referer}i\\&#8221; \\&#8221;%{User-agent}i\\&#8221;&#8221; pandanote_combined<br \/>\nCustomLog \/var\/log\/httpd\/ssl_access_log pandanote_combined env=!log_from_local<br \/>\nCustomLog \/var\/log\/httpd\/ssl_access_local_log pandanote_combined env=log_from_local<\/p><\/div>\n<\/li>\n<li>httpd\u3092\u518d\u8d77\u52d5\u3059\u308b\u3002<\/li>\n<li>\/var\/log\/httpd\/ssl_access_local_log\u304c\u4f5c\u6210\u3055\u308c\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u78ba\u8a8d\u3059\u308b\u3002<\/li>\n<\/ol>\n<h3>\u5225\u306e\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u306b\u8a18\u9332\u3057\u305f\u3044IP\u30a2\u30c9\u30ec\u30b9\u306e\u7bc4\u56f2\u304c\u8907\u6570\u3042\u308b\u5834\u5408<\/h3>\n<p>\u4e0a\u8a18\u306eSetEnvIf\u306eIP\u30a2\u30c9\u30ec\u30b9\u306e\u8a2d\u5b9a\u306f\u6b63\u898f\u8868\u73fe\u306b\u3088\u308b\u8a2d\u5b9a\u306a\u306e\u3067\u3001\u5225\u306e\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u306b\u8a18\u9332\u3057\u305f\u3044IP\u30a2\u30c9\u30ec\u30b9\u306e\u7bc4\u56f2\u304c2\u500b\u3042\u308b\u5834\u5408\u306b\u306f\u3001\u4e0a\u8a18\u306e\u624b\u98061\u306e<\/p>\n<div class=\"code\">SetEnvIf Remote_Addr &#8220;^abcd:efgh:jikl:mnop:&#8221; log_from_local<\/div>\n<p>&nbsp;<br \/>\n\u3092<\/p>\n<div class=\"code\">SetEnvIf Remote_Addr &#8220;^(abcd:efgh:jikl:mnop:|zyxw:pqrs:vuts:rqpo:)&#8221; log_from_local<\/div>\n<p>&nbsp;<br \/>\n\u306b\u5909\u66f4\u3059\u308b\u3068\u3001abcd:efgh:jikl:mnop::\/64\u306b\u52a0\u3048\u3066\u3001zyxw:pqrs:vuts:rqpo::\/64\u3068\u3044\u3046\u30a2\u30c9\u30ec\u30b9\u304b\u3089\u306e\u30a2\u30af\u30bb\u30b9\u304c\u3042\u3063\u305f\u5834\u5408\u306b\u3082\u74b0\u5883\u5909\u6570log_from_local\u304c\u30bb\u30c3\u30c8\u3055\u308c\u307e\u3059\u3002\u540c\u69d8\u306bIP\u30a2\u30c9\u30ec\u30b9\u306e\u7bc4\u56f2\u304c\\(n\\)\u500b\u5b58\u5728\u3059\u308b\u5834\u5408\u306b\u306f\u3001\u305d\u306e\u7bc4\u56f2\u3092\u4e0a\u8a18\u306eRemote_Addr\u306e\u62ec\u5f27\u5185\u306b&#8217;|&#8217;\u3067\u3064\u306a\u3052\u3066\u66f8\u3051\u3070OK\u3067\u3059\u3002<\/p>\n<h3>\u30cf\u30de\u308a\u3069\u3053\u308d<\/h3>\n<p>\u624b\u98062\u3067\u3082\u66f8\u304d\u307e\u3057\u305f\u304c\u3001TransferLog\u306f\u74b0\u5883\u5909\u6570\u3092\u8a2d\u5b9a\u3067\u304d\u306a\u3044\u305f\u3081\u3001\u5358\u7d14\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a2d\u5b9a\u3059\u308b\u3068httpd\u304c\u8d77\u52d5\u3067\u304d\u306a\u304f\u306a\u3063\u3066\u3001\u304b\u306a\u308a\u7126\u308a\u307e\u3059\u3002<\/p>\n<div class=\"code\"># \u8aa4\u3063\u305f\u8a2d\u5b9a\u3002Don&#8217;t use!!<br \/>\nTransferLog \/var\/log\/httpd\/ssl_access_log env=!log_from_local<\/div>\n<p>\u3053\u306e\u8a18\u4e8b\u306f\u4ee5\u4e0a\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u307e\u305a\u3001\u524d\u7f6e\u304d\u3002 \u500b\u4eba\u7684\u306b\u30d6\u30ed\u30b0\u30b5\u30a4\u30c8\u306e\u3088\u3046\u306a\u3082\u306e\u304c\u7a3c\u50cd\u3057\u3066\u3044\u308b\u30b5\u30fc\u30d0\u3092\u7ba1\u7406\u3057\u3066\u3044\u308b\u3068\u3001\u5916\u51fa\u5148\u304b\u3089\u3067\u3082\u30b5\u30a4\u30c8\u306e\u72b6\u6cc1\u3092\u78ba\u8a8d\u3057\u305f\u3044\u3053\u3068\u304c\u304b\u306a\u308a\u983b\u7e41\u306b\u3042\u308a\u307e\u3059\u3002\u305d\u3093\u306a\u3068\u304d\u306bPC\u304c\u4f7f\u3048\u306a\u3044\u72b6\u6cc1\u3084\u53d6\u308a\u51fa\u3059\u306e\u304c\u96e3\u3057\u3044\u72b6\u6cc1\u3060\u3063\u305f\u308a\u3067\u30b9\u30de\u30db\u3057\u304b\u4f7f\u3048\u306a\u3044\u72b6\u6cc1\u3060\u3063\u305f\u308a\u3059\u308b\u3068\u3001\u3067\u304d\u308c\u3070\u3042\u307e\u308a\u4f59\u8a08\u306a\u60c5\u5831\u306f\u8868\u793a\u305b\u305a\u5fc5\u8981\u306a\u60c5\u5831\u3060\u3051\u53d6\u5f97\u3057\u305f\u3044\u3082\u306e\u3067\u3059\u3002 \u300c\u305d\u3093\u306a\u3068\u304d\u306b\u3069\u3046\u3084\u3063\u3066\u30b9\u30de\u30db\u304b\u3089Web\u30b5\u30fc\u30d0\u306e\u30b7\u30a7\u30eb\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u306e?\u300d\u3068\u2026 <span class=\"read-more\"><a href=\"https:\/\/pandanote.info\/?p=151\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-151","post","type-post","status-publish","format-standard","hentry","category-website-2"],"_links":{"self":[{"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/posts\/151","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pandanote.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=151"}],"version-history":[{"count":14,"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/posts\/151\/revisions"}],"predecessor-version":[{"id":9320,"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/posts\/151\/revisions\/9320"}],"wp:attachment":[{"href":"https:\/\/pandanote.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=151"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pandanote.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=151"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pandanote.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=151"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}