{"id":8456,"date":"2024-06-07T15:26:45","date_gmt":"2024-06-07T06:26:45","guid":{"rendered":"https:\/\/www.prime-strategy.co.jp\/column\/?p=8456"},"modified":"2026-02-17T01:31:50","modified_gmt":"2026-02-16T16:31:50","slug":"nginx-%e3%81%ae-location-%e3%81%a7%e3%82%a2%e3%82%af%e3%82%bb%e3%82%b9%e5%88%b6%e9%99%90%e3%82%92%e3%81%8b%e3%81%91%e3%82%8b%e9%9a%9b%e3%81%ae%e8%90%bd%e3%81%a8%e3%81%97%e7%a9%b4","status":"publish","type":"post","link":"https:\/\/kusanagi.tokyo\/column\/archives\/column_8456","title":{"rendered":"Nginx \u306e location \u3067\u30a2\u30af\u30bb\u30b9\u5236\u9650\u3092\u304b\u3051\u308b\u969b\u306e\u843d\u3068\u3057\u7a74"},"content":{"rendered":"\n<p>\u30d7\u30e9\u30a4\u30e0\u30fb\u30b9\u30c8\u30e9\u30c6\u30b8\u30fc\u300cKUSANAGI\u300d\u958b\u767a\u30c1\u30fc\u30e0\u306e\u77f3\u5ddd\u3067\u3059\u3002<\/p>\n\n\n\n<p>KUSANAGI\u3067\u3082\u63a1\u7528\u3057\u3066\u3044\u308b <a href=\"http:\/\/nginx.org\/\">nginx<\/a> \u306f\u975e\u5e38\u306b\u9ad8\u6027\u80fd\u306aWeb\u30b5\u30fc\u30d0\u3067\u3059\u3002<br>Web\u30b5\u30fc\u30d0\u3068\u3057\u3066\u9577\u3044\u9593\u4f7f\u308f\u308c\u3066\u304d\u305f <a href=\"https:\/\/httpd.apache.org\/\">Apache HTTPD Server<\/a> \u3068\u6bd4\u8f03\u3059\u308b\u3068\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u8a18\u8ff0\u304c\u7570\u306a\u308b\u305f\u3081\u3001\u8a2d\u5b9a\u306b\u6238\u60d1\u3046\u30b1\u30fc\u30b9\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>Apache HTTPD Server\u306e .htaccess \u30d5\u30a1\u30a4\u30eb\u306b\u76f8\u5f53\u3059\u308b\u51e6\u7406\u3092\u3001 nginx \u306e location \u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3067\u884c\u3048\u308b\u3053\u3068\u3092\u3001 \u4ee5\u524d\u306b\u30b3\u30e9\u30e0 <a href=\"https:\/\/www.prime-strategy.co.jp\/column\/archives\/column_7965\">Nginx \u306e location \u306e\u66f8\u304d\u65b9\u3067\u6ce8\u610f\u3059\u308b\u3053\u3068<\/a> \u3067\u8aac\u660e\u3057\u307e\u3057\u305f\u3002<br>\u4eca\u56de\u306f\u524d\u56de\u306e\u8aac\u660e\u306b\u52a0\u3048\u3066\u3001 <code>location<\/code> \u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3067\u9593\u9055\u3048\u304c\u3061\u306a\u30a2\u30af\u30bb\u30b9\u5236\u9650\u3092\u8a2d\u5b9a\u3059\u308b\u969b\u306e\u843d\u3068\u3057\u7a74\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E3%82%B5%E3%82%A4%E3%83%88%E5%85%A8%E4%BD%93%E3%81%AB%E3%82%A2%E3%82%AF%E3%82%BB%E3%82%B9%E5%88%B6%E9%99%90%E3%82%92%E3%81%8B%E3%81%91%E3%82%8B%E9%9A%9B%E3%81%AE%E8%90%BD%E3%81%A8%E3%81%97%E7%A9%B4\"><\/span>\u30b5\u30a4\u30c8\u5168\u4f53\u306b\u30a2\u30af\u30bb\u30b9\u5236\u9650\u3092\u304b\u3051\u308b\u969b\u306e\u843d\u3068\u3057\u7a74<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Basic%E8%AA%8D%E8%A8%BC%E3%82%92%E9%80%9A%E3%82%8B%E3%81%A8_deny_all_%E3%81%97%E3%81%9F%E3%83%91%E3%82%B9%E3%82%82%E3%82%A2%E3%82%AF%E3%82%BB%E3%82%B9%E3%81%A7%E3%81%8D%E3%82%8B%E5%A0%B4%E5%90%88%E3%81%8C%E3%81%82%E3%82%8B\"><\/span>Basic\u8a8d\u8a3c\u3092\u901a\u308b\u3068 deny all \u3057\u305f\u30d1\u30b9\u3082\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u5834\u5408\u304c\u3042\u308b<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Nginx \u3067\u30b5\u30a4\u30c8\u5168\u4f53\u306b Basic \u8a8d\u8a3c\u3092\u884c\u3046\u5834\u5408\u306f <code>server<\/code> \u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u8a18\u8ff0\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>server {\n    # \u7701\u7565\n\n    satisfy any;\n    allow 127.0.0.1;\n    deny all;\n    auth_basic &quot;basic authentication&quot;;\n    auth_basic_user_file &quot;\/home\/kusanagi\/.htpasswd&quot;;\n}<\/code><\/pre><\/div>\n\n\n\n<p>\u3053\u3053\u3067\u306e\u30dd\u30a4\u30f3\u30c8\u306f <a href=\"http:\/\/nginx.org\/en\/docs\/http\/ngx_http_core_module.html#satisfy\">satisfy any<\/a> \u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u7279\u5b9a\u306eIP (\u4e0a\u8a18\u306e\u4f8b\u3067\u306f 127.0.0.1) \u306b\u5bfe\u3057\u3066\u306f Basic \u8a8d\u8a3c\u3092\u7121\u52b9\u306b\u3057\u3066\u3044\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3055\u3066\u3001\u3053\u3053\u3067\u8ab0\u304b\u3089\u3082\u30a2\u30af\u30bb\u30b9\u3055\u308c\u3066\u306f\u3044\u3051\u306a\u3044\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u3063\u305f\u3068\u3057\u307e\u3059\u3002<br>\u4f8b\u3048\u3070 <code>.<\/code> \u3067\u59cb\u307e\u308b\u30d5\u30a1\u30a4\u30eb\u306f\u4e00\u822c\u7684\u306b\u30a2\u30af\u30bb\u30b9\u3055\u305b\u306a\u3044\u8a2d\u5b9a\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4e0a\u8a18\u306e\u4f8b\u306b <code>location<\/code> \u3092\u8ffd\u52a0\u3057\u3066\u307f\u307e\u3059\u3002<br><code>location ~* \/\\.<\/code> \u3067\u6b63\u898f\u8868\u73fe\u306b\u3088\u308a <code>.<\/code> \u304b\u3089\u59cb\u307e\u308b\u30d1\u30b9\u3092\u30a2\u30af\u30bb\u30b9\u3055\u305b\u306a\u3044\u3088\u3046\u306b\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>server {\n    # \u7701\u7565\n\n    satisfy any;\n    allow 127.0.0.1;\n    deny all;\n    auth_basic &quot;basic authentication&quot;;\n    auth_basic_user_file &quot;\/home\/kusanagi\/.htpasswd&quot;;\n\n    location ~* \/\\. {\n        deny all;\n    }\n}<\/code><\/pre><\/div>\n\n\n\n<p>\u3057\u304b\u3057\u3001\u4e0a\u8a18\u306e\u8a2d\u5b9a\u306e\u307e\u307e\u3067\u306f <code>.htaccess<\/code> \u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u30b1\u30fc\u30b9\u304c\u51fa\u3066\u3057\u307e\u3044\u307e\u3059\u3002<br>\u306a\u305c\u304b\u3068\u3044\u3046\u3068\u3001<code>location<\/code> \u306e\u5916\u3067\u5ba3\u8a00\u3055\u308c\u305f4\u884c\u76ee\u306e <code>satisfy any<\/code> \u304c <code>location<\/code> \u5185\u3067\u3082\u6709\u52b9\u306b\u306a\u308b\u304b\u3089\u3067\u3059\u3002<br><code>satisfy<\/code> \u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u306f <code>all<\/code> \u3067\u3059\u304c\u3001 <code>any<\/code> \u3068\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3001 <strong>\u3044\u305a\u308c\u304b\u306e\u6761\u4ef6<\/strong> \u3092\u6e80\u305f\u3059\u3053\u3068\u3067\u30a2\u30af\u30bb\u30b9\u3067\u304d\u3066\u3057\u307e\u3046\u306e\u3067\u3059\u3002<br>\u3053\u306e\u4f8b\u3067\u8a00\u3048\u3070\u3001\u4ee5\u4e0b\u306e\u3044\u305a\u308c\u304b\u306e\u6761\u4ef6\u3092\u6e80\u305f\u3059\u3068 <code>.<\/code> \u304b\u3089\u59cb\u307e\u308b\u30d5\u30a1\u30a4\u30eb\u3092\u30a2\u30af\u30bb\u30b9\u3067\u304d\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>127.0.0.1 \u304b\u3089\u306e\u30a2\u30af\u30bb\u30b9<\/li>\n\n\n\n<li>Basic \u8a8d\u8a3c\u3092\u901a\u904e\u3059\u308b<\/li>\n<\/ol>\n\n\n\n<p>\u3053\u306e\u3088\u3046\u306b <strong>\u3069\u306e\u3088\u3046\u306a\u5834\u5408\u3067\u3042\u3063\u3066\u3082<\/strong> \u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u3044\u3088\u3046\u306a <code>location<\/code> \u3092\u4f5c\u308a\u305f\u3044\u5834\u5408\u306b\u306f\u3001<code>location<\/code> \u306e\u5916\u3067\u5ba3\u8a00\u3055\u308c\u305f <code>satisfy<\/code> \u306b\u5f71\u97ff\u3057\u306a\u3044\u3088\u3046\u306b\u3001\u660e\u793a\u7684\u306b <code>satisfy all<\/code> \u3092\u5165\u308c\u308b\u3053\u3068\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>server {\n    # \u7701\u7565\n\n    satisfy any;\n    allow 127.0.0.1;\n    deny all;\n    auth_basic &quot;basic authentication&quot;;\n    auth_basic_user_file &quot;\/home\/kusanagi\/.htpasswd&quot;;\n\n    location ~* \/\\. {\n        satisfy all;  # \u3053\u3053\u3067 4\u884c\u76ee\u306e satisfy any \u3092\u4e0a\u66f8\u304d\n        deny all;\n    }\n}<\/code><\/pre><\/div>\n\n\n\n<p>\u306a\u304a\u3001\u3053\u308c\u306fIP\u30a2\u30c9\u30ec\u30b9\u3067\u30a2\u30af\u30bb\u30b9\u5236\u9650\u3092\u884c\u3046\u5834\u5408\u3067\u3082\u540c\u69d8\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>server {\n    # \u7701\u7565\n\n    satisfy any;\n    allow 127.0.0.1;\n    allow 192.168.0.0\/24;\n    allow 10.0.1.0\/24;\n    deny all;\n\n    location ~* \/\\. {\n        satisfy all;  # \u3053\u3053\u3067 4\u884c\u76ee\u306e satisfy any \u3092\u4e0a\u66f8\u304d\n        deny all;\n    }\n}<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E7%89%B9%E5%AE%9A%E3%81%AE_location_%E3%81%AB%E3%82%A2%E3%82%AF%E3%82%BB%E3%82%B9%E5%88%B6%E9%99%90%E3%82%92%E3%81%8B%E3%81%91%E3%82%8B%E9%9A%9B%E3%81%AE%E8%90%BD%E3%81%A8%E3%81%97%E7%A9%B4\"><\/span>\u7279\u5b9a\u306e <code>location<\/code> \u306b\u30a2\u30af\u30bb\u30b9\u5236\u9650\u3092\u304b\u3051\u308b\u969b\u306e\u843d\u3068\u3057\u7a74<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Basic%E8%AA%8D%E8%A8%BC%E3%82%92%E3%81%8B%E3%81%91%E3%81%A6%E3%82%82_PHP_%E3%81%AB%E3%81%AFBasic%E8%AA%8D%E8%A8%BC%E3%81%8C%E3%81%8B%E3%81%8B%E3%82%89%E3%81%AA%E3%81%84%E5%A0%B4%E5%90%88%E3%81%8C%E3%81%82%E3%82%8B\"><\/span>Basic\u8a8d\u8a3c\u3092\u304b\u3051\u3066\u3082 PHP \u306b\u306fBasic\u8a8d\u8a3c\u304c\u304b\u304b\u3089\u306a\u3044\u5834\u5408\u304c\u3042\u308b<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\u6b21\u306b <code>location<\/code> \u3067\u7279\u5b9a\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u914d\u4e0b\u306b\u306e\u307f Basic \u8a8d\u8a3c\u3092\u304b\u3051\u305f\u5834\u5408\u3092\u8003\u3048\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>server {\n    # \u7701\u7565\n\n    location \/auth_user_only {\n        satisfy any;\n        allow 127.0.0.1;\n        deny all;\n        auth_basic &quot;basic authentication&quot;;\n        auth_basic_user_file &quot;\/home\/kusanagi\/.htpasswd&quot;;\n    }\n}<\/code><\/pre><\/div>\n\n\n\n<p>\u3053\u308c\u3060\u3051\u306e\u72b6\u614b\u3067\u3042\u308c\u3070 <code>\/auth_user_only<\/code> \u306b\u5bfe\u3057\u3066 Basic \u8a8d\u8a3c\u304c\u52b9\u3044\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3068\u3053\u308d\u304c\u3001\u4ee5\u4e0b\u306e\u5834\u5408\u3060\u3068\u3069\u3046\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>server {\n    # \u7701\u7565\n\n    location \/auth_user_only {\n        satisfy any;\n        allow 127.0.0.1;\n        deny all;\n        auth_basic &quot;basic authentication&quot;;\n        auth_basic_user_file &quot;\/home\/kusanagi\/.htpasswd&quot;;\n    }\n\n    location ~ [^\/]\\.php(\/|$) {\n        # \u7701\u7565\n\n        fastcgi_pass 127.0.0.1:9000;\n        fastcgi_index index.php;\n\n        # \u7701\u7565\n    }\n}<\/code><\/pre><\/div>\n\n\n\n<p>\u3053\u306e\u5834\u5408 <code>\/auth_user_only\/index.php<\/code> \u306b\u306f Basic \u8a8d\u8a3c\u306a\u3057\u3067\u30a2\u30af\u30bb\u30b9\u3067\u304d\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u306a\u305c\u306a\u3089 <a href=\"https:\/\/www.prime-strategy.co.jp\/column\/archives\/column_7965#location_%E3%81%AE%E9%81%A9%E7%94%A8%E3%81%AE%E5%84%AA%E5%85%88%E9%A0%86%E4%BD%8D\">location \u306e\u9069\u7528\u306e\u512a\u5148\u9806\u4f4d<\/a> \u3067\u7d39\u4ecb\u3057\u305f\u3088\u3046\u306b\u3001<br>modifier\u306a\u3057\u306e <code>location \/auth_user_only<\/code> \u3088\u308a\u3082 \u6b63\u898f\u8868\u73fe\u306e <code>location ~ [^\/]\\.php(\/|$)<\/code> \u304c\u512a\u5148\u3055\u308c\u308b\u304b\u3089\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3088\u3063\u3066\u3001\u5236\u9650\u3092\u304b\u3051\u305f\u3044 <code>location<\/code> \u306f\u3001\u3053\u306e\u5834\u5408\u3067\u306f\u6b63\u898f\u8868\u73fe\u3067\u5b9a\u7fa9\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br>\u307e\u305f\u3001\u305d\u306e <code>location<\/code> \u306e\u914d\u4e0b\u3067 PHP \u3092\u5b9f\u884c\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u306f\u3001PHP\u306e <code>location<\/code> \u3092\u305d\u306e\u4e2d\u3067\u518d\u5b9a\u7fa9\u3053\u3068\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>server {\n    # \u7701\u7565\n\n    location ~ ^\/auth_user_only {  # \u6b63\u898f\u8868\u73fe\u306b\u5909\u66f4\n        satisfy any;\n        allow 127.0.0.1;\n        deny all;\n        auth_basic &quot;basic authentication&quot;;\n        auth_basic_user_file &quot;\/home\/kusanagi\/.htpasswd&quot;;\n\n        location ~ [^\/]\\.php(\/|$) {  # PHP\u306elocation\u3092\u518d\u5b9a\u7fa9\n            # \u7701\u7565\n\n            fastcgi_pass 127.0.0.1:9000;\n            fastcgi_index index.php;\n\n            # \u7701\u7565\n        }\n    }\n\n    location ~ [^\/]\\.php(\/|$) {\n        # \u7701\u7565\n\n        fastcgi_pass 127.0.0.1:9000;\n        fastcgi_index index.php;\n\n        # \u7701\u7565\n    }\n}<\/code><\/pre><\/div>\n\n\n\n<p>KUSANAGI\u3067\u30d7\u30ed\u30d3\u30b8\u30e7\u30f3\u3057\u305fWordPress\u7528\u306e\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u8a2d\u5b9a\u3092\u898b\u308b\u3068\u3001\u7ba1\u7406\u753b\u9762\u7528\u306eURL\u306b\u30a2\u30af\u30bb\u30b9\u5236\u9650\u3092\u304b\u3051\u308b\u305f\u3081\u306b\u3001\u7ba1\u7406\u753b\u9762\u7528\u306e PHP \u3068\u666e\u901a\u306e PHP \u3067 PHP \u306e <code>location<\/code> \u30922\u3064\u5b9a\u7fa9\u3057\u3066\u3044\u308b\u306e\u304c\u5206\u304b\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Basic%E8%AA%8D%E8%A8%BC%E3%82%92%E3%81%8B%E3%81%91%E3%81%A6%E3%82%82%E7%94%BB%E5%83%8F%E3%81%AA%E3%81%A9%E3%81%AB%E3%81%AFBasic%E8%AA%8D%E8%A8%BC%E3%81%8C%E3%81%8B%E3%81%8B%E3%82%89%E3%81%AA%E3%81%84%E5%A0%B4%E5%90%88%E3%81%8C%E3%81%82%E3%82%8B\"><\/span>Basic\u8a8d\u8a3c\u3092\u304b\u3051\u3066\u3082\u753b\u50cf\u306a\u3069\u306b\u306fBasic\u8a8d\u8a3c\u304c\u304b\u304b\u3089\u306a\u3044\u5834\u5408\u304c\u3042\u308b<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\u307e\u305f\u3001\u4ed6\u306b KUSANAGI \u3067\u306f\u753b\u50cf\u3084CSS\/JavaScript\u3068\u3044\u3063\u305f\u30ea\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u3092\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u306b\u51fa\u529b\u3055\u305b\u306a\u3044\u305f\u3081\u306e <code>location<\/code> \u3092\u5b9a\u7fa9\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>server {\n    # \u7701\u7565\n\n    location \/auth_user_only {\n        satisfy any;\n        allow 127.0.0.1;\n        deny all;\n        auth_basic &quot;basic authentication&quot;;\n        auth_basic_user_file &quot;\/home\/kusanagi\/.htpasswd&quot;;\n    }\n\n    location ~* \\.(jpg|jpeg|gif|png|webp|css|js|swf|ico|pdf|svg|eot|ttf|woff|woff2)$ {\n        # \u7701\u7565\n\n        access_log off;\n    }\n}<\/code><\/pre><\/div>\n\n\n\n<p>\u4e0a\u8a18\u306e PHP \u306e\u5834\u5408\u3068\u540c\u69d8\u306b\u3001\u4f8b\u3048\u3070 <code>\/auth_user_only\/secret.jpg<\/code> \u306b\u5bfe\u3057\u3066\u306f Basic \u8a8d\u8a3c\u306a\u3057\u3067\u30a2\u30af\u30bb\u30b9\u3067\u304d\u3066\u3057\u307e\u3044\u307e\u3059\u3002<br>\u3053\u306e\u5834\u5408\u3082\u3001\u753b\u50cf\u3092\u8a31\u53ef\u3055\u305b\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u306b\u306f\u3001 <code>location \/auth_user_only<\/code> \u5185\u306b\u518d\u5b9a\u7fa9\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>server {\n    # \u7701\u7565\n\n    location ~ ^\/auth_user_only {  # \u6b63\u898f\u8868\u73fe\u306b\u5909\u66f4\n        satisfy any;\n        allow 127.0.0.1;\n        deny all;\n        auth_basic &quot;basic authentication&quot;;\n        auth_basic_user_file &quot;\/home\/kusanagi\/.htpasswd&quot;;\n\n        location ~* \\.(jpg|jpeg|gif|png|webp|css|js|swf|ico|pdf|svg|eot|ttf|woff|woff2)$ {\n            # \u7701\u7565\n\n            access_log off;\n        }\n    }\n\n    location ~* \\.(jpg|jpeg|gif|png|webp|css|js|swf|ico|pdf|svg|eot|ttf|woff|woff2)$ {\n        # \u7701\u7565\n\n        access_log off;\n    }\n}<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%AE%8C%E5%85%A8%E3%81%ABBasic%E8%AA%8D%E8%A8%BC%E3%82%92%E3%81%8B%E3%81%91%E3%81%9F%E3%81%84%E3%81%AA%E3%82%89%E3%81%B0%E2%80%A6\"><\/span>\u5b8c\u5168\u306bBasic\u8a8d\u8a3c\u3092\u304b\u3051\u305f\u3044\u306a\u3089\u3070\u2026<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p><code>location<\/code> \u306b\u306f\u6b63\u898f\u8868\u73fe\u3092\u9069\u7528\u3055\u305b\u306a\u3044\u4e00\u81f4 <code>^~<\/code> \u304c\u3042\u308a\u307e\u3059\u3002<br>\u3053\u308c\u3092\u5229\u7528\u3059\u308b\u3068\u3001\u3053\u306e <code>location<\/code> \u306b\u306f\u4ed6\u306e\u6b63\u898f\u8868\u73fe\u304c\u9069\u7528\u3055\u308c\u306a\u3044\u306e\u3067\u3001\u5b89\u5168\u306b Basic \u8a8d\u8a3c\u3092\u304b\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>server {\n    # \u7701\u7565\n\n    location ^~ \/auth_user_only {  # \u914d\u4e0b\u306b\u6b63\u898f\u8868\u73fe\u3092\u9069\u7528\u3055\u305b\u306a\u3044modifier\n        satisfy any;\n        allow 127.0.0.1;\n        deny all;\n        auth_basic &quot;basic authentication&quot;;\n        auth_basic_user_file &quot;\/home\/kusanagi\/.htpasswd&quot;;\n    }\n}<\/code><\/pre><\/div>\n\n\n\n<p>\u305f\u3060\u3001\u3053\u306e\u5834\u5408\u306f\u914d\u4e0b\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067 PHP \u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u306a\u3044\u306e\u3067\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br>\u3053\u306e\u914d\u4e0b\u306e\u753b\u50cf\u3084\u30ea\u30bd\u30fc\u30b9\u306e\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u3082\u51fa\u529b\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E3%81%BE%E3%81%A8%E3%82%81\"><\/span>\u307e\u3068\u3081<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u6628\u4eca\u306f\u300c\u516c\u958b\u3059\u308b\u610f\u56f3\u304c\u306a\u3044\u30c7\u30fc\u30bf\u304c\u8a2d\u5b9a\u30df\u30b9\u306b\u3088\u3063\u3066\u516c\u958b\u3055\u308c\u3066\u3044\u305f\u300d\u3068\u3044\u3063\u305f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u4e8b\u6848\u304c\u591a\u304f\u898b\u3089\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<br>Nginx\u306e <code>location<\/code> \u306f\u67d4\u8edf\u306a\u4e00\u65b9\u3067\u69d8\u3005\u306a <code>location<\/code> \u306e\u8a18\u8ff0\u304c\u304b\u3089\u307f\u5408\u3063\u3066\u3044\u308b\u3053\u3068\u3067\u3001\u8a2d\u5b9a\u30df\u30b9\u304c\u8d77\u3053\u308a\u3084\u3059\u304f\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5b9f\u904b\u7528\u306b\u5165\u308b\u524d\u306b\u306f\u3001\u5fc5\u305a\u610f\u56f3\u3057\u305f\u901a\u308a\u306e\u30a2\u30af\u30bb\u30b9\u8a31\u53ef\u30fb\u4e0d\u8a31\u53ef\u304c\u8a2d\u5b9a\u3067\u304d\u3066\u3044\u308b\u304b\u3001\u304d\u3061\u3093\u3068\u78ba\u8a8d\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u307e\u305f\u3001\u305d\u306e\u969b\u306b\u3069\u3053\u306e\u8a2d\u5b9a\u304c\u6700\u7d42\u7684\u306b\u52b9\u3044\u3066\u3044\u308b\u306e\u304b\u3092\u5224\u65ad\u3059\u308b\u969b\u306b\u3001\u3053\u306e\u8aac\u660e\u3092\u6d3b\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u53c2\u8003<br><a href=\"http:\/\/nginx.org\/en\/docs\/http\/ngx_http_core_module.html#location\" target=\"_blank\" rel=\"noreferrer noopener\">Module nginx_http_core_module, location directive<\/a><br><a href=\"http:\/\/nginx.org\/en\/docs\/http\/ngx_http_auth_basic_module.html\">Module nginx_http_auth_basic_module, auth_basic directive<\/a><br><a href=\"http:\/\/nginx.org\/en\/docs\/http\/ngx_http_core_module.html#satisfy\">Module nginx_http_core_module, satisfy directive<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30d7\u30e9\u30a4\u30e0\u30fb\u30b9\u30c8\u30e9\u30c6\u30b8\u30fc\u300cKUSANAGI\u300d\u958b\u767a\u30c1\u30fc\u30e0\u306e\u77f3\u5ddd\u3067\u3059\u3002 KUSANAGI\u3067\u3082\u63a1\u7528\u3057\u3066\u3044\u308b nginx \u306f\u975e\u5e38\u306b\u9ad8\u6027\u80fd\u306aWeb\u30b5\u30fc\u30d0 ... <a title=\"Nginx \u306e location \u3067\u30a2\u30af\u30bb\u30b9\u5236\u9650\u3092\u304b\u3051\u308b\u969b\u306e\u843d\u3068\u3057\u7a74\" class=\"read-more\" href=\"https:\/\/kusanagi.tokyo\/column\/archives\/column_8456\" aria-label=\"Nginx \u306e location \u3067\u30a2\u30af\u30bb\u30b9\u5236\u9650\u3092\u304b\u3051\u308b\u969b\u306e\u843d\u3068\u3057\u7a74 \u306b\u3064\u3044\u3066\u3055\u3089\u306b\u8aad\u3080\">Read more<\/a><\/p>\n","protected":false},"author":27,"featured_media":8462,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"content-type":"","footnotes":""},"categories":[76],"tags":[110],"series":[62],"journey":[100],"product":[105],"class_list":["post-8456","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-nginx","tag-technical-guides","series-kusanagi-troubleshooting","journey-deep","product-kusanagi","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33","no-featured-image-padding"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Nginx \u306e location \u3067\u30a2\u30af\u30bb\u30b9\u5236\u9650\u3092\u304b\u3051\u308b\u969b\u306e\u843d\u3068\u3057\u7a74 - KUSANAGI Tech Column<\/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:\/\/kusanagi.tokyo\/column\/archives\/column_8456\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Nginx \u306e location \u3067\u30a2\u30af\u30bb\u30b9\u5236\u9650\u3092\u304b\u3051\u308b\u969b\u306e\u843d\u3068\u3057\u7a74 - KUSANAGI Tech Column\" \/>\n<meta property=\"og:description\" content=\"\u30d7\u30e9\u30a4\u30e0\u30fb\u30b9\u30c8\u30e9\u30c6\u30b8\u30fc\u300cKUSANAGI\u300d\u958b\u767a\u30c1\u30fc\u30e0\u306e\u77f3\u5ddd\u3067\u3059\u3002 KUSANAGI\u3067\u3082\u63a1\u7528\u3057\u3066\u3044\u308b nginx \u306f\u975e\u5e38\u306b\u9ad8\u6027\u80fd\u306aWeb\u30b5\u30fc\u30d0 ... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kusanagi.tokyo\/column\/archives\/column_8456\" \/>\n<meta property=\"og:site_name\" content=\"KUSANAGI Tech Column\" \/>\n<meta property=\"article:published_time\" content=\"2024-06-07T06:26:45+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-16T16:31:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/kusanagi.tokyo\/column\/wp-content\/uploads\/2024\/06\/nginx_location_auth.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1300\" \/>\n\t<meta property=\"og:image:height\" content=\"660\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"\u77f3\u5ddd\u82f1\u5178\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@kusanagi_saya\" \/>\n<meta name=\"twitter:site\" content=\"@kusanagi_saya\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/archives\\\/column_8456#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/archives\\\/column_8456\"},\"author\":{\"name\":\"\u77f3\u5ddd\u82f1\u5178\",\"@id\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/#\\\/schema\\\/person\\\/08f142ea8ffd83cff021b0898651a3d4\"},\"headline\":\"Nginx \u306e location \u3067\u30a2\u30af\u30bb\u30b9\u5236\u9650\u3092\u304b\u3051\u308b\u969b\u306e\u843d\u3068\u3057\u7a74\",\"datePublished\":\"2024-06-07T06:26:45+00:00\",\"dateModified\":\"2026-02-16T16:31:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/archives\\\/column_8456\"},\"wordCount\":79,\"publisher\":{\"@id\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/archives\\\/column_8456#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/wp-content\\\/uploads\\\/2024\\\/06\\\/nginx_location_auth.jpg\",\"keywords\":[\"\u6280\u8853\u89e3\u8aac\"],\"articleSection\":[\"Nginx\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/archives\\\/column_8456\",\"url\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/archives\\\/column_8456\",\"name\":\"Nginx \u306e location \u3067\u30a2\u30af\u30bb\u30b9\u5236\u9650\u3092\u304b\u3051\u308b\u969b\u306e\u843d\u3068\u3057\u7a74 - KUSANAGI Tech Column\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/archives\\\/column_8456#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/archives\\\/column_8456#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/wp-content\\\/uploads\\\/2024\\\/06\\\/nginx_location_auth.jpg\",\"datePublished\":\"2024-06-07T06:26:45+00:00\",\"dateModified\":\"2026-02-16T16:31:50+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/archives\\\/column_8456#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/archives\\\/column_8456\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/archives\\\/column_8456#primaryimage\",\"url\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/wp-content\\\/uploads\\\/2024\\\/06\\\/nginx_location_auth.jpg\",\"contentUrl\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/wp-content\\\/uploads\\\/2024\\\/06\\\/nginx_location_auth.jpg\",\"width\":1300,\"height\":660},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/archives\\\/column_8456#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u30db\u30fc\u30e0\",\"item\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Nginx \u306e location \u3067\u30a2\u30af\u30bb\u30b9\u5236\u9650\u3092\u304b\u3051\u308b\u969b\u306e\u843d\u3068\u3057\u7a74\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/#website\",\"url\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/\",\"name\":\"KUSANAGI Tech Column\",\"description\":\"\u901f\u3055\u306e\u7406\u7531\u3092\u77e5\u308b\u3002\u5b89\u5168\u306e\u4ed5\u7d44\u307f\u3092\u77e5\u308b\u3002WordPress\u904b\u7528\u306e\u300c\u306a\u305c\uff1f\u300d\u3092\u89e3\u304f\u6280\u8853\u30b3\u30e9\u30e0\",\"publisher\":{\"@id\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/#organization\",\"name\":\"KUSANAGI Tech Column\",\"url\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/wp-content\\\/uploads\\\/2024\\\/07\\\/logo-tc.png\",\"contentUrl\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/wp-content\\\/uploads\\\/2024\\\/07\\\/logo-tc.png\",\"width\":716,\"height\":57,\"caption\":\"KUSANAGI Tech Column\"},\"image\":{\"@id\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/x.com\\\/kusanagi_saya\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/#\\\/schema\\\/person\\\/08f142ea8ffd83cff021b0898651a3d4\",\"name\":\"\u77f3\u5ddd\u82f1\u5178\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/7e81fbb715fb680d7983f56482ef3104df5a0a3359e8f7daeadd1047e9c97e2a?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/7e81fbb715fb680d7983f56482ef3104df5a0a3359e8f7daeadd1047e9c97e2a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/7e81fbb715fb680d7983f56482ef3104df5a0a3359e8f7daeadd1047e9c97e2a?s=96&d=mm&r=g\",\"caption\":\"\u77f3\u5ddd\u82f1\u5178\"},\"description\":\"\u5b66\u751f\u6642\u4ee3\u306f\u81ea\u30c9\u30e1\u30a4\u30f3\u3092\u53d6\u5f97\u3057\u3066\u81ea\u5b85\u3067\u30b5\u30fc\u30d0\u3092\u904b\u7528\u3057\u3066\u3044\u307e\u3057\u305f\u3002\u524d\u8077\u3067\u306f\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u306e\u4f01\u753b\u30fb\u958b\u767a\u30fb\u62e1\u8ca9\u306b\u4e00\u8cab\u3057\u3066\u5f93\u4e8b\u3057\u3001\u73fe\u5728\u306fKUSANAGI\u30fbWEXAL\u30fbDavid\u306e\u958b\u767a\u3092\u3057\u3066\u3044\u307e\u3059\u3002\",\"url\":\"https:\\\/\\\/kusanagi.tokyo\\\/column\\\/archives\\\/column_author\\\/hideishi\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Nginx \u306e location \u3067\u30a2\u30af\u30bb\u30b9\u5236\u9650\u3092\u304b\u3051\u308b\u969b\u306e\u843d\u3068\u3057\u7a74 - KUSANAGI Tech Column","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:\/\/kusanagi.tokyo\/column\/archives\/column_8456","og_locale":"ja_JP","og_type":"article","og_title":"Nginx \u306e location \u3067\u30a2\u30af\u30bb\u30b9\u5236\u9650\u3092\u304b\u3051\u308b\u969b\u306e\u843d\u3068\u3057\u7a74 - KUSANAGI Tech Column","og_description":"\u30d7\u30e9\u30a4\u30e0\u30fb\u30b9\u30c8\u30e9\u30c6\u30b8\u30fc\u300cKUSANAGI\u300d\u958b\u767a\u30c1\u30fc\u30e0\u306e\u77f3\u5ddd\u3067\u3059\u3002 KUSANAGI\u3067\u3082\u63a1\u7528\u3057\u3066\u3044\u308b nginx \u306f\u975e\u5e38\u306b\u9ad8\u6027\u80fd\u306aWeb\u30b5\u30fc\u30d0 ... Read more","og_url":"https:\/\/kusanagi.tokyo\/column\/archives\/column_8456","og_site_name":"KUSANAGI Tech Column","article_published_time":"2024-06-07T06:26:45+00:00","article_modified_time":"2026-02-16T16:31:50+00:00","og_image":[{"width":1300,"height":660,"url":"https:\/\/kusanagi.tokyo\/column\/wp-content\/uploads\/2024\/06\/nginx_location_auth.jpg","type":"image\/jpeg"}],"author":"\u77f3\u5ddd\u82f1\u5178","twitter_card":"summary_large_image","twitter_creator":"@kusanagi_saya","twitter_site":"@kusanagi_saya","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kusanagi.tokyo\/column\/archives\/column_8456#article","isPartOf":{"@id":"https:\/\/kusanagi.tokyo\/column\/archives\/column_8456"},"author":{"name":"\u77f3\u5ddd\u82f1\u5178","@id":"https:\/\/kusanagi.tokyo\/column\/#\/schema\/person\/08f142ea8ffd83cff021b0898651a3d4"},"headline":"Nginx \u306e location \u3067\u30a2\u30af\u30bb\u30b9\u5236\u9650\u3092\u304b\u3051\u308b\u969b\u306e\u843d\u3068\u3057\u7a74","datePublished":"2024-06-07T06:26:45+00:00","dateModified":"2026-02-16T16:31:50+00:00","mainEntityOfPage":{"@id":"https:\/\/kusanagi.tokyo\/column\/archives\/column_8456"},"wordCount":79,"publisher":{"@id":"https:\/\/kusanagi.tokyo\/column\/#organization"},"image":{"@id":"https:\/\/kusanagi.tokyo\/column\/archives\/column_8456#primaryimage"},"thumbnailUrl":"https:\/\/kusanagi.tokyo\/column\/wp-content\/uploads\/2024\/06\/nginx_location_auth.jpg","keywords":["\u6280\u8853\u89e3\u8aac"],"articleSection":["Nginx"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/kusanagi.tokyo\/column\/archives\/column_8456","url":"https:\/\/kusanagi.tokyo\/column\/archives\/column_8456","name":"Nginx \u306e location \u3067\u30a2\u30af\u30bb\u30b9\u5236\u9650\u3092\u304b\u3051\u308b\u969b\u306e\u843d\u3068\u3057\u7a74 - KUSANAGI Tech Column","isPartOf":{"@id":"https:\/\/kusanagi.tokyo\/column\/#website"},"primaryImageOfPage":{"@id":"https:\/\/kusanagi.tokyo\/column\/archives\/column_8456#primaryimage"},"image":{"@id":"https:\/\/kusanagi.tokyo\/column\/archives\/column_8456#primaryimage"},"thumbnailUrl":"https:\/\/kusanagi.tokyo\/column\/wp-content\/uploads\/2024\/06\/nginx_location_auth.jpg","datePublished":"2024-06-07T06:26:45+00:00","dateModified":"2026-02-16T16:31:50+00:00","breadcrumb":{"@id":"https:\/\/kusanagi.tokyo\/column\/archives\/column_8456#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kusanagi.tokyo\/column\/archives\/column_8456"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kusanagi.tokyo\/column\/archives\/column_8456#primaryimage","url":"https:\/\/kusanagi.tokyo\/column\/wp-content\/uploads\/2024\/06\/nginx_location_auth.jpg","contentUrl":"https:\/\/kusanagi.tokyo\/column\/wp-content\/uploads\/2024\/06\/nginx_location_auth.jpg","width":1300,"height":660},{"@type":"BreadcrumbList","@id":"https:\/\/kusanagi.tokyo\/column\/archives\/column_8456#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/kusanagi.tokyo\/column"},{"@type":"ListItem","position":2,"name":"Nginx \u306e location \u3067\u30a2\u30af\u30bb\u30b9\u5236\u9650\u3092\u304b\u3051\u308b\u969b\u306e\u843d\u3068\u3057\u7a74"}]},{"@type":"WebSite","@id":"https:\/\/kusanagi.tokyo\/column\/#website","url":"https:\/\/kusanagi.tokyo\/column\/","name":"KUSANAGI Tech Column","description":"\u901f\u3055\u306e\u7406\u7531\u3092\u77e5\u308b\u3002\u5b89\u5168\u306e\u4ed5\u7d44\u307f\u3092\u77e5\u308b\u3002WordPress\u904b\u7528\u306e\u300c\u306a\u305c\uff1f\u300d\u3092\u89e3\u304f\u6280\u8853\u30b3\u30e9\u30e0","publisher":{"@id":"https:\/\/kusanagi.tokyo\/column\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kusanagi.tokyo\/column\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/kusanagi.tokyo\/column\/#organization","name":"KUSANAGI Tech Column","url":"https:\/\/kusanagi.tokyo\/column\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kusanagi.tokyo\/column\/#\/schema\/logo\/image\/","url":"https:\/\/kusanagi.tokyo\/column\/wp-content\/uploads\/2024\/07\/logo-tc.png","contentUrl":"https:\/\/kusanagi.tokyo\/column\/wp-content\/uploads\/2024\/07\/logo-tc.png","width":716,"height":57,"caption":"KUSANAGI Tech Column"},"image":{"@id":"https:\/\/kusanagi.tokyo\/column\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/kusanagi_saya"]},{"@type":"Person","@id":"https:\/\/kusanagi.tokyo\/column\/#\/schema\/person\/08f142ea8ffd83cff021b0898651a3d4","name":"\u77f3\u5ddd\u82f1\u5178","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/secure.gravatar.com\/avatar\/7e81fbb715fb680d7983f56482ef3104df5a0a3359e8f7daeadd1047e9c97e2a?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/7e81fbb715fb680d7983f56482ef3104df5a0a3359e8f7daeadd1047e9c97e2a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/7e81fbb715fb680d7983f56482ef3104df5a0a3359e8f7daeadd1047e9c97e2a?s=96&d=mm&r=g","caption":"\u77f3\u5ddd\u82f1\u5178"},"description":"\u5b66\u751f\u6642\u4ee3\u306f\u81ea\u30c9\u30e1\u30a4\u30f3\u3092\u53d6\u5f97\u3057\u3066\u81ea\u5b85\u3067\u30b5\u30fc\u30d0\u3092\u904b\u7528\u3057\u3066\u3044\u307e\u3057\u305f\u3002\u524d\u8077\u3067\u306f\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u306e\u4f01\u753b\u30fb\u958b\u767a\u30fb\u62e1\u8ca9\u306b\u4e00\u8cab\u3057\u3066\u5f93\u4e8b\u3057\u3001\u73fe\u5728\u306fKUSANAGI\u30fbWEXAL\u30fbDavid\u306e\u958b\u767a\u3092\u3057\u3066\u3044\u307e\u3059\u3002","url":"https:\/\/kusanagi.tokyo\/column\/archives\/column_author\/hideishi"}]}},"_links":{"self":[{"href":"https:\/\/kusanagi.tokyo\/column\/wp-json\/wp\/v2\/posts\/8456","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kusanagi.tokyo\/column\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kusanagi.tokyo\/column\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kusanagi.tokyo\/column\/wp-json\/wp\/v2\/users\/27"}],"replies":[{"embeddable":true,"href":"https:\/\/kusanagi.tokyo\/column\/wp-json\/wp\/v2\/comments?post=8456"}],"version-history":[{"count":4,"href":"https:\/\/kusanagi.tokyo\/column\/wp-json\/wp\/v2\/posts\/8456\/revisions"}],"predecessor-version":[{"id":8784,"href":"https:\/\/kusanagi.tokyo\/column\/wp-json\/wp\/v2\/posts\/8456\/revisions\/8784"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kusanagi.tokyo\/column\/wp-json\/wp\/v2\/media\/8462"}],"wp:attachment":[{"href":"https:\/\/kusanagi.tokyo\/column\/wp-json\/wp\/v2\/media?parent=8456"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kusanagi.tokyo\/column\/wp-json\/wp\/v2\/categories?post=8456"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kusanagi.tokyo\/column\/wp-json\/wp\/v2\/tags?post=8456"},{"taxonomy":"series","embeddable":true,"href":"https:\/\/kusanagi.tokyo\/column\/wp-json\/wp\/v2\/series?post=8456"},{"taxonomy":"journey","embeddable":true,"href":"https:\/\/kusanagi.tokyo\/column\/wp-json\/wp\/v2\/journey?post=8456"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/kusanagi.tokyo\/column\/wp-json\/wp\/v2\/product?post=8456"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}