{"id":12257,"date":"2026-05-24T10:28:44","date_gmt":"2026-05-24T01:28:44","guid":{"rendered":"https:\/\/arakoki70.com\/?p=12257"},"modified":"2026-05-25T16:43:00","modified_gmt":"2026-05-25T07:43:00","slug":"web%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc-%e3%82%ad%e3%83%a3%e3%83%83%e3%82%b7%e3%83%a5%e3%81%ae%e3%80%90hit%e3%80%91%e7%8e%87%e5%90%91%e4%b8%8a%e3%81%ab%e8%b3%87%e3%81%99%e3%82%8b-%e3%82%b3%e3%83%9e","status":"publish","type":"post","link":"https:\/\/arakoki70.com\/?p=12257","title":{"rendered":"Web\u30b5\u30fc\u30d0\u30fc \u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u3010HIT\u3011\u7387\u5411\u4e0a\u306b\u8cc7\u3059\u308b \u30b3\u30de\u30f3\u30c9\u3068\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8"},"content":{"rendered":"<div style=\"background: #f5f5f5; padding: 10px; border: 2px solid #800000; text-align: center; box-shadow: 5px 5px 5px #aaa; font-size: 16px;\"><span style=\"font-size: 14pt;\"><strong><span style=\"font-size: 12pt;\">Nginx + PHP + WordPress \u30b5\u30fc\u30d0\u30fc\u306e\u7ba1\u7406<\/span><br \/>\r\nproxy_cache + fastcgi_cache<br \/>\r\n\u30ad\u30e3\u30c3\u30b7\u30e5\u306e \u3010HIT\u3011\u7387\u5411\u4e0a \u30b3\u30de\u30f3\u30c9\u3068\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8<\/strong><\/span><\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u3092\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u306b\u914d\u7f6e\u3057\u3001\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u306eWeb\u30b5\u30fc\u30d0\u30fc\u3078\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u4e2d\u7d99\u3059\u308b\u69cb\u6210\u3067\u306f\u3001\u5404\u30b5\u30fc\u30d0\u30fc\u304c\u4fdd\u6301\u3059\u308b\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u3067\u3001Web\u30b5\u30fc\u30d0\u30fc\u306e\u51e6\u7406\u8ca0\u8377\u3092\u8efd\u6e1b\u3057\u3001\u4e14\u3064\u3001\u30e6\u30fc\u30b6\u30fc\u3078\u306e\u5fdc\u7b54\u901f\u5ea6\u304c\u5411\u4e0a\u3067\u304d\u308b\u3002<br \/>\r\n\u4f46\u3057\u3001\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u6700\u5927\u5316\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u30d2\u30c3\u30c8\u7387\u3092\u9ad8\u3081\u308b\u3053\u3068\u304c\u91cd\u8981\u3068\u306a\u308b\u3002<\/div>\r\n<div>\u00a0<\/div>\r\n<div><a href=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2026\/05\/cache-hitrate_0011.png\" data-rel=\"lightbox-gallery-8frgOvxE\" data-rl_title=\"cache-hitrate_0011\" data-rl_caption=\"\" title=\"cache-hitrate_0011\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12259\" src=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2026\/05\/cache-hitrate_0011.png\" alt=\"proxy \u3068 fastcgi \u306e\u300c\u30d1\u30bf\u30fc\u30f3\u5225\u300d\u30d2\u30c3\u30c8\u7387\" width=\"800\" height=\"456\" srcset=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2026\/05\/cache-hitrate_0011.png 800w, https:\/\/arakoki70.com\/wp-content\/uploads\/2026\/05\/cache-hitrate_0011-100x57.png 100w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/div>\r\n<div style=\"text-align: center;\"><span style=\"font-size: 10pt;\">proxy \u3068 fastcgi \u306e\u300c\u30d1\u30bf\u30fc\u30f3\u5225\u300d\u30d2\u30c3\u30c8\u7387\u3002\uff08\u30d2\u30c3\u30c8\u7387\u3092\u6539\u5584\u3059\u308b\u524d\u306e\u72b6\u614b\uff09<\/span><\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u4ee5\u4e0b\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u72b6\u614b\u3092\u8abf\u67fb\/\u5206\u6790\u3059\u308b\u305f\u3081\u306e\u300c<span style=\"background: linear-gradient(transparent 60%,greenyellow 60%);\"><strong>\u30b3\u30de\u30f3\u30c9\u00a0<\/strong>\u3068\u00a0<strong>\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8<\/strong>\u300d<\/span>\u3092\u3001\u4f7f\u7528\u3059\u308b\u5c40\u9762\u306b\u5408\u308f\u305b\u3001\u4e8b\u4f8b\u3068\u5171\u306b\u8a18\u8f09\u3057\u305f\u3002<\/div>\r\n<div><!--more--><\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u00a0<\/div>\r\n<div>\t<p>&nbsp;<\/p>\n\t<div align=\"center\" style=\"font-size:8pt;\">\u30b9\u30dd\u30f3\u30b5\u30fc \u30ea\u30f3\u30af<br \/>\n<!-- \t<script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script> -->\n\t<!-- \u8a18\u4e8b\u30fb\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6-7 -->\n\t<ins class=\"adsbygoogle\"\n     style=\"display:block\"\n     data-ad-client=\"ca-pub-3816629014893825\"\n     data-ad-slot=\"1428770894\"\n     data-ad-format=\"auto\"\n     data-full-width-responsive=\"true\"><\/ins>\n\t<script>\n\t(adsbygoogle = window.adsbygoogle || []).push({});\n\t<\/script>\n\t<amp-ad width=\"100vw\" height=\"320\"\n     type=\"adsense\"\n     data-ad-client=\"ca-pub-3816629014893825\"\n     data-ad-slot=\"1428770894\"\n     data-auto-format=\"rspv\"\n     data-full-width=\"\">\n\t <div overflow=\"\"><\/div>\n\t<\/amp-ad>\n\t<\/div>\n\t<p>&nbsp;<\/p>\n<\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u00a0<\/div>\r\n<div style=\"border: 1px solid #c0c0c0; padding: 7px; background: #f5f5f5; border-radius: 8px; position: relative; top: 0px; font-family: Arial, Helvetica, sans-serif; font-size: 16px;\">\r\n<div><strong><span style=\"font-size: 14pt;\">\u3000\u76ee\u3000\u6b21<\/span><\/strong><\/div>\r\n<div style=\"margin-left: 20pt; line-height: 200%;\"><span style=\"color: magenta;\">1.\u3000<\/span><a href=\"#title1\"><strong>\u74b0\u5883\u60c5\u5831<\/strong><\/a><br \/>\r\n<span style=\"color: magenta;\">2.\u3000<\/span><a href=\"#title2\"><strong>URL\u304b\u3089\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u72b6\u614b\u3092\u78ba\u8a8d\u3059\u308b\u30b3\u30de\u30f3\u30c9<\/strong><\/a><br \/>\r\n<span style=\"color: magenta;\">3.\u3000<\/span><a href=\"#title3\"><strong>\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u30d5\u30a1\u30a4\u30eb\u6570\u3068\u30c7\u30a3\u30b9\u30af\u306e\u4f7f\u7528\u91cf\u3092\u78ba\u8a8d\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8<\/strong><\/a><br \/>\r\n<span style=\"color: magenta;\">4.\u3000<\/span><a href=\"#title4\"><strong>\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u30d2\u30c3\u30c8\u7387\u3092\u96c6\u8a08\u3059\u308b\u305f\u3081\u306e\u30a2\u30af\u30bb\u30b9\u30ed\u30b0<\/strong><\/a><br \/>\r\n<span style=\"color: magenta;\">5.\u3000<\/span><a href=\"#title5\"><strong>\u30ad\u30e3\u30c3\u30b7\u30e5\u30d2\u30c3\u30c8\u7387\u3092 proxy\u3068fastcgi\u306e\u7d44\u5408\u305b\u3067\u96c6\u8a08\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8<\/strong><\/a><br \/>\r\n<span style=\"color: magenta;\">6.\u3000<\/span><a href=\"#title6\"><strong>\u300c\u30d2\u30c3\u30c8\u7387\u30d1\u30bf\u30fc\u30f3\u300d\u3067\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u3092\u62bd\u51fa\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8<\/strong><\/a><br \/>\r\n<span style=\"color: magenta;\">7.\u3000<\/span><a href=\"#title7\"><strong>\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u3010HIT\u3011\u7387\u5411\u4e0a\u5bfe\u7b56\uff0d\u4e8b\u4f8b<\/strong><\/a><\/div>\r\n<\/div>\r\n<div>\u00a0<\/div>\r\n<div id=\"title1\">\u00a0<\/div>\r\n<div>\u00a0<\/div>\r\n<div style=\"border: 1px solid #800000; padding: 5px 10px 3px 10px; background: #c5ff88;\"><strong>1. \u74b0\u5883\u60c5\u5831<\/strong><\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u30b5\u30fc\u30d0\u30fc\u306f\u5168\u3066 Raspberry Pi 4 Model B \u3067\u3001\u30b7\u30b9\u30c6\u30e0\u30c9\u30e9\u30a4\u30d6\u306b\u306fSSD\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u3002<br \/>\r\n<a href=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2024\/12\/fastcgi-cache_0011.png\" data-rel=\"lightbox-gallery-8frgOvxE\" data-rl_title=\"fastcgi-cache_0011\" data-rl_caption=\"\" title=\"fastcgi-cache_0011\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8540\" src=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2024\/12\/fastcgi-cache_0011.png\" alt=\"\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u306b Reverse Proxy Server \u3092\u7acb\u3066\u3001\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u306bWeb\u30b5\u30fc\u30d0\u30fc\u3092\u914d\u7f6e\u3059\u308b\u69cb\u6210\u306b\u3057\u3066\u3044\u308b\" width=\"800\" height=\"314\" \/><\/a><\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u306f Nginx + PHP \u3067\u3001\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u306eWeb\u30b5\u30fc\u30d0\u30fc\u3067\u306f\u300cWordPress\u300d\u304c\u7a3c\u50cd\u3057\u3066\u3044\u308b\u3002<\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u306e \u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u30b5\u30fc\u30d0\u30fc\u3067 <strong><span style=\"background: linear-gradient(transparent 60%,yellow 60%);\">proxy_cache<\/span><\/strong> \u3092\u8a2d\u5b9a\u3057\u3001\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u306eWeb\u30b5\u30fc\u30d0\u30fc\u3067\u306f <span style=\"background: linear-gradient(transparent 60%,greenyellow 60%);\"><strong>fastcgi_cache<\/strong><\/span> \u304c\u4f7f\u308f\u308c\u308b\u8a2d\u5b9a\u3068\u306a\u3063\u3066\u3044\u308b\u3002<\/div>\r\n<div>\u00a0<\/div>\r\n<div>SSD\u306e\u72b6\u614b\u3092\u78ba\u8a8d\u3059\u308b\u30b3\u30de\u30f3\u30c9\u3002<\/div>\r\n<pre class=\"code\"><code># SSD\u306e\u72b6\u614b\u78ba\u8a8d\u30b3\u30de\u30f3\u30c9\r\nsudo smartctl -a \/dev\/sda\r\nsudo smartctl -a \/dev\/sda 2&gt;\/dev\/null | grep -E \"Device Model|Rotation Rate|SSD\"\r\n\r\n$ sudo smartctl -a \/dev\/sda 2&gt;\/dev\/null | grep -E \"Device Model|Rotation Rate|SSD\"\r\nModel Family:     Samsung based SSDs\r\nDevice Model:     Samsung SSD 860 EVO 250GB\r\nRotation Rate:    Solid State Device<\/code><\/pre>\r\n<div>\u00a0<\/div>\r\n<div>\u00a0<\/div>\r\n<div style=\"border: 1px solid #000000; padding: 3px 5px 3px 10px; color: #ffffff; background: #191970;\"><strong>\u2705 proxy_cache\uff1aSSD\u306b\u4f5c\u6210<\/strong><\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u5143\u306f tmpfs \u306b\u3057\u3066\u3044\u305f\u304c\u3001\u5bb9\u91cf\u4e0d\u8db3\u304c\u5224\u660e\u3057\u305f\u70ba SSD \u306b\u5909\u66f4\u3002<\/div>\r\n<pre class=\"code\"><code># SSD\u306b\u30ad\u30e3\u30c3\u30b7\u30e5\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\r\nsudo mkdir -p \/var\/cache\/nginx_disk\/arakoki70\r\n\r\n# \u30aa\u30fc\u30ca\u30fc\u8a2d\u5b9a\r\nsudo chown -R www-data:www-data \/var\/cache\/nginx_disk\/\r\n\r\n# nginx.conf \u306e\u8a2d\u5b9a\u3092\u5909\u66f4\uff08SSD\u306a\u306e\u3067max_size\u3092\u5927\u304d\u304f\u53d6\u308c\u308b\uff09\r\nproxy_cache_path \/var\/cache\/nginx_disk\/arakoki70 levels=1:2 keys_zone=arakoki70:10m max_size=10g inactive=30d use_temp_path=off;<\/code><\/pre>\r\n<div>\u00a0<\/div>\r\n<div>\u00a0<\/div>\r\n<div style=\"border: 1px solid #000000; padding: 3px 5px 3px 10px; color: #ffffff; background: #191970;\"><strong>\u2705 fastcgi_cache\uff1aSSD\u306b\u4f5c\u6210<\/strong><\/div>\r\n<div>\u00a0<\/div>\r\n<pre class=\"code\"><code># SSD\u306b\u30ad\u30e3\u30c3\u30b7\u30e5\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\r\nsudo mkdir -p \/var\/cache\/nginx_disk\/farakoki70\r\n\r\n# \u30aa\u30fc\u30ca\u30fc\u8a2d\u5b9a\r\nsudo chown -R www-data:www-data \/var\/cache\/nginx_disk\/\r\n\r\n# nginx.conf \u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u30d1\u30b9\u3092\u5909\u66f4\r\nfastcgi_cache_path \/var\/cache\/nginx_disk\/farakoki70 levels=1:2 keys_zone=farakoki70:10m max_size=10g inactive=30d use_temp_path=off;<\/code><\/pre>\r\n<div>\u00a0<\/div>\r\n<div id=\"title2\">\u00a0<\/div>\r\n<div>\u00a0<\/div>\r\n<div style=\"border: 1px solid #800000; padding: 5px 10px 3px 10px; background: #c5ff88;\"><strong>2. URL\u304b\u3089\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u72b6\u614b\u3092\u78ba\u8a8d\u3059\u308b\u30b3\u30de\u30f3\u30c9<\/strong><\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u30ad\u30e3\u30c3\u30b7\u30e5\u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u306f\u3001URL\u304b\u3089\u7c21\u5358\u306b\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u308b\u3002<\/div>\r\n<div>\u4ee5\u4e0b\u3001URL\u304b\u3089\u78ba\u8a8d\u3059\u308b\u30b3\u30de\u30f3\u30c9\u306e\u30b5\u30f3\u30d7\u30eb\u3092\u5217\u6319\u3002<\/div>\r\n<div>\u00a0<\/div>\r\n<pre class=\"code\"><code># \u30d8\u30c3\u30c0\u30fc\u5168\u4f53\u3092\u898b\u308b\r\n# \u5b9f\u884c\u7d50\u679c\u30b5\u30f3\u30d7\u30eb\r\n$ curl -I https:\/\/arakoki70.com\/\r\nHTTP\/2 200 \r\nserver: nginx\r\ndate: Sat, 23 May 2026 11:53:22 GMT\r\ncontent-type: text\/html; charset=UTF-8\r\nvary: Accept-Encoding\r\nvary: Accept-Encoding\r\nlink: &lt;https:\/\/arakoki70.com\/index.php?rest_route=\/&gt;; rel=\"https:\/\/api.w.org\/\"\r\nx-fastcgi-cache: HIT\r\nx-proxy-cache: HIT\r\n\r\n# \u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u72b6\u614b\u3092\u78ba\u8a8d\u3059\u308b\u30b3\u30de\u30f3\u30c9\r\n# \u5b9f\u884c\u7d50\u679c\u30b5\u30f3\u30d7\u30eb\r\n$ curl -I https:\/\/arakoki70.com\/ | grep -i \"cache\"\r\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\r\n                                 Dload  Upload   Total   Spent    Left  Speed\r\n  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0\r\nx-fastcgi-cache: HIT\r\nx-proxy-cache: HIT\r\n\r\n# \u7279\u5b9a\u30da\u30fc\u30b8\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u72b6\u6cc1\u3092\u78ba\u8a8d\u3059\u308b\u30b3\u30de\u30f3\u30c9\r\ncurl -I https:\/\/arakoki70.com\/ | grep -i \"cache\"\r\ncurl -I https:\/\/arakoki70.com\/ | grep x-proxy-cache\r\ncurl -I https:\/\/arakoki70.com\/ | grep x-fastcgi-cache\r\n\r\n# \u5b9f\u884c\u7d50\u679c\u30b5\u30f3\u30d7\u30eb\r\n$ curl -I https:\/\/arakoki70.com\/?p=12022\r\nHTTP\/2 200 \r\nserver: nginx\r\ndate: Sat, 23 May 2026 11:59:18 GMT\r\ncontent-type: text\/html; charset=UTF-8\r\nvary: Accept-Encoding\r\nvary: Accept-Encoding\r\nlink: &lt;https:\/\/arakoki70.com\/index.php?rest_route=\/&gt;; rel=\"https:\/\/api.w.org\/\"\r\nlink: &lt;https:\/\/arakoki70.com\/index.php?rest_route=\/wp\/v2\/posts\/12022&gt;; rel=\"alternate\"; title=\"JSON\"; type=\"application\/json\"\r\nlink: &lt;https:\/\/arakoki70.com\/?p=12022&gt;; rel=shortlink\r\nx-fastcgi-cache: HIT\r\nx-proxy-cache: HIT\r\n\r\n# \u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u30a2\u30af\u30bb\u30b9\u304c\u30ad\u30e3\u30c3\u30b7\u30e5\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\r\ncurl -I https:\/\/arakoki70.com\/wp-content\/uploads\/2019\/10\/clicksuu_0012.jpg \\\r\n  | grep -i cache\r\n\r\n# \u5b9f\u884c\u7d50\u679c\u30b5\u30f3\u30d7\u30eb\r\n$ curl -I https:\/\/arakoki70.com\/wp-content\/uploads\/2019\/10\/clicksuu_0012.jpg   | grep -i cache\r\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\r\n                                 Dload  Upload   Total   Spent    Left  Speed\r\n  0 36779    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0\r\ncache-control: max-age=2592000\r\ncache-control: public, max-age=2592000, no-transform\r\nx-proxy-cache: HIT<\/code><\/pre>\r\n<div>\u00a0<\/div>\r\n<div id=\"title3\">\u00a0<\/div>\r\n<div>\u00a0<\/div>\r\n<div style=\"border: 1px solid #800000; padding: 5px 10px 3px 10px; background: #c5ff88;\"><strong>3. \u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u30d5\u30a1\u30a4\u30eb\u6570\u3068\u30c7\u30a3\u30b9\u30af\u306e\u4f7f\u7528\u91cf\u3092\u78ba\u8a8d\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8<\/strong><\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u3069\u306e\u7a0b\u5ea6\u30ad\u30e3\u30c3\u30b7\u30e5\u3055\u308c\u3066\u3044\u308b\u304b\u3001<span style=\"background: linear-gradient(transparent 60%,greenyellow 60%);\">\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u30d5\u30a1\u30a4\u30eb\u4ef6\u6570\u3068\u30c7\u30a3\u30b9\u30af\u306e\u4f7f\u7528\u91cf<\/span>\u3092\u78ba\u8a8d\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u3002<\/div>\r\n<div>\u00a0<\/div>\r\n<div>\ud83d\udd39 proxy_cache \u306e\u30d5\u30a1\u30a4\u30eb\u6570\u3068\u30c7\u30a3\u30b9\u30af\u306e\u4f7f\u7528\u91cf\u3092\u8868\u793a\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u3002<\/div>\r\n<pre class=\"code\"><code>#!\/bin\/bash\r\n# \u5909\u6570\u306b\u65e5\u6642\u3092\u4ee3\u5165\r\nCURRENT_TIME=$(date \"+%Y-%m-%d %H:%M:%S\")\r\necho \"${CURRENT_TIME}\uff1aproxy_cache \u306e\u30d5\u30a1\u30a4\u30eb\u6570\u3068\u4f7f\u7528\u91cf\"\r\nfor site in arakan60 arakoki70 treksite; do\r\n    count=$(sudo find \/var\/cache\/nginx_disk\/$site -type f | wc -l)\r\n    size=$(sudo du -sh \/var\/cache\/nginx_disk\/$site | cut -f1)\r\n    echo \"$site : ${count}\u30d5\u30a1\u30a4\u30eb \/ ${size}\"\r\ndone\r\n\r\n\uff03 \u30b9\u30af\u30ea\u30d7\u30c8\u306e\u767b\u9332\r\nsudo nano proxy-usage.sh\r\n\r\n\uff03 \u30b9\u30af\u30ea\u30d7\u30c8\u306b\u5b9f\u884c\u6a29\u9650\u3092\u4ed8\u4e0e\r\nsudo chmod +x proxy-usage.sh\r\n\r\n\uff03 \u30b9\u30af\u30ea\u30d7\u30c8\u306e\u5b9f\u884c\r\n.\/proxy-usage.sh\r\n\r\n# \u5b9f\u884c\u7d50\u679c\u30b5\u30f3\u30d7\u30eb\r\n$ .\/proxy-usage.sh \r\n2026-05-23 21:08:08\uff1aproxy_cache \u306e\u30d5\u30a1\u30a4\u30eb\u6570\u3068\u4f7f\u7528\u91cf\r\narakan60 : 23483\u30d5\u30a1\u30a4\u30eb \/ 1.9G\r\narakoki70 : 30864\u30d5\u30a1\u30a4\u30eb \/ 1.7G\r\ntreksite : 1015\u30d5\u30a1\u30a4\u30eb \/ 38M<\/code><\/pre>\r\n<div>\u00a0<\/div>\r\n<div id=\"title4\">\u00a0<\/div>\r\n<div>\u00a0<\/div>\r\n<div style=\"border: 1px solid #800000; padding: 5px 10px 3px 10px; background: #c5ff88;\"><strong>4. \u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u30d2\u30c3\u30c8\u7387\u3092\u96c6\u8a08\u3059\u308b\u305f\u3081\u306e\u30a2\u30af\u30bb\u30b9\u30ed\u30b0<\/strong><\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u30d2\u30c3\u30c8\u7387\u3092\u8abf\u3079\u308b\u305f\u3081\u306b\u3001\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u306b\u30ad\u30e3\u30c3\u30b7\u30e5\u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u51fa\u529b\u3059\u308b\u3002<\/div>\r\n<pre class=\"code\"><code># nginx \u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\r\nlog_format cache_log '$remote_addr \"$request\" $status '\r\n                 'proxy=$upstream_cache_status '\r\n                 'fastcgi=$sent_http_x_fastcgi_cache '\r\n                 '$time_local';\r\n\r\n# \u6700\u65b0\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u30923\u884c\u8868\u793a\u30b3\u30de\u30f3\u30c9\r\ntail -n 3 \/var\/log\/nginx\/cache_access.log\r\n\r\n# \u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u306e\u4f8b\r\n162.120.184.20 \"GET \/?p=10158 HTTP\/2.0\" 200 proxy=HIT fastcgi=HIT 23\/May\/2026:17:58:11 +0900<\/code><\/pre>\r\n<div>\u00a0<\/div>\r\n<div>\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u306e\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3068\u51fa\u529b\u3055\u308c\u305f\u30ed\u30b0\u306e\u5185\u5bb9\u306b\u3064\u3044\u3066\u306e\u76f8\u95a2\u3002<br \/>\r\n<a href=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2026\/05\/cache-hitrate_1011.png\" data-rel=\"lightbox-gallery-8frgOvxE\" data-rl_title=\"cache-hitrate_1011\" data-rl_caption=\"\" title=\"cache-hitrate_1011\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12261\" src=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2026\/05\/cache-hitrate_1011.png\" alt=\"\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u306e\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3068\u51fa\u529b\u3055\u308c\u305f\u30ed\u30b0\u306e\u5185\u5bb9\u306b\u3064\u3044\u3066\u306e\u76f8\u95a2\" width=\"1024\" height=\"140\" \/><\/a><\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u306e\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u5909\u6570\u3068\u5b9f\u969b\u306e\u30ed\u30b0\u51fa\u529b\u3068\u306e\u5bfe\u5fdc\u8868\u3002<br \/>\r\n<a href=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2026\/05\/cache-hitrate_1021.png\" data-rel=\"lightbox-gallery-8frgOvxE\" data-rl_title=\"cache-hitrate_1021\" data-rl_caption=\"\" title=\"cache-hitrate_1021\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12260\" src=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2026\/05\/cache-hitrate_1021.png\" alt=\"\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3068\u5b9f\u969b\u306e\u30ed\u30b0\u306e\u5bfe\u5fdc\u8868\" width=\"800\" height=\"451\" srcset=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2026\/05\/cache-hitrate_1021.png 800w, https:\/\/arakoki70.com\/wp-content\/uploads\/2026\/05\/cache-hitrate_1021-100x57.png 100w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u306e\u9805\u76ee\u306f\u300c\u30d5\u30a3\u30fc\u30eb\u30c9\u300d\u3068\u547c\u3070\u308c\u3001\u5148\u982d\u304b\u3089\u756a\u53f7\u304c\u4ed8\u3055\u308c\u300c$n\u300d\u3067\u53c2\u7167\u3067\u304d\u308b\uff08awk\u30b3\u30de\u30f3\u30c9\uff09\u3002<\/div>\r\n<div>\u00a0<\/div>\r\n<div id=\"title5\">\u00a0<\/div>\r\n<div>\u00a0<\/div>\r\n<div style=\"border: 1px solid #800000; padding: 5px 10px 3px 10px; background: #c5ff88;\"><strong>5. \u30ad\u30e3\u30c3\u30b7\u30e5\u30d2\u30c3\u30c8\u7387\u3092 proxy\u3068fastcgi\u306e\u7d44\u5408\u305b\u3067\u96c6\u8a08\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8<\/strong><\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u30ad\u30e3\u30c3\u30b7\u30e5\u30b9\u30c6\u30fc\u30bf\u30b9\u304c\u51fa\u529b\u3055\u308c\u305f\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u3092\u4f7f\u7528\u3057\u3001proxy \u3068 fastcgi \u306e\u7d44\u5408\u305b\u30d1\u30bf\u30fc\u30f3\u3067\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u30d2\u30c3\u30c8\u7387\u3092\u96c6\u8a08\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u3002\u96c6\u8a08\u3059\u308b\u904e\u53bb\u306e\u300c\u6642\u9593\u7bc4\u56f2\u300d\u3092\u6307\u5b9a\u53ef\u80fd\uff08\u30c7\u30d5\u30a9\u30eb\u30c8\u306f 1\u6642\u9593\uff09\u3002<\/div>\r\n<pre class=\"code\"><code>#!\/bin\/bash\r\nLOG=${1}\r\nHOURS=${2:-1}  # \u7b2c2\u5f15\u6570\u3067\u6642\u9593\u6307\u5b9a\u3001\u30c7\u30d5\u30a9\u30eb\u30c81\u6642\u9593\r\n\r\n# \u5f15\u6570\u30c1\u30a7\u30c3\u30af\r\nif [ -z \"$LOG\" ]; then\r\n    echo \"\u4f7f\u3044\u65b9: bash cache-hitrate_2.sh \/var\/log\/nginx\/cache_access.log [\u6642\u9593\u6570]\"\r\n    echo \"\u4f8b: bash cache-hitrate_2.sh \/var\/log\/nginx\/cache_access.log 1   # \u904e\u53bb1\u6642\u9593\"\r\n    echo \"\u4f8b: bash cache-hitrate_2.sh \/var\/log\/nginx\/cache_access.log 24  # \u904e\u53bb24\u6642\u9593\"\r\n    echo \"\u4f8b: bash cache-hitrate_2.sh \/var\/log\/nginx\/cache_access.log 0   # \u5168\u4ef6\"\r\n    exit 1\r\nfi\r\nif [ ! -f \"$LOG\" ]; then\r\n    echo \"\u30a8\u30e9\u30fc: \u30d5\u30a1\u30a4\u30eb\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093: $LOG\"\r\n    exit 1\r\nfi\r\n\r\n# \u96c6\u8a08\u5bfe\u8c61\u306e\u958b\u59cb\u6642\u523b\u3092\u7b97\u51fa\r\nif [ \"$HOURS\" -eq 0 ]; then\r\n    SINCE=\"\"\r\n    echo \"\u96c6\u8a08\u7bc4\u56f2: \u5168\u4ef6\"\r\nelse\r\n    SINCE=$(LC_ALL=C date -d \"${HOURS} hours ago\" \"+%d\/%b\/%Y:%H:%M:%S\")\r\n    echo \"\u96c6\u8a08\u7bc4\u56f2: \u904e\u53bb ${HOURS} \u6642\u9593 (${SINCE} JST \u4ee5\u964d)\"\r\nfi\r\n\r\nawk -v since=\"$SINCE\" '\r\nfunction parse_time(ts,    months, a) {\r\n    # \"17\/May\/2026:14:53:12\" \u2192 \"20260517145312\" \u306b\u5909\u63db\u3057\u3066\u6587\u5b57\u5217\u6bd4\u8f03\r\n    months[\"Jan\"]=\"01\"; months[\"Feb\"]=\"02\"; months[\"Mar\"]=\"03\"\r\n    months[\"Apr\"]=\"04\"; months[\"May\"]=\"05\"; months[\"Jun\"]=\"06\"\r\n    months[\"Jul\"]=\"07\"; months[\"Aug\"]=\"08\"; months[\"Sep\"]=\"09\"\r\n    months[\"Oct\"]=\"10\"; months[\"Nov\"]=\"11\"; months[\"Dec\"]=\"12\"\r\n    split(ts, a, \"[\/:]\")\r\n    return a[3] months[a[2]] sprintf(\"%02d\", a[1]) a[4] a[5] a[6]\r\n}\r\n{\r\n    # \u6642\u9593\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\r\n    if (since != \"\") {\r\n        ts = \"\"\r\n        for (i=1; i&lt;=NF; i++) {\r\n            # \"17\/May\/2026:14:53:12\" \u5f62\u5f0f\u3092\u691c\u51fa\uff08+0900 \u306e\u624b\u524d\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\uff09\r\n            if ($i ~ \/^[0-9]{2}\\\/[A-Za-z]{3}\\\/[0-9]{4}:[0-9]{2}:[0-9]{2}:[0-9]{2}$\/) {\r\n                ts = $i\r\n                break\r\n            }\r\n        }\r\n        if (ts == \"\") next\r\n        if (parse_time(ts) &lt; parse_time(since)) next\r\n    }\r\n\r\n    proxy = \"-\"\r\n    fastcgi = \"-\"\r\n    for (i=1; i&lt;=NF; i++) {\r\n        if ($i ~ \/^proxy=\/)   proxy   = substr($i, 7)\r\n        if ($i ~ \/^fastcgi=\/) fastcgi = substr($i, 9)\r\n    }\r\n    combo[proxy \"|\" fastcgi]++\r\n    total++\r\n}\r\nEND {\r\n    if (total == 0) {\r\n        print \"\\n\u8a72\u5f53\u3059\u308b\u30ed\u30b0\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002\\n\"\r\n        exit\r\n    }\r\n    printf \"\\n=== \u7dcf\u30a2\u30af\u30bb\u30b9\u6570: %d ===\\n\\n\", total\r\n    printf \"%-12s  %-12s  %8s  %8s\\n\", \"proxy_cache\", \"fastcgi_cache\", \"\u4ef6\u6570\", \"\u5272\u5408\"\r\n    printf \"%-12s  %-12s  %8s  %8s\\n\", \"------------\", \"-------------\", \"--------\", \"--------\"\r\n    n = asorti(combo, sorted)\r\n    for (i=1; i&lt;=n; i++) {\r\n        split(sorted[i], parts, \"|\")\r\n        printf \"%-12s  %-13s  %8d  %7.1f%%\\n\",\r\n            parts[1], parts[2], combo[sorted[i]], combo[sorted[i]]\/total*100\r\n    }\r\n    printf \"\\n\"\r\n}\r\n' \"$LOG\"\r\n\r\n\uff03 \u30b9\u30af\u30ea\u30d7\u30c8\u306e\u767b\u9332\r\nsudo nano cache-hitrate.sh\r\n\r\n\uff03 \u30b9\u30af\u30ea\u30d7\u30c8\u306b\u5b9f\u884c\u6a29\u9650\u3092\u4ed8\u4e0e\r\nsudo chmod +x cache-hitrate.sh\r\n\r\n\uff03 \u30b9\u30af\u30ea\u30d7\u30c8\u306e\u5b9f\u884c\uff08\u30c7\u30d5\u30a9\u30eb\u30c8\u904e\u53bb1\u6642\u9593\uff09\r\n.\/cache-hitrate.sh \/var\/log\/nginx\/cache_access.log\r\n\r\n# \u904e\u53bb3\u6642\u9593\r\n.\/cache-hitrate.sh \/var\/log\/nginx\/cache_access.log 3\r\n\r\n# \u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u5168\u4ef6\u3092\u5bfe\u8c61\r\n.\/cache-hitrate.sh \/var\/log\/nginx\/cache_access.log 0\r\n\r\n# \u904e\u53bb1\u6642\u9593\u3067\u306e\u96c6\u8a08\u30b5\u30f3\u30d7\u30eb\r\n$ .\/cache-hitrate_3.sh \/var\/log\/nginx\/cache_access.log 1\r\n\u96c6\u8a08\u7bc4\u56f2: \u904e\u53bb 1 \u6642\u9593 (24\/May\/2026:12:08:48 JST \u4ee5\u964d)\r\n\r\n=== \u7dcf\u30a2\u30af\u30bb\u30b9\u6570: 2088 ===\r\n\r\nproxy_cache   fastcgi_cache        \u4ef6\u6570        \u5272\u5408\r\n------------  -------------  --------  --------\r\n-             -                   280     13.4%\r\nBYPASS        -                     9      0.4%\r\nBYPASS        BYPASS                1      0.0%\r\nEXPIRED       EXPIRED               1      0.0%\r\nEXPIRED       HIT                   3      0.1%\r\nHIT           -                  1474     70.6%\r\nHIT           BYPASS                1      0.0%\r\nHIT           EXPIRED               2      0.1%\r\nHIT           HIT                 118      5.7%\r\nHIT           MISS                 14      0.7%\r\nMISS          -                   100      4.8%\r\nMISS          BYPASS               14      0.7%\r\nMISS          EXPIRED               4      0.2%\r\nMISS          HIT                  21      1.0%\r\nMISS          MISS                 45      2.2%\r\nSTALE         MISS                  1      0.0%<\/code><\/pre>\r\n<div>\u00a0<\/div>\r\n<div>\u2705 \u6d3b\u7528\u30dd\u30a4\u30f3\u30c8\u3002<\/div>\r\n<table style=\"height: 555px; width: 100%; border-color: #000000;\" border=\"1px\" width=\"100%\">\r\n<tbody>\r\n<tr style=\"border-color: #000000; background-color: #e3fcf8;\">\r\n<td style=\"width: 17.5862%; border-color: #000000; height: 29px; text-align: center;\" width=\"61\">proxy<\/td>\r\n<td style=\"width: 13.9655%; border-color: #000000; height: 29px; text-align: center;\" width=\"61\">fastcgi<\/td>\r\n<td style=\"width: 13.1034%; border-color: #000000; height: 29px; text-align: center;\" width=\"61\">\u4ef6\u6570<\/td>\r\n<td style=\"width: 13.1034%; border-color: #000000; height: 29px; text-align: center;\" width=\"61\">\u5272\u5408<\/td>\r\n<td style=\"width: 42.069%; border-color: #000000; height: 29px; text-align: center;\" width=\"245\">\u30b3\u30e1\u30f3\u30c8<\/td>\r\n<\/tr>\r\n<tr style=\"border-color: #000000;\">\r\n<td style=\"width: 17.5862%; border-color: #000000; height: 29px; text-align: center;\" width=\"61\">-<\/td>\r\n<td style=\"width: 13.9655%; border-color: #000000; height: 29px; text-align: center;\">-<\/td>\r\n<td style=\"width: 13.1034%; border-color: #000000; height: 29px; text-align: right;\">923<\/td>\r\n<td style=\"width: 13.1034%; border-color: #000000; height: 29px; text-align: right;\">8.8%<\/td>\r\n<td style=\"width: 42.069%; border-color: #000000; height: 29px;\">\u00a0<\/td>\r\n<\/tr>\r\n<tr style=\"border-color: #000000;\">\r\n<td style=\"width: 17.5862%; border-color: #000000; height: 59px; text-align: center;\">BYPASS\u00a0<\/td>\r\n<td style=\"width: 13.9655%; border-color: #000000; height: 59px; text-align: center;\">-<\/td>\r\n<td style=\"width: 13.1034%; border-color: #000000; height: 59px; text-align: right;\">9<\/td>\r\n<td style=\"width: 13.1034%; border-color: #000000; height: 59px; text-align: right;\">0.1%<\/td>\r\n<td style=\"width: 42.069%; border-color: #000000; height: 59px;\">\u30ed\u30b0\u30a4\u30f3\u4e2d\u30e6\u30fc\u30b6\u30fc\u7b49\uff1a\u6b63\u5e38\u306a\u306e\u3067\u554f\u984c\u306a\u3057<\/td>\r\n<\/tr>\r\n<tr style=\"border-color: #000000;\">\r\n<td style=\"width: 17.5862%; border-color: #000000; height: 29px; text-align: center;\">BYPASS\u00a0<\/td>\r\n<td style=\"width: 13.9655%; border-color: #000000; height: 29px; text-align: center;\">BYPASS\u00a0<\/td>\r\n<td style=\"width: 13.1034%; border-color: #000000; height: 29px; text-align: right;\">2<\/td>\r\n<td style=\"width: 13.1034%; border-color: #000000; height: 29px; text-align: right;\">0.0%<\/td>\r\n<td style=\"width: 42.069%; border-color: #000000; height: 29px;\">\u00a0<\/td>\r\n<\/tr>\r\n<tr style=\"border-color: #000000;\">\r\n<td style=\"width: 17.5862%; border-color: #000000; height: 59px; text-align: center;\">HIT\u00a0<\/td>\r\n<td style=\"width: 13.9655%; border-color: #000000; height: 59px; text-align: center;\">-<\/td>\r\n<td style=\"width: 13.1034%; border-color: #000000; height: 59px; text-align: right;\">4,291<\/td>\r\n<td style=\"width: 13.1034%; border-color: #000000; height: 59px; text-align: right;\">40.8%<\/td>\r\n<td style=\"width: 42.069%; border-color: #000000; height: 59px;\">\u6700\u3082\u52b9\u7387\u7684\u306a\u72b6\u614b\uff1a\u3053\u306e\u30d1\u30bf\u30fc\u30f3\u304c\u591a\u3044\u307b\u3069\u7406\u60f3<\/td>\r\n<\/tr>\r\n<tr style=\"border-color: #000000;\">\r\n<td style=\"width: 17.5862%; border-color: #000000; height: 29px; text-align: center;\">HIT\u00a0<\/td>\r\n<td style=\"width: 13.9655%; border-color: #000000; height: 29px; text-align: center;\">BYPASS\u00a0<\/td>\r\n<td style=\"width: 13.1034%; border-color: #000000; height: 29px; text-align: right;\">4<\/td>\r\n<td style=\"width: 13.1034%; border-color: #000000; height: 29px; text-align: right;\">0.0%<\/td>\r\n<td style=\"width: 42.069%; border-color: #000000; height: 29px;\">\u00a0<\/td>\r\n<\/tr>\r\n<tr style=\"border-color: #000000;\">\r\n<td style=\"width: 17.5862%; border-color: #000000; height: 29px; text-align: center;\">HIT\u00a0<\/td>\r\n<td style=\"width: 13.9655%; border-color: #000000; height: 29px; text-align: center;\">EXPIRED\u00a0<\/td>\r\n<td style=\"width: 13.1034%; border-color: #000000; height: 29px; text-align: right;\">9<\/td>\r\n<td style=\"width: 13.1034%; border-color: #000000; height: 29px; text-align: right;\">0.1%<\/td>\r\n<td style=\"width: 42.069%; border-color: #000000; height: 29px;\">\u00a0<\/td>\r\n<\/tr>\r\n<tr style=\"border-color: #000000;\">\r\n<td style=\"width: 17.5862%; border-color: #000000; height: 29px; text-align: center;\">HIT\u00a0<\/td>\r\n<td style=\"width: 13.9655%; border-color: #000000; height: 29px; text-align: center;\">HIT\u00a0<\/td>\r\n<td style=\"width: 13.1034%; border-color: #000000; height: 29px; text-align: right;\">286<\/td>\r\n<td style=\"width: 13.1034%; border-color: #000000; height: 29px; text-align: right;\">2.7%<\/td>\r\n<td style=\"width: 42.069%; border-color: #000000; height: 29px;\">\u00a0<\/td>\r\n<\/tr>\r\n<tr style=\"border-color: #000000;\">\r\n<td style=\"width: 17.5862%; border-color: #000000; height: 29px; text-align: center;\">HIT\u00a0<\/td>\r\n<td style=\"width: 13.9655%; border-color: #000000; height: 29px; text-align: center;\">MISS\u00a0\u00a0<\/td>\r\n<td style=\"width: 13.1034%; border-color: #000000; height: 29px; text-align: right;\">11<\/td>\r\n<td style=\"width: 13.1034%; border-color: #000000; height: 29px; text-align: right;\">0.1%<\/td>\r\n<td style=\"width: 42.069%; border-color: #000000; height: 29px;\">\u00a0<\/td>\r\n<\/tr>\r\n<tr style=\"border-color: #000000;\">\r\n<td style=\"width: 17.5862%; border-color: #000000; height: 29px; text-align: center;\">MISS\u00a0\u00a0<\/td>\r\n<td style=\"width: 13.9655%; border-color: #000000; height: 29px; text-align: center;\">-<\/td>\r\n<td style=\"width: 13.1034%; border-color: #000000; height: 29px; text-align: right;\">3,843<\/td>\r\n<td style=\"width: 13.1034%; border-color: #000000; height: 29px; text-align: right;\">36.5%<\/td>\r\n<td style=\"width: 42.069%; border-color: #000000; height: 29px;\">\u00a0<\/td>\r\n<\/tr>\r\n<tr style=\"border-color: #000000;\">\r\n<td style=\"width: 17.5862%; border-color: #000000; height: 29px; text-align: center;\">MISS\u00a0\u00a0<\/td>\r\n<td style=\"width: 13.9655%; border-color: #000000; height: 29px; text-align: center;\">BYPASS\u00a0<\/td>\r\n<td style=\"width: 13.1034%; border-color: #000000; height: 29px; text-align: right;\">36<\/td>\r\n<td style=\"width: 13.1034%; border-color: #000000; height: 29px; text-align: right;\">0.3%<\/td>\r\n<td style=\"width: 42.069%; border-color: #000000; height: 29px;\">\u00a0<\/td>\r\n<\/tr>\r\n<tr style=\"border-color: #000000;\">\r\n<td style=\"width: 17.5862%; border-color: #000000; height: 29px; text-align: center;\">MISS\u00a0\u00a0<\/td>\r\n<td style=\"width: 13.9655%; border-color: #000000; height: 29px; text-align: center;\">EXPIRED\u00a0<\/td>\r\n<td style=\"width: 13.1034%; border-color: #000000; height: 29px; text-align: right;\">26<\/td>\r\n<td style=\"width: 13.1034%; border-color: #000000; height: 29px; text-align: right;\">0.2%<\/td>\r\n<td style=\"width: 42.069%; border-color: #000000; height: 29px;\">\u00a0<\/td>\r\n<\/tr>\r\n<tr style=\"border-color: #000000;\">\r\n<td style=\"width: 17.5862%; border-color: #000000; height: 59px; text-align: center;\">MISS\u00a0\u00a0<\/td>\r\n<td style=\"width: 13.9655%; border-color: #000000; height: 59px; text-align: center;\">HIT\u00a0<\/td>\r\n<td style=\"width: 13.1034%; border-color: #000000; height: 59px; text-align: right;\">875<\/td>\r\n<td style=\"width: 13.1034%; border-color: #000000; height: 59px; text-align: right;\">8.3%<\/td>\r\n<td style=\"width: 42.069%; border-color: #000000; height: 59px;\">proxy_cache\u304c\u6a5f\u80fd\u3057\u3066\u3044\u306a\u3044<\/td>\r\n<\/tr>\r\n<tr style=\"border-color: #000000;\">\r\n<td style=\"width: 17.5862%; border-color: #000000; height: 59px; text-align: center;\">MISS\u00a0\u00a0<\/td>\r\n<td style=\"width: 13.9655%; border-color: #000000; height: 59px; text-align: center;\">MISS\u00a0\u00a0<\/td>\r\n<td style=\"width: 13.1034%; border-color: #000000; height: 59px; text-align: right;\">208<\/td>\r\n<td style=\"width: 13.1034%; border-color: #000000; height: 59px; text-align: right;\">2.0%<\/td>\r\n<td style=\"width: 42.069%; border-color: #000000; height: 59px;\">\u4e21\u65b9\u30df\u30b9\u30fbPHP\u5b9f\u884c\uff1a\u30b5\u30fc\u30d0\u30fc\u8ca0\u8377\u304c\u9ad8\u3044\u30fb\u8981\u6ce8\u610f<\/td>\r\n<\/tr>\r\n<tr style=\"border-color: #000000;\">\r\n<td style=\"width: 17.5862%; border-color: #000000; height: 29px;\">\u00a0<\/td>\r\n<td style=\"width: 13.9655%; border-color: #000000; height: 29px;\">\u00a0<\/td>\r\n<td style=\"width: 13.1034%; border-color: #000000; height: 29px; text-align: right;\">10,523<\/td>\r\n<td style=\"width: 13.1034%; border-color: #000000; height: 29px; text-align: right;\">99.9%<\/td>\r\n<td style=\"width: 42.069%; border-color: #000000; height: 29px;\">\u00a0<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<div>\u00a0<\/div>\r\n<div>\ud83d\ude0a HIT \/ - \u306e\u5272\u5408\u304c\u9ad8\u3044\u72b6\u614b\u3092\u7dad\u6301\u3067\u304d\u3066\u3044\u308c\u3070\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u304c\u9806\u8abf\u306b\u6a5f\u80fd\u3057\u3066\u3044\u308b\u8a3c\u62e0\u3068\u306a\u308b\u3002<\/div>\r\n<div>\u00a0<\/div>\r\n<div id=\"title6\">\u00a0<\/div>\r\n<div>\u00a0<\/div>\r\n<div style=\"border: 1px solid #800000; padding: 5px 10px 3px 10px; background: #c5ff88;\"><strong>6. \u300c\u30d2\u30c3\u30c8\u7387\u30d1\u30bf\u30fc\u30f3\u300d\u3067\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u3092\u62bd\u51fa\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8<\/strong><\/div>\r\n<div>\u00a0<\/div>\r\n<div>\ud83d\udd0e \u4e0a\u8a18\u306e\u8868\u304b\u3089\u554f\u984c\u3068\u306a\u308b\u30d1\u30bf\u30fc\u30f3\u3092\u898b\u3064\u3051\u3066\u3001\u8a72\u5f53\u306eURL\u3092\u62bd\u51fa\u3057\u3066\u5bfe\u7b56\u3092\u8b1b\u3058\u3066\u884c\u304f\u3002<\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u27a1\ufe0f - \/ - \u30d1\u30bf\u30fc\u30f3\uff1aproxy\u3082fastcgi\u3082\u30ad\u30e3\u30c3\u30b7\u30e5\u5bfe\u8c61\u5916\u306b\u306a\u3063\u3066\u3044\u308bURL\u3092\u78ba\u8a8d\u3002<\/div>\r\n<pre class=\"code\"><code>awk '{\r\n  proxy=\"-\"; fastcgi=\"-\"\r\n  for(i=1;i&lt;=NF;i++){\r\n    if($i~\/^proxy=\/) proxy=substr($i,7)\r\n    if($i~\/^fastcgi=\/) fastcgi=substr($i,9)\r\n  }\r\n  if(proxy==\"-\" &amp;&amp; fastcgi==\"-\") print $3, $5\r\n}' \/var\/log\/nginx\/cache_access.log | sort | uniq -c | sort -rn | head -20\r\n\r\n\uff03 \u30b9\u30af\u30ea\u30d7\u30c8\u306e\u767b\u9332\r\nsudo nano pat--url.sh\r\n\r\n\uff03 \u30b9\u30af\u30ea\u30d7\u30c8\u306b\u5b9f\u884c\u6a29\u9650\u3092\u4ed8\u4e0e\r\nsudo chmod +x  pat--url.sh\r\n\r\n\uff03 \u30b9\u30af\u30ea\u30d7\u30c8\u306e\u5b9f\u884c\r\n.\/pat--url.sh\r\n\r\n$ .\/pat--url.sh # \u5b9f\u884c\u7d50\u679c\u30b5\u30f3\u30d7\u30eb\r\n    221 \/wp-login.php 403\r\n    173 \/trek\/wp-admin\/admin-ajax.php 403\r\n    110 \/ 301\r\n     59 \/robots.txt 301\r\n     31 400 fastcgi=-\r\n     28 \/wp-comments-post.php 302\r\n     24 \/ 200\r\n     22 \/.well-known\/traffic-advice 404\r\n     18 \/xmlrpc.php 301\r\n     18 \/wp-content\/plugins\/hellopress\/wp_filemanager.php 301\r\n     18 \/ads.txt 301\r\n     18 \/ 400\r\n     14 \/wp-login.php 301\r\n     14 \/wp-content\/plugins\/hellopress\/wp_filemanager.php 404\r\n     13 \/robots.txt 403\r\n     11 \/wp-good.php 301\r\n     11 \/administrator\/ 301\r\n     10 \/favicon.ico 301\r\n     10 \/edit.php 404\r\n      9 \/wp-json\/wp\/v2\/posts 301<\/code><\/pre>\r\n<div>\u00a0<\/div>\r\n<div>\u27a1\ufe0f MISS \/ - \u30d1\u30bf\u30fc\u30f3\uff1aproxy\u304cMISS\u3067fastcgi\u304c\u30ad\u30e3\u30c3\u30b7\u30e5\u5bfe\u8c61\u5916\u306b\u306a\u3063\u3066\u3044\u308bURL\u3092\u78ba\u8a8d\u3002<\/div>\r\n<pre class=\"code\"><code>awk '{\r\n  proxy=\"MISS\"; fastcgi=\"-\"\r\n  for(i=1;i&lt;=NF;i++){\r\n    if($i~\/^proxy=\/) proxy=substr($i,7)\r\n    if($i~\/^fastcgi=\/) fastcgi=substr($i,9)\r\n  }\r\n  if(proxy==\"MISS\" &amp;&amp; fastcgi==\"-\") print $3, $5\r\n}' \/var\/log\/nginx\/cache_access.log | sort | uniq -c | sort -rn | head -20\r\n\r\nsudo nano patmiss-url.sh\r\nsudo chmod +x  patmiss-url.sh\r\n.\/patmiss-url.sh\r\n\r\n$ .\/patmiss-url.sh\r\n     12 \/webfonts\/fa-solid-900.woff2 404\r\n     12 \/webfonts\/fa-solid-900.woff 404\r\n     12 \/webfonts\/fa-solid-900.ttf 404\r\n     10 \/apple-touch-icon.png 404\r\n     10 \/apple-touch-icon-precomposed.png 404\r\n      7 \/.env 403\r\n      6 \/wp-content\/cache\/autoptimize\/js\/autoptimize_c2914f7cc11a5688a2f11c63f03ad776.js 200\r\n      4 \/apple-touch-icon-120x120.png 404\r\n      4 \/apple-touch-icon-120x120-precomposed.png 404\r\n      4 \/.git\/config 403\r\n      3 \/wp-content\/uploads\/2025\/07\/pix_3993.png 200\r\n      3 \/backend\/.env 403\r\n      3 \/api\/.env 403\r\n      3 \/.env.production 403\r\n      3 \/.env.local 403\r\n      2 \/xxl.php 404\r\n      2 \/xmlrpc.php?rsd 403\r\n      2 \/xmlrpc.php 403\r\n      2 \/wpm.php 404\r\n      2 \/wp-logout.php 404<\/code><\/pre>\r\n<div>\u00a0<\/div>\r\n<div>\ud83d\udd39 MISS\/- \u306e\u30d1\u30bf\u30fc\u30f3\u3067\u30ea\u30af\u30a8\u30b9\u30c8URL\u3092\u62bd\u51fa\u3057\u3066\u96c6\u8a08\u3059\u308b\u30b3\u30de\u30f3\u30c9\u3002<\/div>\r\n<pre class=\"code\"><code>grep \"proxy=MISS\" \/var\/log\/nginx\/cache_access.log | grep \"fastcgi=-\" \\\r\n  | awk '{print $3}' | sort | uniq -c | sort -rn | head -20<\/code><\/pre>\r\n<div>\u00a0<\/div>\r\n<div>\ud83d\udd39 MISS\/- \u306e\u30d1\u30bf\u30fc\u30f3\u3067\u30ea\u30af\u30a8\u30b9\u30c8URL\u3092\u62bd\u51fa\u3057\u3066\u96c6\u8a08\u3059\u308b\u30b3\u30de\u30f3\u30c9\u3002<\/div>\r\n<pre class=\"code\"><code>grep \"proxy=MISS\" \/var\/log\/nginx\/cache_access.log | grep \"fastcgi=-\" \\\r\n  | awk '{print $3}' | grep -oE '\\.[a-zA-Z0-9]+$' | sort | uniq -c | sort -rn\r\n\r\n# \u5b9f\u884c\u7d50\u679c\u30b5\u30f3\u30d7\u30eb\r\n$ grep \"proxy=MISS\" \/var\/log\/nginx\/cache_access.log | grep \"fastcgi=-\" \\\r\n  | awk '{print $3}' | grep -oE '\\.[a-zA-Z0-9]+$' | sort | uniq -c | sort -rn\r\n    972 .jpg\r\n    876 .png\r\n    379 .webp\r\n    294 .php\r\n    185 .env\r\n     39 .js\r\n     38 .css\r\n     12 .woff2\r\n     12 .woff\r\n     12 .ttf\r\n      5 .txt\r\n      3 .production<\/code><\/pre>\r\n<div>\u00a0<\/div>\r\n<div id=\"title7\">\u00a0<\/div>\r\n<div>\u00a0<\/div>\r\n<div style=\"border: 1px solid #800000; padding: 5px 10px 3px 10px; background: #c5ff88;\"><strong>7. \u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u3010HIT\u3011\u7387\u5411\u4e0a\u5bfe\u7b56\uff0d\u4e8b\u4f8b<\/strong><\/div>\r\n<div>\u00a0<\/div>\r\n<div>\ud83d\udc8e MISS\/- \u306e\u30d1\u30bf\u30fc\u30f3\u3067\u30a2\u30af\u30bb\u30b9\u3057\u3066\u304d\u305f<span style=\"background: linear-gradient(transparent 60%,pink 60%);\"><strong>IP\u30a2\u30c9\u30ec\u30b9\u3092\u62bd\u51fa<\/strong><\/span>\u3057\u3066\u96c6\u8a08\u3059\u308b\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u305f\u3068\u3053\u308d\u30fb\u30fb\u30fb\u3002<\/div>\r\n<pre class=\"code\"><code> $ grep \"proxy=MISS\" \/var\/log\/nginx\/cache_access.log | grep \"fastcgi=-\" \\\r\n  | awk '{print $1}' | sort | uniq -c | sort -rn | head -20\r\n\r\n# \u5b9f\u884c\u7d50\u679c\r\nIP\u30a2\u30c9\u30ec\u30b9\t\t\t\t\u6b63\u4f53\r\n66.249.73.xx 66.249.74.xx\t\tGooglebot\r\n216.244.66.250\t\t\t\tDotBot\uff08SEO\u30af\u30ed\u30fc\u30e9\u30fc\uff09\r\n51.15.xx 51.158.xx 51.159.xx\t\tScaleway\u7cfb\u30af\u30ed\u30fc\u30e9\u30fc\r\n126.xx.xx.xx 153.xx.xx.xx 118.xx.xx.xx\t\u65e5\u672c\u56fd\u5185\u306e\u4e00\u822c\u30e6\u30fc\u30b6\u30fc<\/code><\/pre>\r\n<div>\u00a0<\/div>\r\n<div>\ud83e\uddf0 \u30af\u30ed\u30fc\u30e9\u30fc\u304c\u5927\u91cf\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u3044\u308b\u306e\u304c\u660e\u78ba\u3060\u3063\u305f\u306e\u3067\u3001\u554f\u984c\u306e\u30af\u30ed\u30fc\u30e9\u30fc\u3092\u30d6\u30ed\u30c3\u30af\u3059\u308b\u3002<\/div>\r\n<pre class=\"code\"><code>if ($http_user_agent ~* \"DotBot|MJ12bot|AhrefsBot|SemrushBot\") {\r\n    return 403;\r\n}<\/code><\/pre>\r\n<div>\u00a0<\/div>\r\n<div>\ud83d\udc8e tmpfs\uff08RAM\uff09\u306b\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u914d\u7f6e\u2192 SSD\u306b\u79fb\u884c\u3002<br \/>\r\n\u3000\u2192\u3000<span style=\"background: linear-gradient(transparent 60%,yellow 60%);\"><strong>\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u5bb9\u91cf\u62e1\u5927<\/strong><\/span>\u3067HIT\u7387\u304c\u5927\u5e45\u306b\u5411\u4e0a\u3002<\/div>\r\n<div>\u00a0<\/div>\r\n<div>\ud83d\udc8e \u30ad\u30e3\u30c3\u30b7\u30e5\u5bfe\u8c61\u5916URL\u306e\u8abf\u67fb\u304b\u3089 .txt \u3092\u30ad\u30e3\u30c3\u30b7\u30e5\u5bfe\u8c61\u306b\u8ffd\u52a0\u3002<\/div>\r\n<pre class=\"code\"><code># \u65e2\u5b58\u306e\u9759\u7684\u30d5\u30a1\u30a4\u30eb\u30d6\u30ed\u30c3\u30af\u306e\u62e1\u5f35\u5b50\u306b txt \u3092\u8ffd\u52a0\r\nlocation ~* \\.(jpg|jpeg|png|gif|webp|css|js|ico|svg|woff|woff2|ttf|txt)$ {<\/code><\/pre>\r\n<div>\u00a0<\/div>\r\n<div>\ud83d\udc8e \u5927\u91cf\u306e404\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u306b\u5230\u9054\u3057\u3066\u3044\u308b\u3002<\/div>\r\n<pre class=\"code\"><code># 404\u3092\u30ad\u30e3\u30c3\u30b7\u30e5\r\nproxy_cache_valid 404 1h; <\/code><\/pre>\r\n<div>\u00a0<\/div>\r\n<div>\ud83d\udc8e fastcgi_cache_valid \u306e\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u671f\u9593\u77ed\u7e2e\u3002<\/div>\r\n<pre class=\"code\"><code>fastcgi_cache_valid \u306e\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u671f\u9593\u77ed\u7e2e\r\nfastcgi_cache_valid 200 7d;\r\nfastcgi_cache_valid 301 302 1h;   # 7d \u2192 1h\r\nfastcgi_cache_valid 404 10m;<\/code><\/pre>\r\n<div>\u00a0<\/div>\r\n<div>\ud83d\udd34 \u672b\u5c3e\u306b wp-login.php \u304c\u4ed8\u3044\u305f\u30a2\u30af\u30bb\u30b9\u3092\u30d6\u30ed\u30c3\u30af\u3002<\/div>\r\n<pre class=\"code\"><code>    # ----------------------------------\r\n    # \u5371\u967aQuery\u906e\u65ad y2026.05.21\r\n    # ----------------------------------\r\n    if ($query_string ~* \"wp-login\\.php\") {\r\n        return 444;<\/code><\/pre>\r\n<div>\u00a0<\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u305d\u306e\u4ed6\u7d30\u304b\u3044\u8a2d\u5b9a\u306e\u4fee\u6b63\u3092\u884c\u3044\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u30d2\u30c3\u30c8\u7387\u3092\u5927\u5e45\u306b\u6539\u5584\u2757\u2757\u3002\u00a0<\/div>\r\n<div>\u00a0<\/div>\r\n<div>\u00a0<\/div>\r\n<div style=\"text-align: right;\">\u4ee5\u4e0a\u3002<br \/>\r\n(2026.05.24)<\/div>\r\n<div style=\"clear: both;\">\u00a0<\/div>\r\n<div>\t<p>&nbsp;<\/p>\n\t<div align=\"center\" style=\"font-size:8pt;\">\u30b9\u30dd\u30f3\u30b5\u30fc \u30ea\u30f3\u30af<br \/>\n<!-- \t<script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script> -->\n\t<!-- \u8a18\u4e8b\u30fb\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6-7 -->\n\t<ins class=\"adsbygoogle\"\n     style=\"display:block\"\n     data-ad-client=\"ca-pub-3816629014893825\"\n     data-ad-slot=\"1428770894\"\n     data-ad-format=\"auto\"\n     data-full-width-responsive=\"true\"><\/ins>\n\t<script>\n\t(adsbygoogle = window.adsbygoogle || []).push({});\n\t<\/script>\n\t<amp-ad width=\"100vw\" height=\"320\"\n     type=\"adsense\"\n     data-ad-client=\"ca-pub-3816629014893825\"\n     data-ad-slot=\"1428770894\"\n     data-auto-format=\"rspv\"\n     data-full-width=\"\">\n\t <div overflow=\"\"><\/div>\n\t<\/amp-ad>\n\t<\/div>\n\n\t<p>&nbsp;<\/p>\n\n\t<p align=\"center\">\n\t<amp-social-share type=\"email\"><\/amp-social-share>\n\t&nbsp;<amp-social-share type=\"facebook\" data-param-app_id=\"131027923993169\"><\/amp-social-share>\n\t&nbsp;<amp-social-share type=\"linkedin\"><\/amp-social-share>\n\t&nbsp;<amp-social-share type=\"pinterest\"><\/amp-social-share>\n\t&nbsp;<amp-social-share type=\"tumblr\"><\/amp-social-share>\n\t&nbsp;<amp-social-share type=\"twitter\"><\/amp-social-share>\n\t&nbsp;<amp-social-share type=\"whatsapp\"><\/amp-social-share>\n\t&nbsp;<amp-social-share type=\"line\"><\/amp-social-share>\n\t<\/p>\n\n\t<p>&nbsp;<\/p>\n\t\n\t<!-- \u95a2\u9023\u30fb\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6 kanren-70 -->\n\t<div align=\"center\">\n\t\n\t<ins class=\"adsbygoogle\"\n     style=\"display:block\"\n     data-ad-format=\"autorelaxed\"\n     data-ad-client=\"ca-pub-3816629014893825\"\n     data-ad-slot=\"8839675487\"><\/ins>\n\t<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n\t<\/script>\n\t\n\t<amp-ad width=\"100vw\" height=\"320\"\n\t\ttype=\"adsense\"\n\t\tdata-ad-client=\"ca-pub-3816629014893825\"\n\t\tdata-ad-slot=\"8839675487\"\n\t\tdata-auto-format=\"mcrspv\"\n\t\tdata-full-width=\"\">\n\t\t<div overflow=\"\"><\/div>\n\t<\/amp-ad>\n\t\n\t<\/div>\n\t\n\t<div> <\/div>\n\n\t<p>&nbsp;<\/p>\n<\/div>\r\n<div>\u00a0<\/div>","protected":false},"excerpt":{"rendered":"Nginx + PHP + WordPress \u30b5\u30fc\u30d0\u30fc\u306e\u7ba1\u7406 proxy_cache + fastcgi_cache \u30ad\u30e3\u30c3\u30b7\u30e5\u306e \u3010HIT\u3011\u7387\u5411\u4e0a \u30b3\u30de\u30f3\u30c9\u3068\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8 \u00a0 \u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u3092\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u306b\u914d &hellip; <p class=\"link-more\"><a href=\"https:\/\/arakoki70.com\/?p=12257\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;Web\u30b5\u30fc\u30d0\u30fc \u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u3010HIT\u3011\u7387\u5411\u4e0a\u306b\u8cc7\u3059\u308b \u30b3\u30de\u30f3\u30c9\u3068\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>","protected":false},"author":1,"featured_media":12259,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[],"class_list":["post-12257","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-02sevunyou"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Web\u30b5\u30fc\u30d0\u30fc \u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u3010HIT\u3011\u7387\u5411\u4e0a\u306b\u8cc7\u3059\u308b \u30b3\u30de\u30f3\u30c9\u3068\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8 - \u30a2\u30e9\u30b3\u30ad\u304b\u3089\u306e Raspberry Pi \u96fb\u5b50\u5de5\u4f5c<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/arakoki70.com\/?p=12257\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Web\u30b5\u30fc\u30d0\u30fc \u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u3010HIT\u3011\u7387\u5411\u4e0a\u306b\u8cc7\u3059\u308b \u30b3\u30de\u30f3\u30c9\u3068\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8 - \u30a2\u30e9\u30b3\u30ad\u304b\u3089\u306e Raspberry Pi \u96fb\u5b50\u5de5\u4f5c\" \/>\n<meta property=\"og:description\" content=\"Nginx + PHP + WordPress \u30b5\u30fc\u30d0\u30fc\u306e\u7ba1\u7406 proxy_cache + fastcgi_cache \u30ad\u30e3\u30c3\u30b7\u30e5\u306e \u3010HIT\u3011\u7387\u5411\u4e0a \u30b3\u30de\u30f3\u30c9\u3068\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8 \u00a0 \u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u3092\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u306b\u914d &hellip; &quot;Web\u30b5\u30fc\u30d0\u30fc \u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u3010HIT\u3011\u7387\u5411\u4e0a\u306b\u8cc7\u3059\u308b \u30b3\u30de\u30f3\u30c9\u3068\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8&quot; \u306e\u7d9a\u304d\u3092\u8aad\u3080\" \/>\n<meta property=\"og:url\" content=\"https:\/\/arakoki70.com\/?p=12257\" \/>\n<meta property=\"og:site_name\" content=\"\u30a2\u30e9\u30b3\u30ad\u304b\u3089\u306e Raspberry Pi \u96fb\u5b50\u5de5\u4f5c\" \/>\n<meta property=\"article:published_time\" content=\"2026-05-24T01:28:44+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-05-25T07:43:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/arakoki70.com\/wp-content\/uploads\/2026\/05\/cache-hitrate_0011.png\" \/>\n\t<meta property=\"og:image:width\" content=\"800\" \/>\n\t<meta property=\"og:image:height\" content=\"456\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"tacsan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@hermione2207\" \/>\n<meta name=\"twitter:site\" content=\"@hermione2207\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"tacsan\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"28\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/arakoki70.com\\\/?p=12257#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/arakoki70.com\\\/?p=12257\"},\"author\":{\"name\":\"tacsan\",\"@id\":\"https:\\\/\\\/arakoki70.com\\\/#\\\/schema\\\/person\\\/d5fdbdb63e731d3f2d43880ccade4451\"},\"headline\":\"Web\u30b5\u30fc\u30d0\u30fc \u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u3010HIT\u3011\u7387\u5411\u4e0a\u306b\u8cc7\u3059\u308b \u30b3\u30de\u30f3\u30c9\u3068\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\",\"datePublished\":\"2026-05-24T01:28:44+00:00\",\"dateModified\":\"2026-05-25T07:43:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/arakoki70.com\\\/?p=12257\"},\"wordCount\":124,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/arakoki70.com\\\/#\\\/schema\\\/person\\\/d5fdbdb63e731d3f2d43880ccade4451\"},\"image\":{\"@id\":\"https:\\\/\\\/arakoki70.com\\\/?p=12257#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/arakoki70.com\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/cache-hitrate_0011.png\",\"articleSection\":[\"02 \u30b5\u30fc\u30d0\u306e\u904b\u7528\"],\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/arakoki70.com\\\/?p=12257#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/arakoki70.com\\\/?p=12257\",\"url\":\"https:\\\/\\\/arakoki70.com\\\/?p=12257\",\"name\":\"Web\u30b5\u30fc\u30d0\u30fc \u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u3010HIT\u3011\u7387\u5411\u4e0a\u306b\u8cc7\u3059\u308b \u30b3\u30de\u30f3\u30c9\u3068\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8 - \u30a2\u30e9\u30b3\u30ad\u304b\u3089\u306e Raspberry Pi \u96fb\u5b50\u5de5\u4f5c\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/arakoki70.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/arakoki70.com\\\/?p=12257#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/arakoki70.com\\\/?p=12257#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/arakoki70.com\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/cache-hitrate_0011.png\",\"datePublished\":\"2026-05-24T01:28:44+00:00\",\"dateModified\":\"2026-05-25T07:43:00+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/arakoki70.com\\\/?p=12257#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/arakoki70.com\\\/?p=12257\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/arakoki70.com\\\/?p=12257#primaryimage\",\"url\":\"https:\\\/\\\/arakoki70.com\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/cache-hitrate_0011.png\",\"contentUrl\":\"https:\\\/\\\/arakoki70.com\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/cache-hitrate_0011.png\",\"width\":800,\"height\":456,\"caption\":\"proxy \u3068 fastcgi \u306e\u300c\u30d1\u30bf\u30fc\u30f3\u5225\u300d\u30d2\u30c3\u30c8\u7387\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/arakoki70.com\\\/?p=12257#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u30db\u30fc\u30e0\",\"item\":\"https:\\\/\\\/arakoki70.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Web\u30b5\u30fc\u30d0\u30fc \u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u3010HIT\u3011\u7387\u5411\u4e0a\u306b\u8cc7\u3059\u308b \u30b3\u30de\u30f3\u30c9\u3068\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/arakoki70.com\\\/#website\",\"url\":\"https:\\\/\\\/arakoki70.com\\\/\",\"name\":\"\u30a2\u30e9\u30b3\u30ad\u304b\u3089\u306e Raspberry Pi \u96fb\u5b50\u5de5\u4f5c\",\"description\":\"Around 70&#039;s \u30d6\u30ed\u30b0\u3078\u306e\u8a18\u4e8b\u6295\u7a3f\u304c\u751f\u6d3b\u76ee\u6a19\u306b \u30fb\u30fb\u30fb \u307e\u3060\u307e\u3060\u8f1d\u304f\",\"publisher\":{\"@id\":\"https:\\\/\\\/arakoki70.com\\\/#\\\/schema\\\/person\\\/d5fdbdb63e731d3f2d43880ccade4451\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/arakoki70.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/arakoki70.com\\\/#\\\/schema\\\/person\\\/d5fdbdb63e731d3f2d43880ccade4451\",\"name\":\"tacsan\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/arakoki70.com\\\/wp-content\\\/uploads\\\/2019\\\/12\\\/raspberry-toumei_4.png\",\"url\":\"https:\\\/\\\/arakoki70.com\\\/wp-content\\\/uploads\\\/2019\\\/12\\\/raspberry-toumei_4.png\",\"contentUrl\":\"https:\\\/\\\/arakoki70.com\\\/wp-content\\\/uploads\\\/2019\\\/12\\\/raspberry-toumei_4.png\",\"width\":80,\"height\":102,\"caption\":\"tacsan\"},\"logo\":{\"@id\":\"https:\\\/\\\/arakoki70.com\\\/wp-content\\\/uploads\\\/2019\\\/12\\\/raspberry-toumei_4.png\"},\"sameAs\":[\"https:\\\/\\\/arakoki70.com\\\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Web\u30b5\u30fc\u30d0\u30fc \u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u3010HIT\u3011\u7387\u5411\u4e0a\u306b\u8cc7\u3059\u308b \u30b3\u30de\u30f3\u30c9\u3068\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8 - \u30a2\u30e9\u30b3\u30ad\u304b\u3089\u306e Raspberry Pi \u96fb\u5b50\u5de5\u4f5c","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/arakoki70.com\/?p=12257","og_locale":"ja_JP","og_type":"article","og_title":"Web\u30b5\u30fc\u30d0\u30fc \u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u3010HIT\u3011\u7387\u5411\u4e0a\u306b\u8cc7\u3059\u308b \u30b3\u30de\u30f3\u30c9\u3068\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8 - \u30a2\u30e9\u30b3\u30ad\u304b\u3089\u306e Raspberry Pi \u96fb\u5b50\u5de5\u4f5c","og_description":"Nginx + PHP + WordPress \u30b5\u30fc\u30d0\u30fc\u306e\u7ba1\u7406 proxy_cache + fastcgi_cache \u30ad\u30e3\u30c3\u30b7\u30e5\u306e \u3010HIT\u3011\u7387\u5411\u4e0a \u30b3\u30de\u30f3\u30c9\u3068\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8 \u00a0 \u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u3092\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u306b\u914d &hellip; \"Web\u30b5\u30fc\u30d0\u30fc \u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u3010HIT\u3011\u7387\u5411\u4e0a\u306b\u8cc7\u3059\u308b \u30b3\u30de\u30f3\u30c9\u3068\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\" \u306e\u7d9a\u304d\u3092\u8aad\u3080","og_url":"https:\/\/arakoki70.com\/?p=12257","og_site_name":"\u30a2\u30e9\u30b3\u30ad\u304b\u3089\u306e Raspberry Pi \u96fb\u5b50\u5de5\u4f5c","article_published_time":"2026-05-24T01:28:44+00:00","article_modified_time":"2026-05-25T07:43:00+00:00","og_image":[{"width":800,"height":456,"url":"https:\/\/arakoki70.com\/wp-content\/uploads\/2026\/05\/cache-hitrate_0011.png","type":"image\/png"}],"author":"tacsan","twitter_card":"summary_large_image","twitter_creator":"@hermione2207","twitter_site":"@hermione2207","twitter_misc":{"\u57f7\u7b46\u8005":"tacsan","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"28\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/arakoki70.com\/?p=12257#article","isPartOf":{"@id":"https:\/\/arakoki70.com\/?p=12257"},"author":{"name":"tacsan","@id":"https:\/\/arakoki70.com\/#\/schema\/person\/d5fdbdb63e731d3f2d43880ccade4451"},"headline":"Web\u30b5\u30fc\u30d0\u30fc \u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u3010HIT\u3011\u7387\u5411\u4e0a\u306b\u8cc7\u3059\u308b \u30b3\u30de\u30f3\u30c9\u3068\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8","datePublished":"2026-05-24T01:28:44+00:00","dateModified":"2026-05-25T07:43:00+00:00","mainEntityOfPage":{"@id":"https:\/\/arakoki70.com\/?p=12257"},"wordCount":124,"commentCount":0,"publisher":{"@id":"https:\/\/arakoki70.com\/#\/schema\/person\/d5fdbdb63e731d3f2d43880ccade4451"},"image":{"@id":"https:\/\/arakoki70.com\/?p=12257#primaryimage"},"thumbnailUrl":"https:\/\/arakoki70.com\/wp-content\/uploads\/2026\/05\/cache-hitrate_0011.png","articleSection":["02 \u30b5\u30fc\u30d0\u306e\u904b\u7528"],"inLanguage":"ja","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/arakoki70.com\/?p=12257#respond"]}]},{"@type":"WebPage","@id":"https:\/\/arakoki70.com\/?p=12257","url":"https:\/\/arakoki70.com\/?p=12257","name":"Web\u30b5\u30fc\u30d0\u30fc \u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u3010HIT\u3011\u7387\u5411\u4e0a\u306b\u8cc7\u3059\u308b \u30b3\u30de\u30f3\u30c9\u3068\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8 - \u30a2\u30e9\u30b3\u30ad\u304b\u3089\u306e Raspberry Pi \u96fb\u5b50\u5de5\u4f5c","isPartOf":{"@id":"https:\/\/arakoki70.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/arakoki70.com\/?p=12257#primaryimage"},"image":{"@id":"https:\/\/arakoki70.com\/?p=12257#primaryimage"},"thumbnailUrl":"https:\/\/arakoki70.com\/wp-content\/uploads\/2026\/05\/cache-hitrate_0011.png","datePublished":"2026-05-24T01:28:44+00:00","dateModified":"2026-05-25T07:43:00+00:00","breadcrumb":{"@id":"https:\/\/arakoki70.com\/?p=12257#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/arakoki70.com\/?p=12257"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/arakoki70.com\/?p=12257#primaryimage","url":"https:\/\/arakoki70.com\/wp-content\/uploads\/2026\/05\/cache-hitrate_0011.png","contentUrl":"https:\/\/arakoki70.com\/wp-content\/uploads\/2026\/05\/cache-hitrate_0011.png","width":800,"height":456,"caption":"proxy \u3068 fastcgi \u306e\u300c\u30d1\u30bf\u30fc\u30f3\u5225\u300d\u30d2\u30c3\u30c8\u7387"},{"@type":"BreadcrumbList","@id":"https:\/\/arakoki70.com\/?p=12257#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/arakoki70.com\/"},{"@type":"ListItem","position":2,"name":"Web\u30b5\u30fc\u30d0\u30fc \u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u3010HIT\u3011\u7387\u5411\u4e0a\u306b\u8cc7\u3059\u308b \u30b3\u30de\u30f3\u30c9\u3068\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8"}]},{"@type":"WebSite","@id":"https:\/\/arakoki70.com\/#website","url":"https:\/\/arakoki70.com\/","name":"\u30a2\u30e9\u30b3\u30ad\u304b\u3089\u306e Raspberry Pi \u96fb\u5b50\u5de5\u4f5c","description":"Around 70&#039;s \u30d6\u30ed\u30b0\u3078\u306e\u8a18\u4e8b\u6295\u7a3f\u304c\u751f\u6d3b\u76ee\u6a19\u306b \u30fb\u30fb\u30fb \u307e\u3060\u307e\u3060\u8f1d\u304f","publisher":{"@id":"https:\/\/arakoki70.com\/#\/schema\/person\/d5fdbdb63e731d3f2d43880ccade4451"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/arakoki70.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":["Person","Organization"],"@id":"https:\/\/arakoki70.com\/#\/schema\/person\/d5fdbdb63e731d3f2d43880ccade4451","name":"tacsan","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/arakoki70.com\/wp-content\/uploads\/2019\/12\/raspberry-toumei_4.png","url":"https:\/\/arakoki70.com\/wp-content\/uploads\/2019\/12\/raspberry-toumei_4.png","contentUrl":"https:\/\/arakoki70.com\/wp-content\/uploads\/2019\/12\/raspberry-toumei_4.png","width":80,"height":102,"caption":"tacsan"},"logo":{"@id":"https:\/\/arakoki70.com\/wp-content\/uploads\/2019\/12\/raspberry-toumei_4.png"},"sameAs":["https:\/\/arakoki70.com\/"]}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/arakoki70.com\/index.php?rest_route=\/wp\/v2\/posts\/12257","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/arakoki70.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/arakoki70.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/arakoki70.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/arakoki70.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=12257"}],"version-history":[{"count":18,"href":"https:\/\/arakoki70.com\/index.php?rest_route=\/wp\/v2\/posts\/12257\/revisions"}],"predecessor-version":[{"id":12285,"href":"https:\/\/arakoki70.com\/index.php?rest_route=\/wp\/v2\/posts\/12257\/revisions\/12285"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/arakoki70.com\/index.php?rest_route=\/wp\/v2\/media\/12259"}],"wp:attachment":[{"href":"https:\/\/arakoki70.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12257"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/arakoki70.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12257"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/arakoki70.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12257"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}