{"id":132,"date":"2022-11-01T21:45:22","date_gmt":"2023-11-09T21:14:33","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/index.php\/2023\/11\/30\/nginx%e3%81%ae%e8%a8%ad%e5%ae%9a%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%81%ae%e6%a7%8b%e9%80%a0%e3%81%a8%e8%a8%ad%e5%ae%9a%e3%82%b3%e3%83%b3%e3%83%86%e3%82%ad%e3%82%b9%e3%83%88%e3%82%92%e7%90%86\/"},"modified":"2025-07-31T21:01:01","modified_gmt":"2025-07-31T12:01:01","slug":"nginx%e3%81%ae%e8%a8%ad%e5%ae%9a%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%81%ae%e6%a7%8b%e9%80%a0%e3%81%a8%e8%a8%ad%e5%ae%9a%e3%82%b3%e3%83%b3%e3%83%86%e3%82%ad%e3%82%b9%e3%83%88%e3%82%92%e7%90%86","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/nginx%e3%81%ae%e8%a8%ad%e5%ae%9a%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%81%ae%e6%a7%8b%e9%80%a0%e3%81%a8%e8%a8%ad%e5%ae%9a%e3%82%b3%e3%83%b3%e3%83%86%e3%82%ad%e3%82%b9%e3%83%88%e3%82%92%e7%90%86\/","title":{"rendered":"Nginx\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u69cb\u9020\u3068\u8a2d\u5b9a\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3092\u7406\u89e3\u3059\u308b"},"content":{"rendered":"<h3>\u4ee5\u4e0b\u306e\u6587\u7ae0\u3092\u65e5\u672c\u8a9e\u3067\u81ea\u7136\u306b\u8a00\u3044\u63db\u3048\u3066\u304f\u3060\u3055\u3044\u30021\u3064\u306e\u9078\u629e\u80a2\u3067\u69cb\u3044\u307e\u305b\u3093\u3002<\/h3>\n<p>\u30a4\u30f3\u30c8\u30ed\u30c0\u30af\u30b7\u30e7\u30f3<\/p>\n<p>Nginx\u306f\u9ad8\u6027\u80fd\u306a\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc\u3067\u3042\u308a\u3001\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u4e0a\u3067\u6700\u5927\u306e\u30b5\u30a4\u30c8\u306e\u8ca0\u8377\u3092\u51e6\u7406\u3059\u308b\u5f79\u5272\u3092\u62c5\u3063\u3066\u3044\u307e\u3059\u3002\u7279\u306b\u591a\u304f\u306e\u540c\u6642\u63a5\u7d9a\u306e\u51e6\u7406\u306b\u512a\u308c\u3066\u304a\u308a\u3001\u9759\u7684\u306a\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u8ee2\u9001\u3084\u63d0\u4f9b\u306b\u3082\u512a\u308c\u3066\u3044\u307e\u3059\u3002\u672c\u30ac\u30a4\u30c9\u3067\u306f\u3001Nginx\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u69cb\u9020\u3068\u30d5\u30a1\u30a4\u30eb\u306e\u8a2d\u8a08\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<h2>Nginx\u306e\u8a2d\u5b9a\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3092\u7406\u89e3\u3059\u308b<\/h2>\n<p>\u3053\u306e\u30ac\u30a4\u30c9\u3067\u306f\u3001\u30e1\u30a4\u30f3\u306eNginx\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u69cb\u9020\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306f\u3001Nginx\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u306b\u3088\u3063\u3066\u5834\u6240\u304c\u7570\u306a\u308a\u307e\u3059\u3002\u591a\u304f\u306eLinux\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u3067\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u306f \/etc\/nginx\/nginx.conf \u306b\u3042\u308a\u307e\u3059\u3002\u3082\u3057\u5b58\u5728\u3057\u306a\u3044\u5834\u5408\u306f\u3001\/usr\/local\/nginx\/conf\/nginx.conf \u3084 \/usr\/local\/etc\/nginx\/nginx.conf \u306b\u3042\u308b\u53ef\u80fd\u6027\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u30e1\u30a4\u30f3\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u773a\u3081\u308b\u969b\u306b\u6700\u521d\u306b\u6c17\u3065\u304f\u3079\u304d\u3053\u3068\u306e\u4e00\u3064\u306f\u3001\u6728\u69cb\u9020\u306b\u4f3c\u305f\u5f62\u5f0f\u3067\u6574\u7406\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3067\u3059\u3002\u3053\u308c\u306f\u3001\u6ce2\u62ec\u5f27\uff08{\u3068}\uff09\u3067\u793a\u3055\u308c\u308b\u30bb\u30c3\u30c8\u306b\u3088\u3063\u3066\u30de\u30fc\u30af\u3055\u308c\u307e\u3059\u3002Nginx\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3067\u306f\u3001\u3053\u308c\u3089\u306e\u6ce2\u62ec\u5f27\u306b\u3088\u3063\u3066\u5b9a\u7fa9\u3055\u308c\u308b\u9818\u57df\u3092\u300c\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u300d\u3068\u547c\u3073\u307e\u3059\u3002\u306a\u305c\u306a\u3089\u3001\u305d\u308c\u3089\u306f\u3001\u8a2d\u5b9a\u306e\u8a73\u7d30\u304c\u95a2\u5fc3\u306e\u7bc4\u56f2\u306b\u5fdc\u3058\u3066\u5206\u96e2\u3055\u308c\u3066\u3044\u308b\u304b\u3089\u3067\u3059\u3002\u3053\u308c\u3089\u306e\u5206\u5272\u306b\u3088\u308a\u3001\u7d44\u7e54\u7684\u306a\u69cb\u9020\u304c\u63d0\u4f9b\u3055\u308c\u3001\u4e00\u90e8\u306e\u6761\u4ef6\u4ed8\u304d\u30ed\u30b8\u30c3\u30af\u3082\u9069\u7528\u3059\u308b\u8a2d\u5b9a\u3092\u6c7a\u5b9a\u3059\u308b\u5f79\u5272\u3092\u679c\u305f\u3057\u307e\u3059\u3002<\/p>\n<p>\u8907\u6570\u306e\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u304c\u968e\u5c64\u7684\u306b\u914d\u7f6e\u3055\u308c\u308b\u3053\u3068\u304c\u3042\u308b\u305f\u3081\u3001Nginx\u3067\u306f\u8a2d\u5b9a\u3092\u7d99\u627f\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4e00\u822c\u7684\u306a\u539f\u5247\u3068\u3057\u3066\u3001\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u304c\u8907\u6570\u306e\u5165\u308c\u5b50\u30b9\u30b3\u30fc\u30d7\u3067\u6709\u52b9\u3067\u3042\u308b\u5834\u5408\u3001\u3088\u308a\u5e83\u7bc4\u306a\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3067\u306e\u5ba3\u8a00\u306f\u3001\u5b50\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306b\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u3068\u3057\u3066\u6e21\u3055\u308c\u307e\u3059\u3002\u5b50\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306f\u3053\u308c\u3089\u306e\u5024\u3092\u4e0a\u66f8\u304d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u306a\u304a\u3001\u914d\u5217\u578b\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306e\u30aa\u30fc\u30d0\u30fc\u30e9\u30a4\u30c9\u306f\u3001\u524d\u306e\u5024\u3092\u7f6e\u304d\u63db\u3048\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u306e\u3067\u3001\u305d\u308c\u306b\u6ce8\u610f\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u6307\u793a\u306f\u3001\u305d\u308c\u3089\u304c\u8a2d\u8a08\u3055\u308c\u305f\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3067\u306e\u307f\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002Nginx\u306f\u3001\u8aa4\u3063\u305f\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3067\u5ba3\u8a00\u3055\u308c\u305f\u6307\u793a\u3092\u542b\u3080\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u3080\u969b\u306b\u30a8\u30e9\u30fc\u3092\u767a\u751f\u3055\u305b\u307e\u3059\u3002Nginx\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u306f\u3001\u5404\u6307\u793a\u304c\u6709\u52b9\u306a\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306e\u60c5\u5831\u304c\u8a18\u8f09\u3055\u308c\u3066\u304a\u308a\u3001\u305d\u308c\u306f\u4fbf\u5229\u306a\u53c2\u8003\u8cc7\u6599\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u3067\u306f\u3001Nginx\u3092\u4f7f\u7528\u3059\u308b\u969b\u306b\u6700\u3082\u4e00\u822c\u7684\u306a\u72b6\u6cc1\u306b\u3064\u3044\u3066\u8a71\u3057\u5408\u3044\u307e\u3059\u3002<\/p>\n<h2>\u30b3\u30a2\u306e\u6587\u8108<\/h2>\n<p>\u6700\u521d\u306b\u8b70\u8ad6\u3059\u308b\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306e\u30b0\u30eb\u30fc\u30d7\u306f\u3001\u968e\u5c64\u7684\u306a\u30c4\u30ea\u30fc\u3092\u4f5c\u6210\u3057\u3001\u500b\u3005\u306e\u8a2d\u5b9a\u30d6\u30ed\u30c3\u30af\u3092\u5206\u96e2\u3059\u308b\u305f\u3081\u306bNginx\u304c\u4f7f\u7528\u3059\u308b\u30b3\u30a2\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3067\u3059\u3002\u3053\u308c\u3089\u306e\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306f\u3001Nginx\u8a2d\u5b9a\u306e\u4e3b\u8981\u306a\u69cb\u9020\u3092\u69cb\u6210\u3059\u308b\u3082\u306e\u3067\u3059\u3002<\/p>\n<h3>\u4e3b\u8981\u306a\u6587\u8108<\/h3>\n<p>\u6700\u3082\u4e00\u822c\u7684\u306a\u6587\u8108\u306f\u300c\u30e1\u30a4\u30f3\u300d\u307e\u305f\u306f\u300c\u30b0\u30ed\u30fc\u30d0\u30eb\u300d\u6587\u8108\u3067\u3059\u3002\u3053\u308c\u306f\u3001\u901a\u5e38\u306e\u6587\u8108\u30d6\u30ed\u30c3\u30af\u5185\u306b\u542b\u307e\u308c\u306a\u3044\u552f\u4e00\u306e\u6587\u8108\u3067\u3059\u3002<\/p>\n<div>\n<p>\/etc\/nginx\/nginx.conf\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u65e5\u672c\u8a9e\u3067\u8a00\u3044\u63db\u3048\u3089\u308c\u307e\u3059\uff1a<\/p>\n<p>\u300c\/etc\/nginx\/nginx.conf\u300d<\/p>\n<\/div>\n<pre class=\"post-pre\"><code># The main context is here, outside any other contexts\r\n\r\n. . .\r\n\r\n<mark>context<\/mark> {\r\n\r\n    . . .\r\n\r\n}\r\n<\/code><\/pre>\n<p>\u3053\u308c\u3089\u306e\u30d6\u30ed\u30c3\u30af\u306e\u5b8c\u5168\u306b\u5916\u90e8\u306b\u5b58\u5728\u3059\u308b\u4efb\u610f\u306e\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306f\u3001\u300cmain\u300d\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306b\u5c5e\u3057\u3066\u3044\u307e\u3059\u3002Nginx\u306e\u8a2d\u5b9a\u304c\u30e2\u30b8\u30e5\u30fc\u30eb\u5f0f\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u3001\u3064\u307e\u308a\u8907\u6570\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u8a2d\u5b9a\u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u3042\u308b\u5834\u5408\u3001\u4e00\u90e8\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u306f\u62ec\u5f27\u306e\u306a\u3044\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u5916\u306b\u5b58\u5728\u3059\u308b\u3088\u3046\u306b\u898b\u3048\u308b\u6307\u793a\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u8a2d\u5b9a\u304c\u4e00\u7dd2\u306b\u30ed\u30fc\u30c9\u3055\u308c\u308b\u3068\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u5185\u306b\u542b\u307e\u308c\u307e\u3059\u3002<\/p>\n<p>\u30e1\u30a4\u30f3\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306f\u3001Nginx\u306e\u8a2d\u5b9a\u306b\u304a\u3044\u3066\u6700\u3082\u5e83\u7bc4\u306a\u74b0\u5883\u3092\u8868\u3057\u307e\u3059\u3002\u3053\u306e\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5168\u4f53\u306b\u5f71\u97ff\u3092\u4e0e\u3048\u308b\u8a73\u7d30\u306a\u8a2d\u5b9a\u3092\u884c\u3046\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u306e\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306f\u3001\u4e0b\u4f4d\u306e\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306b\u3082\u5f71\u97ff\u3092\u53ca\u307c\u3057\u307e\u3059\u304c\u3001\u305d\u306e\u4e2d\u306b\u306f\u4e0b\u4f4d\u30ec\u30d9\u30eb\u3067\u4e0a\u66f8\u304d\u3067\u304d\u306a\u3044\u3082\u306e\u3082\u591a\u304f\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u30e1\u30a4\u30f3\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306b\u8a2d\u5b9a\u3055\u308c\u308b\u4e00\u822c\u7684\u306a\u8a73\u7d30\u306f\u3001\u30ef\u30fc\u30ab\u30fc\u30d7\u30ed\u30bb\u30b9\u306e\u5b9f\u884c\u306b\u4f7f\u7528\u3055\u308c\u308b\u30b7\u30b9\u30c6\u30e0\u30e6\u30fc\u30b6\u30fc\u3068\u30b0\u30eb\u30fc\u30d7\u3001\u30ef\u30fc\u30ab\u30fc\u306e\u6570\u3001\u304a\u3088\u3073\u30e1\u30a4\u30f3\u306eNginx\u30d7\u30ed\u30bb\u30b9\u306eID\u3092\u4fdd\u5b58\u3059\u308b\u305f\u3081\u306e\u30d5\u30a1\u30a4\u30eb\u3067\u3059\u3002\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5168\u4f53\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30a8\u30e9\u30fc\u30d5\u30a1\u30a4\u30eb\u306f\u3001\u3053\u306e\u30ec\u30d9\u30eb\u3067\u8a2d\u5b9a\u3067\u304d\u307e\u3059\uff08\u3053\u308c\u306f\u3088\u308a\u5177\u4f53\u7684\u306a\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3067\u30aa\u30fc\u30d0\u30fc\u30e9\u30a4\u30c9\u3059\u308b\u3053\u3068\u3082\u3042\u308a\u307e\u3059\uff09\u3002<\/p>\n<h3>\u30a4\u30d9\u30f3\u30c8\u306e\u80cc\u666f<\/h3>\n<p>\u300c\u30a4\u30d9\u30f3\u30c8\u300d\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306f\u300c\u30e1\u30a4\u30f3\u300d\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306b\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u306f\u3001Nginx\u304c\u63a5\u7d9a\u3092\u4e00\u822c\u7684\u306a\u30ec\u30d9\u30eb\u3067\u3069\u306e\u3088\u3046\u306b\u51e6\u7406\u3059\u308b\u304b\u306b\u5f71\u97ff\u3092\u4e0e\u3048\u308b\u30b0\u30ed\u30fc\u30d0\u30eb\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u8a2d\u5b9a\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002Nginx\u306e\u8a2d\u5b9a\u5185\u306b\u306f\u3001\u30a4\u30d9\u30f3\u30c8\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u304c1\u3064\u3060\u3051\u5b9a\u7fa9\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u6587\u8108\u306f\u3001\u4ed6\u306e\u304b\u3063\u3053\u3067\u62ec\u3089\u308c\u305f\u6587\u8108\u306e\u5916\u5074\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3067\u306f\u3001\u6b21\u306e\u3088\u3046\u306b\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<div>\/etc\/nginx\/nginx.conf \u306f\u3001\u65e5\u672c\u8a9e\u3067\u8a00\u3046\u3068\u300c\u30a8\u30c8\u30bb\u30c3\u30c6\u30a3\u30f3\u30b0\/\u30a8\u30f3\u30b8\u30f3\u30a8\u30c3\u30af\u30b9\/\u30a8\u30f3\u30b8\u30f3\u30a8\u30c3\u30af\u30b9\/\u30b3\u30f3\u30d5\u30a3\u30b0\u300d\u3068\u306a\u308a\u307e\u3059\u3002<\/div>\n<pre class=\"post-pre\"><code># main context\r\n\r\nevents {\r\n\r\n    # events context\r\n    . . .\r\n\r\n}\r\n<\/code><\/pre>\n<p>Nginx\u306f\u30a4\u30d9\u30f3\u30c8\u30d9\u30fc\u30b9\u306e\u63a5\u7d9a\u51e6\u7406\u30e2\u30c7\u30eb\u3092\u4f7f\u7528\u3057\u3066\u304a\u308a\u3001\u3053\u306e\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u5185\u3067\u5b9a\u7fa9\u3055\u308c\u305f\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u304c\u3001\u30ef\u30fc\u30ab\u30fc\u30d7\u30ed\u30bb\u30b9\u304c\u63a5\u7d9a\u3092\u51e6\u7406\u3059\u308b\u65b9\u6cd5\u3092\u6c7a\u5b9a\u3057\u307e\u3059\u3002\u4e3b\u306b\u3053\u3053\u3067\u898b\u3064\u304b\u308b\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306f\u3001\u63a5\u7d9a\u51e6\u7406\u306e\u30c6\u30af\u30cb\u30c3\u30af\u3092\u9078\u629e\u3059\u308b\u304b\u3001\u307e\u305f\u306f\u3053\u308c\u3089\u306e\u65b9\u6cd5\u306e\u5b9f\u88c5\u65b9\u6cd5\u3092\u5909\u66f4\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u901a\u5e38\u3001\u63a5\u7d9a\u51e6\u7406\u306e\u65b9\u6cd5\u306f\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u304c\u6700\u3082\u52b9\u7387\u7684\u306a\u9078\u629e\u80a2\u306b\u57fa\u3065\u3044\u3066\u81ea\u52d5\u7684\u306b\u9078\u629e\u3055\u308c\u307e\u3059\u3002Linux\u30b7\u30b9\u30c6\u30e0\u3067\u306f\u3001\u901a\u5e38\u3001epoll\u30e1\u30bd\u30c3\u30c9\u304c\u6700\u826f\u306e\u9078\u629e\u3067\u3059\u3002<\/p>\n<p>\u4ed6\u306e\u8a2d\u5b9a\u53ef\u80fd\u306a\u9805\u76ee\u306b\u306f\u3001\u5404\u30ef\u30fc\u30ab\u30fc\u304c\u51e6\u7406\u3067\u304d\u308b\u63a5\u7d9a\u306e\u6570\u3001\u30ef\u30fc\u30ab\u30fc\u304c\u4e00\u5ea6\u306b\u4e00\u3064\u306e\u63a5\u7d9a\u306e\u307f\u3092\u51e6\u7406\u3059\u308b\u304b\u3001\u4fdd\u7559\u4e2d\u306e\u63a5\u7d9a\u3092\u3059\u3079\u3066\u51e6\u7406\u3059\u308b\u304b\u306e\u901a\u77e5\u3092\u53d7\u3051\u305f\u5f8c\u306b\u51e6\u7406\u3059\u308b\u304b\u3001\u307e\u305f\u306f\u30ef\u30fc\u30ab\u30fc\u304c\u9806\u756a\u306b\u30a4\u30d9\u30f3\u30c8\u306b\u5fdc\u7b54\u3059\u308b\u304b\u3069\u3046\u304b\u304c\u542b\u307e\u308c\u307e\u3059\u3002<\/p>\n<h3>HTTP\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8<\/h3>\n<p>Nginx\u3092\u8a2d\u5b9a\u3059\u308b\u969b\u3001Web\u30b5\u30fc\u30d0\u30fc\u307e\u305f\u306f\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u3068\u3057\u3066\u306e\u4f7f\u7528\u3067\u306f\u3001HTTP\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3092\u5b9a\u7fa9\u3059\u308b\u3053\u3068\u304c\u304a\u305d\u3089\u304f\u6700\u3082\u4e00\u822c\u7684\u3067\u3059\u3002HTTP\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306f\u3001\u5927\u90e8\u5206\u306e\u8a2d\u5b9a\u3092\u4fdd\u6301\u3057\u307e\u3059\u3002\u3053\u306e\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306b\u306f\u3001HTTP\u307e\u305f\u306fHTTPS\u63a5\u7d9a\u306e\u51e6\u7406\u65b9\u6cd5\u3092\u5b9a\u7fa9\u3059\u308b\u305f\u3081\u306b\u5fc5\u8981\u306a\u3059\u3079\u3066\u306e\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3084\u4ed6\u306e\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u304c\u542b\u307e\u308c\u307e\u3059\u3002<\/p>\n<p>http\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306f\u30a4\u30d9\u30f3\u30c8\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306e\u5144\u5f1f\u3067\u3042\u308b\u305f\u3081\u3001\u30cd\u30b9\u30c8\u3067\u306f\u306a\u304f\u4e21\u65b9\u3092\u6a2a\u306b\u4e26\u3079\u308b\u3079\u304d\u3067\u3059\u3002\u4e21\u8005\u306f\u3069\u3061\u3089\u3082\u30e1\u30a4\u30f3\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306e\u5b50\u3067\u3059\u3002<\/p>\n<div>\/etc\/nginx\/nginx.conf\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a00\u3044\u63db\u3048\u3089\u308c\u307e\u3059\u3002<br \/>\n\u300cnginx\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3067\u3042\u308b\/etc\/nginx\/nginx.conf\u300d<\/div>\n<pre class=\"post-pre\"><code># main context\r\n\r\nevents {\r\n    # events context\r\n\r\n    . . .\r\n\r\n}\r\n\r\nhttp {\r\n    # http context\r\n\r\n    . . .\r\n\r\n}\r\n<\/code><\/pre>\n<p>\u4f4e\u3044\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3067\u306f\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u51e6\u7406\u65b9\u6cd5\u306b\u3064\u3044\u3066\u3088\u308a\u5177\u4f53\u7684\u306b\u6307\u793a\u304c\u3055\u308c\u307e\u3059\u304c\u3001\u3053\u306e\u30ec\u30d9\u30eb\u306e\u6307\u4ee4\u306f\u3001\u5b9a\u7fa9\u3055\u308c\u305f\u4eee\u60f3\u30b5\u30fc\u30d0\u30fc\u5168\u4f53\u306b\u5bfe\u3057\u3066\u30c7\u30d5\u30a9\u30eb\u30c8\u3092\u5236\u5fa1\u3057\u307e\u3059\u3002\u3053\u308c\u3088\u308a\u4e0b\u306e\u968e\u5c64\u3067\u306f\u3001\u7d99\u627f\u306e\u65b9\u6cd5\u306b\u5fdc\u3058\u3066\u591a\u304f\u306e\u6307\u4ee4\u304c\u8a2d\u5b9a\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306e\u3044\u304f\u3064\u304b\u306f\u3001\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u3068\u30a8\u30e9\u30fc\u30ed\u30b0\uff08access_log\u3068error_log\uff09\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u5834\u6240\u3092\u5236\u5fa1\u3057\u3001\u30d5\u30a1\u30a4\u30eb\u64cd\u4f5c\u306e\u975e\u540c\u671fI\/O\u3092\u8a2d\u5b9a\u3059\u308b\uff08aio\u3001sendfile\u3001directio\uff09\u3001\u30a8\u30e9\u30fc\u767a\u751f\u6642\u306e\u30b5\u30fc\u30d0\u306e\u72b6\u614b\u3092\u8a2d\u5b9a\u3059\u308b\uff08error_page\uff09\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u305d\u306e\u4ed6\u306e\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306f\u5727\u7e2e\uff08gzip\u3068gzip_disable\uff09\u3092\u8a2d\u5b9a\u3057\u3001TCP\u306e\u30ad\u30fc\u30d7\u30a2\u30e9\u30a4\u30d6\u8a2d\u5b9a\uff08keepalive_disable\u3001keepalive_requests\u3001keepalive_timeout\uff09\u3092\u5fae\u8abf\u6574\u3057\u3001\u30d1\u30b1\u30c3\u30c8\u3068\u30b7\u30b9\u30c6\u30e0\u30b3\u30fc\u30eb\u306e\u6700\u9069\u5316\u306e\u305f\u3081\u306bNginx\u304c\u5f93\u3046\u30eb\u30fc\u30eb\u3092\u8a2d\u5b9a\u3059\u308b\uff08sendfile\u3001tcp_nodelay\u3001tcp_nopush\uff09\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u8ffd\u52a0\u306e\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3067\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30ec\u30d9\u30eb\u3067\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8\u3068\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u30d5\u30a1\u30a4\u30eb\uff08root\u3068index\uff09\u3092\u8a2d\u5b9a\u3057\u3001\u3055\u307e\u3056\u307e\u306a\u30c7\u30fc\u30bf\u306e\u7a2e\u985e\u3092\u683c\u7d0d\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u308b\u30cf\u30c3\u30b7\u30e5\u30c6\u30fc\u30d6\u30eb\u3092\u8a2d\u5b9a\u3057\u307e\u3059\uff08server_names\u3001types\u3001variables\u306e*_hash_bucket_size\u3068*_hash_max_size\uff09\u3002\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u3001Nginx\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3>\u30b5\u30fc\u30d0\u30fc\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8<\/h3>\n<p>\u300c\u30b5\u30fc\u30d0\u30fc\u300d\u30b3\u30f3\u30c6\u30af\u30b9\u30c8\u306f\u300chttp\u300d\u30b3\u30f3\u30c6\u30af\u30b9\u30c8\u5185\u3067\u5ba3\u8a00\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u5165\u308c\u5b50\u306e\u304b\u3063\u3053\u3067\u8868\u3055\u308c\u308b\u30b3\u30f3\u30c6\u30af\u30b9\u30c8\u306e\u6700\u521d\u306e\u4f8b\u3067\u3059\u3002\u307e\u305f\u3001\u8907\u6570\u306e\u5ba3\u8a00\u3092\u8a31\u53ef\u3059\u308b\u6700\u521d\u306e\u30b3\u30f3\u30c6\u30af\u30b9\u30c8\u3067\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u30b5\u30fc\u30d0\u30fc\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306e\u4e00\u822c\u7684\u306a\u5f62\u5f0f\u306f\u3001\u6b21\u306e\u3088\u3046\u306b\u306a\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u3089\u306fhttp\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u5185\u306b\u914d\u7f6e\u3055\u308c\u308b\u3053\u3068\u3092\u5fd8\u308c\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\u300c\/etc\/nginx\/nginx.conf\u300d\u3092\u65e5\u672c\u8a9e\u3067\u8a00\u3044\u63db\u3048\u308b\u3068\u3069\u3046\u306a\u308a\u307e\u3059\u304b\uff1f<\/div>\n<pre class=\"post-pre\"><code># main context\r\n\r\nhttp {\r\n\r\n    # http context\r\n\r\n    server {\r\n\r\n        # first server context\r\n\r\n    }\r\n\r\n    server {\r\n\r\n        # second server context\r\n\r\n    }\r\n\r\n}\r\n<\/code><\/pre>\n<p>\u5404\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306f\u7279\u5b9a\u306e\u4eee\u60f3\u30b5\u30fc\u30d0\u30fc\u3092\u51e6\u7406\u3059\u308b\u305f\u3081\u3001\u8907\u6570\u306e\u30b5\u30fc\u30d0\u30fc\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3092\u5ba3\u8a00\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u5fc5\u8981\u306a\u3060\u3051\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\u3092\u4f5c\u6210\u3057\u3001\u305d\u308c\u305e\u308c\u304c\u7279\u5b9a\u306e\u63a5\u7d9a\u306e\u30b5\u30d6\u30bb\u30c3\u30c8\u3092\u51e6\u7406\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30bf\u30a4\u30d7\u306f\u3001Nginx\u304c\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3092\u9078\u629e\u3059\u308b\u305f\u3081\u306b\u6700\u521d\u306b\u4f7f\u7528\u3059\u308b\u3082\u306e\u3067\u3059\u3002\u5404\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u306f\u3001\u5358\u4e00\u306e\u30b5\u30fc\u30d0\u30fc\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3067\u5b9a\u7fa9\u3055\u308c\u305f\u8a2d\u5b9a\u306b\u5f93\u3063\u3066\u51e6\u7406\u3055\u308c\u308b\u305f\u3081\u3001Nginx\u306f\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u8a73\u7d30\u306b\u57fa\u3065\u3044\u3066\u6700\u3082\u9069\u5207\u306a\u30b5\u30fc\u30d0\u30fc\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3092\u9078\u629e\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u30c9\u30e1\u30a4\u30f3\u540d\u306e\u4f7f\u7528\u65b9\u6cd5\u304c\u7570\u306a\u308b2\u3064\u306e\u4e00\u822c\u7684\u306a\u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>listen: The IP address \/ port combination that this server block is designed to respond to. If a request is made by a client that matches these values, this block will potentially be selected to handle the connection.<\/li>\n<li>server_name: This directive is the other component used to select a server block for processing. If there are multiple server blocks with listen directives of the same specificity that can handle the request, Nginx will parse the \u201cHost\u201d header of the request and match it against this directive.<\/li>\n<\/ul>\n<p>\u3053\u306e\u6587\u8108\u3067\u306f\u3001\u30ed\u30b0\u3001\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e\u30eb\u30fc\u30c8\u3001\u5727\u7e2e\u306a\u3069\u3092\u542b\u3080\u3001http\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3067\u5b9a\u7fa9\u3055\u308c\u308b\u53ef\u80fd\u6027\u306e\u3042\u308b\u591a\u304f\u306e\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3092\u4e0a\u66f8\u304d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002http\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u304b\u3089\u5f15\u304d\u7d99\u304c\u308c\u308b\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306b\u52a0\u3048\u3066\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u5fdc\u7b54\u3059\u308b\u305f\u3081\u306b\u8a2d\u5b9a\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u69cb\u6210\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\uff08try_files\uff09\u3001\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3084\u30ea\u30e9\u30a4\u30c8\u3092\u767a\u884c\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\uff08return\u3084rewrite\uff09\u3001\u304a\u3088\u3073\u4efb\u610f\u306e\u5909\u6570\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\uff08set\uff09\u3002<\/p>\n<h3>\u5834\u6240\u306e\u6587\u8108<\/h3>\n<p>\u3042\u306a\u305f\u304c\u5b9a\u671f\u7684\u306b\u53d6\u308a\u7d44\u3080\u6b21\u306e\u6587\u8108\u306f\u3001\u5834\u6240\u306e\u6587\u8108\u3067\u3059\u3002\u5834\u6240\u306e\u6587\u8108\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u306e\u6587\u8108\u3068\u591a\u304f\u306e\u95a2\u4fc2\u54c1\u8cea\u3092\u5171\u6709\u3057\u3066\u3044\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u8907\u6570\u306e\u5834\u6240\u306e\u6587\u8108\u304c\u5b9a\u7fa9\u3055\u308c\u3001\u305d\u308c\u305e\u308c\u306e\u5834\u6240\u306f\u7279\u5b9a\u306e\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u51e6\u7406\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u3001\u5404\u5834\u6240\u306f\u5834\u6240\u306e\u5b9a\u7fa9\u3092\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30ea\u30af\u30a8\u30b9\u30c8\u3068\u4e00\u81f4\u3055\u305b\u308b\u9078\u629e\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3092\u901a\u3058\u3066\u9078\u629e\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\u306e\u9078\u629e\u3092\u6c7a\u5b9a\u3059\u308b\u6307\u793a\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u5185\u3067\u5b9a\u7fa9\u3055\u308c\u307e\u3059\u304c\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u51e6\u7406\u3059\u308b\u5834\u6240\u306e\u80fd\u529b\u3092\u6c7a\u5b9a\u3059\u308b\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306f\u3001\u5834\u6240\u306e\u5b9a\u7fa9\uff08\u5834\u6240\u30d6\u30ed\u30c3\u30af\u3092\u958b\u304f\u884c\uff09\u306b\u914d\u7f6e\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4e00\u822c\u7684\u306a\u69cb\u6587\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<div>\u4ee5\u4e0b\u306e\u3082\u306e\u3092\u65e5\u672c\u8a9e\u3067\u81ea\u7136\u306b\u8a00\u3044\u63db\u3048\u308b\uff1a<br \/>\n\/etc\/nginx\/nginx.conf\u2192 \u300c\/etc\/nginx\/nginx.conf\u300d<\/p>\n<\/div>\n<pre class=\"post-pre\"><code>location <mark>match_modifier<\/mark> <mark>location_match<\/mark> {\r\n\r\n    . . .\r\n\r\n}\r\n<\/code><\/pre>\n<p>\u5834\u6240\u30d6\u30ed\u30c3\u30af\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u306e\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u5185\u306b\u5b58\u5728\u3057\u3001\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\u3068\u306f\u7570\u306a\u308a\u3001\u304a\u4e92\u3044\u306b\u30cd\u30b9\u30c8\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u7279\u5b9a\u306e\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u306e\u4e00\u90e8\u3092\u30ad\u30e3\u30c3\u30c1\u3059\u308b\u305f\u3081\u306e\u3088\u308a\u4e00\u822c\u7684\u306a\u5834\u6240\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3092\u4f5c\u6210\u3057\u3001\u305d\u306e\u5f8c\u3001\u8ffd\u52a0\u306e\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3067\u3088\u308a\u5177\u4f53\u7684\u306a\u57fa\u6e96\u306b\u57fa\u3065\u3044\u3066\u3055\u3089\u306b\u51e6\u7406\u3059\u308b\u305f\u3081\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002<\/p>\n<div>\u4ee5\u4e0b\u306f\u3001\u65e5\u672c\u8a9e\u3067\u306e\u4e00\u3064\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u3088\u308b\u8a00\u3044\u63db\u3048\u3067\u3059\uff1a<br \/>\n\u300c\/etc\/nginx\/nginx.conf\u300d<\/div>\n<pre class=\"post-pre\"><code># main context\r\n\r\nserver {\r\n    \r\n    # server context\r\n\r\n    location <mark>\/match\/criteria<\/mark> {\r\n\r\n        # first location context\r\n\r\n    }\r\n\r\n    location <mark>\/other\/criteria<\/mark> {\r\n\r\n        # second location context\r\n\r\n        location <mark>nested_match<\/mark> {\r\n\r\n            # first nested location\r\n\r\n        }\r\n\r\n        location <mark>other_nested<\/mark> {\r\n\r\n            # second nested location\r\n\r\n        }\r\n\r\n    }\r\n\r\n}\r\n<\/code><\/pre>\n<p>IP\u30a2\u30c9\u30ec\u30b9\/\u30dd\u30fc\u30c8\u306e\u7d44\u307f\u5408\u308f\u305b\u3068\u300cHost\u300d\u30d8\u30c3\u30c0\u30fc\u5185\u306e\u30db\u30b9\u30c8\u540d\u306b\u57fa\u3065\u3044\u3066\u3001\u30b5\u30fc\u30d0\u30fc\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u304c\u9078\u629e\u3055\u308c\u307e\u3059\u3002\u4e00\u65b9\u3001\u30ea\u30af\u30a8\u30b9\u30c8URI\u3092\u898b\u3066\u3001\u30ed\u30b1\u30fc\u30b7\u30e7\u30f3\u30d6\u30ed\u30c3\u30af\u306f\u3055\u3089\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u51e6\u7406\u3092\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\u5185\u3067\u5206\u5272\u3057\u307e\u3059\u3002\u30ea\u30af\u30a8\u30b9\u30c8URI\u3068\u306f\u3001\u30c9\u30e1\u30a4\u30f3\u540d\u3084IP\u30a2\u30c9\u30ec\u30b9\/\u30dd\u30fc\u30c8\u306e\u7d44\u307f\u5408\u308f\u305b\u306e\u5f8c\u306b\u7d9a\u304f\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u90e8\u5206\u3067\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304c\u30dd\u30fc\u30c880\u3067http:\/\/www.example.com\/blog\u3092\u8981\u6c42\u3057\u305f\u5834\u5408\u3001http\u3001www.example.com\u3001\u304a\u3088\u3073\u30dd\u30fc\u30c880\u306e\u8981\u7d20\u306f\u305d\u308c\u305e\u308c\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\u3092\u9078\u629e\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\u304c\u9078\u629e\u3055\u308c\u305f\u5f8c\u3001\u30ea\u30af\u30a8\u30b9\u30c8URI\u3067\u3042\u308b\/blog\u90e8\u5206\u306f\u5b9a\u7fa9\u3055\u308c\u305f\u5834\u6240\u3068\u7167\u5408\u3055\u308c\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u5fdc\u7b54\u3059\u308b\u305f\u3081\u306b\u3055\u3089\u306b\u3069\u306e\u3088\u3046\u306a\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u304c\u4f7f\u7528\u3055\u308c\u308b\u3079\u304d\u304b\u304c\u5224\u65ad\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u5834\u6240\u306e\u6587\u8108\u3067\u898b\u3089\u308c\u308b\u591a\u304f\u306e\u6307\u793a\u306f\u3001\u89aa\u306e\u30ec\u30d9\u30eb\u3067\u3082\u5229\u7528\u53ef\u80fd\u3067\u3059\u3002\u3053\u306e\u30ec\u30d9\u30eb\u3067\u306e\u65b0\u3057\u3044\u6307\u793a\u306b\u3088\u308a\u3001\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8\u306e\u5916\u306e\u5834\u6240\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u3059\uff08alias\uff09\u3001\u5834\u6240\u3092\u5185\u90e8\u306e\u307f\u3067\u30a2\u30af\u30bb\u30b9\u53ef\u80fd\u3068\u3057\u307e\u3059\uff08internal\uff09\u3001\u4ed6\u306e\u30b5\u30fc\u30d0\u30fc\u3084\u5834\u6240\u306b\u30d7\u30ed\u30ad\u30b7\u3057\u307e\u3059\uff08http\u3001fastcgi\u3001scgi\u3001uwsgi\u30d7\u30ed\u30ad\u30b7\u3092\u4f7f\u7528\uff09\u3002<\/p>\n<h2>\u4ed6\u306e\u6587\u8108<\/h2>\n<p>\u4e0a\u8a18\u306e\u4f8b\u306f\u3001Nginx\u3067\u906d\u9047\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u57fa\u672c\u7684\u306a\u6587\u8108\u3092\u8868\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u4ed6\u306e\u6587\u8108\u3082\u5b58\u5728\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u6587\u8108\u306f\u3001\u7279\u5b9a\u306e\u72b6\u6cc1\u3067\u306e\u307f\u4f7f\u7528\u3055\u308c\u308b\u304b\u3001\u307b\u3068\u3093\u3069\u306e\u4eba\u304c\u4f7f\u7528\u3057\u306a\u3044\u6a5f\u80fd\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>split_clients: This context is configured to split the clients that the server receives into categories by labeling them with variables based on a percentage. These can then be used to do A\/B testing by providing different content to different hosts.<\/li>\n<li>perl \/ perl_set: These contexts configure Perl handlers for the location they appear in. This will only be used for processing with Perl.<\/li>\n<li>map: This context is used to set the value of a variable depending on the value of another variable. It provides a mapping of one variable\u2019s values to determine what the second variable should be set to.<\/li>\n<li>geo: Like the above context, this context is used to specify a mapping. However, this mapping is specifically used to categorize client IP addresses. It sets the value of a variable depending on the connecting IP address.<\/li>\n<li>types: This context is again used for mapping. This context is used to map MIME types to the file extensions that should be associated with them. This is usually provided with Nginx through a file that is sourced into the main nginx.conf config file.<\/li>\n<li>charset_map: This is another example of a mapping context. This context is used to map a conversion table from one character set to another. In the context header, both sets are listed and in the body, the mapping takes place.<\/li>\n<\/ul>\n<h3>\u6d41\u308c\u306e\u4e0a\u6d41\u306e\u6587\u8108<\/h3>\n<p>\u4e0a\u6d41\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306f\u3001\u300c\u4e0a\u6d41\u300d\u3068\u547c\u3070\u308c\u308b\u30b5\u30fc\u30d0\u30fc\u306e\u30d7\u30fc\u30eb\u3092\u5b9a\u7fa9\u304a\u3088\u3073\u8a2d\u5b9a\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3067\u306f\u3001Nginx\u306f\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u30d7\u30ed\u30ad\u30b7\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306f\u3001\u3055\u307e\u3056\u307e\u306a\u30bf\u30a4\u30d7\u306e\u30d7\u30ed\u30ad\u30b7\u3092\u8a2d\u5b9a\u3059\u308b\u5834\u5408\u306b\u4f7f\u7528\u3055\u308c\u308b\u3053\u3068\u304c\u591a\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u30a2\u30c3\u30d7\u30b9\u30c8\u30ea\u30fc\u30e0\u306e\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306f\u3001\u7279\u5b9a\u306e\u30b5\u30fc\u30d0\u30fc\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306e\u5916\u3067\u3001http\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u5185\u306b\u914d\u7f6e\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u5f62\u5f0f\u3067\u3059\u3002<\/p>\n<div>\u3053\u306e\u30d1\u30b9 \/etc\/nginx\/nginx.conf \u306e nginx \u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u8a00\u3044\u63db\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/div>\n<pre class=\"post-pre\"><code># main context\r\n\r\nhttp {\r\n\r\n    # http context\r\n\r\n    upstream <mark>upstream_name<\/mark> {\r\n\r\n        # upstream context\r\n\r\n        server <mark>proxy_server1<\/mark>;\r\n        server <mark>proxy_server2<\/mark>;\r\n\r\n        . . .\r\n\r\n    }\r\n\r\n    server {\r\n\r\n        # server context\r\n\r\n    }\r\n\r\n}\r\n<\/code><\/pre>\n<p>\u30a2\u30c3\u30d7\u30b9\u30c8\u30ea\u30fc\u30e0\u306e\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306f\u3001\u5b9a\u7fa9\u3055\u308c\u305f\u30b5\u30fc\u30d0\u30fc\u30d7\u30fc\u30eb\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1\u3059\u308b\u305f\u3081\u306b\u3001\u30b5\u30fc\u30d0\u30fc\u307e\u305f\u306f\u30ed\u30b1\u30fc\u30b7\u30e7\u30f3\u30d6\u30ed\u30c3\u30af\u5185\u3067\u540d\u524d\u306b\u3088\u3063\u3066\u53c2\u7167\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u305d\u306e\u5f8c\u3001\u30a2\u30c3\u30d7\u30b9\u30c8\u30ea\u30fc\u30e0\u306f\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\uff08\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u30e9\u30a6\u30f3\u30c9\u30ed\u30d3\u30f3\uff09\u3092\u4f7f\u7528\u3057\u3066\u3001\u3069\u306e\u7279\u5b9a\u306e\u30b5\u30fc\u30d0\u30fc\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u6e21\u3059\u304b\u3092\u6c7a\u5b9a\u3057\u307e\u3059\u3002\u3053\u306e\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306b\u3088\u308a\u3001Nginx\u306f\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u30d7\u30ed\u30ad\u30b7\u6642\u306b\u8ca0\u8377\u5206\u6563\u3092\u884c\u3046\u80fd\u529b\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n<h3>\u3082\u3057\u6587\u8108\u304c\u3042\u308b\u5834\u5408<\/h3>\n<p>\u300c\u3082\u3057\u300d\u306e\u6587\u8108\u306f\u6307\u793a\u306e\u6761\u4ef6\u4ed8\u304d\u51e6\u7406\u3092\u63d0\u4f9b\u3059\u308b\u305f\u3081\u306b\u78ba\u7acb\u3055\u308c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u5f93\u6765\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306b\u304a\u3051\u308bif\u6587\u306e\u3088\u3046\u306b\u3001Nginx\u306eif\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306f\u3001\u4e0e\u3048\u3089\u308c\u305f\u30c6\u30b9\u30c8\u304c\u300c\u771f\u300d\u3092\u8fd4\u3059\u5834\u5408\u306b\u306e\u307f\u542b\u307e\u308c\u308b\u547d\u4ee4\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p>Nginx\u306eif\u6587\u306f\u30ea\u30e9\u30a4\u30c8\u30e2\u30b8\u30e5\u30fc\u30eb\u306b\u3088\u3063\u3066\u63d0\u4f9b\u3055\u308c\u3001\u3053\u308c\u304c\u3053\u306e\u6587\u8108\u306e\u4e3b\u306a\u4f7f\u7528\u6cd5\u3067\u3059\u3002Nginx\u306f\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u6761\u4ef6\u3092\u4ed6\u306e\u591a\u304f\u306e\u5c02\u7528\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3067\u30c6\u30b9\u30c8\u3059\u308b\u305f\u3081\u3001\u307b\u3068\u3093\u3069\u306e\u6761\u4ef6\u306b\u304a\u3051\u308b\u5b9f\u884c\u306b\u306fif\u6587\u306f\u4f7f\u7528\u3059\u3079\u304d\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u3053\u308c\u306f\u975e\u5e38\u306b\u91cd\u8981\u306a\u6ce8\u610f\u4e8b\u9805\u3067\u3042\u308b\u305f\u3081\u3001Nginx\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u3067\u306f\u300cif is evil\u300d\u3068\u3044\u3046\u30da\u30fc\u30b8\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u554f\u984c\u306f\u3001Nginx\u306e\u51e6\u7406\u9806\u5e8f\u304c\u3057\u3070\u3057\u3070\u4e88\u671f\u305b\u306c\u7d50\u679c\u3092\u62db\u304f\u3053\u3068\u3067\u3059\u3002\u3053\u306e\u6587\u8108\u3067\u4fe1\u983c\u3067\u304d\u308b\u5b89\u5168\u306a\u6307\u4ee4\u306f\u3001return\u6307\u4ee4\u3068rewrite\u6307\u4ee4\uff08\u3053\u306e\u6587\u8108\u306e\u305f\u3081\u306b\u4f5c\u3089\u308c\u305f\u3082\u306e\uff09\u3060\u3051\u3067\u3059\u3002if\u6587\u8108\u3092\u4f7f\u7528\u3059\u308b\u969b\u306b\u306f\u3001\u540c\u3058\u6587\u8108\u5185\u306etry_files\u6307\u4ee4\u306f\u7121\u52b9\u306b\u306a\u308b\u3053\u3068\u306b\u3082\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u307b\u3068\u3093\u3069\u306e\u5834\u5408\u3001\u66f8\u304d\u63db\u3048\u304c\u5fc5\u8981\u304b\u3069\u3046\u304b\u3092\u5224\u65ad\u3059\u308b\u305f\u3081\u306b if \u6587\u304c\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u3089\u306f\u4e3b\u306b\u4f4d\u7f6e\u30d6\u30ed\u30c3\u30af\u5185\u306b\u5b58\u5728\u3059\u308b\u305f\u3081\u3001\u4e00\u822c\u7684\u306a\u5f62\u5f0f\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<div>\u300c\/etc\/nginx\/nginx.conf\u300d\u3068\u306f\u3001\u65e5\u672c\u8a9e\u3067\u306f\u300c\/etc\/nginx\/nginx.conf\u300d\u3068\u8a00\u3044\u307e\u3059\u3002<\/div>\n<pre class=\"post-pre\"><code># main context\r\n\r\nhttp {\r\n\r\n    # http context\r\n\r\n    server {\r\n\r\n        # server context\r\n\r\n        location <mark>location_match<\/mark> {\r\n\r\n            # location context\r\n\r\n            if (<mark>test_condition<\/mark>) {\r\n\r\n                # if context\r\n\r\n            }\r\n\r\n        }\r\n\r\n    }\r\n\r\n}\r\n<\/code><\/pre>\n<h3>Limit_except\uff08\u9650\u5b9a\u9664\u5916\uff09\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8<\/h3>\n<p>limit_except\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306f\u3001\u5834\u6240\u306e\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u5185\u3067\u7279\u5b9a\u306eHTTP\u30e1\u30bd\u30c3\u30c9\u306e\u4f7f\u7528\u3092\u5236\u9650\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u7279\u5b9a\u306e\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u307f\u304cPOST\u30b3\u30f3\u30c6\u30f3\u30c4\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u304c\u3001\u8ab0\u3067\u3082\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u8aad\u3080\u80fd\u529b\u3092\u6301\u3063\u3066\u3044\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u3001limit_except\u30d6\u30ed\u30c3\u30af\u3092\u4f7f\u7528\u3057\u3066\u3053\u306e\u8981\u4ef6\u3092\u5b9a\u7fa9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4e0a\u8a18\u306e\u4f8b\u306f\u3001\u304a\u304a\u3088\u305d\u3053\u308c\u3068\u540c\u3058\u3088\u3046\u306b\u898b\u3048\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<div>\u300c\/etc\/nginx\/nginx.conf\u300d\u306e\u6587\u3092\u65e5\u672c\u8a9e\u3067\u8a00\u3044\u63db\u3048\u308b\u3068\u3001\u300c\/etc\/nginx\/nginx.conf\u300d\u3067\u3059\u3002<\/div>\n<pre class=\"post-pre\"><code>. . .\r\n\r\n# server or location context\r\n\r\nlocation \/restricted-write {\r\n\r\n    # location context\r\n\r\n    limit_except GET HEAD {\r\n\r\n        # limit_except context\r\n\r\n        allow 192.168.1.1\/24;\r\n        deny all;\r\n    }\r\n}\r\n<\/code><\/pre>\n<p>\u3053\u306e\u5834\u5408\u3001\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30d8\u30c3\u30c0\u30fc\u306b\u30ea\u30b9\u30c8\u3055\u308c\u3066\u3044\u306a\u3044HTTP\u30e1\u30bd\u30c3\u30c9\u304c\u51fa\u73fe\u3057\u305f\u5834\u5408\u3001\u305d\u306e\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u5185\u306e\u6307\u4ee4\uff08\u30a2\u30af\u30bb\u30b9\u5236\u9650\u3092\u610f\u56f3\u3057\u3066\u3044\u307e\u3059\uff09\u304c\u9069\u7528\u3055\u308c\u307e\u3059\u3002\u4e0a\u8a18\u306e\u4f8b\u306e\u7d50\u679c\u3068\u3057\u3066\u3001\u3069\u306e\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3082GET\u304a\u3088\u3073HEAD\u306e\u52d5\u8a5e\u3092\u4f7f\u7528\u3067\u304d\u307e\u3059\u304c\u3001192.168.1.1\/24\u30b5\u30d6\u30cd\u30c3\u30c8\u304b\u3089\u306e\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u307f\u304c\u4ed6\u306e\u65b9\u6cd5\u3092\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u6587\u8108\u306b\u57fa\u3065\u304f\u4e00\u822c\u7684\u306a\u30eb\u30fc\u30eb\u306b\u5f93\u3046\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/h2>\n<p>Nginx\u306e\u8a2d\u5b9a\u3092\u63a2\u7d22\u3059\u308b\u969b\u306b\u3088\u304f\u906d\u9047\u3059\u308b\u4e00\u822c\u7684\u306a\u6587\u8108\u3092\u628a\u63e1\u3057\u305f\u4eca\u3001Nginx\u306e\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3092\u6271\u3046\u969b\u306e\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u306b\u3064\u3044\u3066\u8a71\u3057\u5408\u3044\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>\u6700\u9ad8\u306e\u6587\u8108\u3067\u6307\u793a\u3092\u9069\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/h3>\n<p>\u591a\u304f\u306e\u6307\u4ee4\u306f\u8907\u6570\u306e\u6587\u8108\u3067\u6709\u52b9\u3067\u3059\u3002\u4f8b\u3048\u3070\u3001http\u3001server\u3001location\u306e\u6587\u8108\u306b\u914d\u7f6e\u3067\u304d\u308b\u6307\u4ee4\u306f\u304b\u306a\u308a\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u3053\u308c\u3089\u306e\u6307\u4ee4\u3092\u8a2d\u5b9a\u3059\u308b\u969b\u306b\u67d4\u8edf\u6027\u304c\u751f\u307e\u308c\u307e\u3059\u3002<\/p>\n<p>\u4e00\u822c\u7684\u306a\u30eb\u30fc\u30eb\u3068\u3057\u3066\u3001\u9069\u7528\u3055\u308c\u308b\u6700\u3082\u5e83\u3044\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3067\u6307\u793a\u3092\u5ba3\u8a00\u3057\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u4e0b\u4f4d\u306e\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3067\u30aa\u30fc\u30d0\u30fc\u30e9\u30a4\u30c9\u3059\u308b\u3053\u3068\u304c\u3001\u901a\u5e38\u306f\u6700\u5584\u3067\u3059\u3002\u3053\u308c\u306f\u3001Nginx\u304c\u5b9f\u88c5\u3059\u308b\u7d99\u627f\u30e2\u30c7\u30eb\u306e\u304a\u304b\u3052\u3067\u53ef\u80fd\u3067\u3059\u3002\u3053\u306e\u6226\u7565\u3092\u4f7f\u7528\u3059\u308b\u7406\u7531\u306f\u591a\u3005\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u7b2c\u4e00\u306b\u3001\u9ad8\u3044\u30ec\u30d9\u30eb\u3067\u5ba3\u8a00\u3059\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u3001\u540c\u3058\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u9593\u3067\u306e\u4e0d\u8981\u306a\u7e70\u308a\u8fd4\u3057\u3092\u907f\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u4ee5\u4e0b\u306e\u4f8b\u3067\u306f\u3001\u5404\u5834\u6240\u304c\u540c\u3058\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8\u3092\u5ba3\u8a00\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<div>\u4ee5\u4e0b\u306e\u6587\u3092\u65e5\u672c\u8a9e\u3067\u8a00\u3044\u63db\u3048\u3066\u304f\u3060\u3055\u3044\uff1a<br \/>\n\/etc\/nginx\/nginx.conf\u300c\/etc\/nginx\/nginx.conf\u300d<\/p>\n<\/div>\n<pre class=\"post-pre\"><code>http {\r\n    server {\r\n        location \/ {\r\n            root \/var\/www\/html;\r\n\r\n            . . .\r\n\r\n        }\r\n\r\n        location \/another {\r\n            root \/var\/www\/html;\r\n\r\n            . . .\r\n\r\n        }\r\n\r\n    }\r\n}\r\n<\/code><\/pre>\n<p>\u6b21\u306e\u3088\u3046\u306b\u3001\u30eb\u30fc\u30c8\u3092\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\u306b\u79fb\u52d5\u3059\u308b\u304b\u3001\u3055\u3089\u306bhttp\u30d6\u30ed\u30c3\u30af\u306b\u79fb\u52d5\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>http {\r\n    root \/var\/www\/html;\r\n    server {\r\n        location \/ {\r\n\r\n            . . .\r\n\r\n        }\r\n\r\n        location \/another {\r\n\r\n            . . .\r\n\r\n        }\r\n    }\r\n}\r\n<\/code><\/pre>\n<p>\u307b\u3068\u3093\u3069\u306e\u5834\u5408\u3001\u30b5\u30fc\u30d0\u30fc\u30ec\u30d9\u30eb\u304c\u6700\u3082\u9069\u5207\u3067\u3059\u304c\u3001\u4e0a\u4f4d\u30ec\u30d9\u30eb\u3067\u306e\u5ba3\u8a00\u306b\u306f\u5229\u70b9\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3092\u3088\u308a\u5c11\u306a\u3044\u7b87\u6240\u3067\u8a2d\u5b9a\u3059\u308b\u3060\u3051\u3067\u306a\u304f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u3092\u3059\u3079\u3066\u306e\u5b50\u8981\u7d20\u306b\u7d99\u627f\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u3001\u4f4e\u30ec\u30d9\u30eb\u3067\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3092\u5fd8\u308c\u308b\u3053\u3068\u306b\u3088\u308b\u30a8\u30e9\u30fc\u3092\u9632\u3050\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306f\u9577\u3044\u8a2d\u5b9a\u306b\u304a\u3044\u3066\u91cd\u5927\u306a\u554f\u984c\u3068\u306a\u308a\u307e\u3059\u3002\u4e0a\u4f4d\u30ec\u30d9\u30eb\u3067\u306e\u5ba3\u8a00\u306f\u3001\u826f\u597d\u306a\u30c7\u30d5\u30a9\u30eb\u30c8\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002<\/p>\n<h3>\u51e6\u7406\u306b\u306f\u3001if\u6587\u306e\u4ee3\u308f\u308a\u306b\u8907\u6570\u306e\u5144\u5f1f\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/h3>\n<p>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u8981\u6c42\u306b\u542b\u307e\u308c\u308b\u60c5\u5831\u306b\u3088\u3063\u3066\u51e6\u7406\u3092\u7570\u306a\u308b\u3088\u3046\u306b\u3057\u305f\u3044\u5834\u5408\u3001\u591a\u304f\u306e\u30e6\u30fc\u30b6\u30fc\u306f\u6761\u4ef6\u5206\u5c90\u306e\u305f\u3081\u306b\u300cif\u300d\u6587\u3092\u4f7f\u304a\u3046\u3068\u3057\u307e\u3059\u3002\u5148\u7a0b\u5c11\u3057\u89e6\u308c\u305f\u3088\u3046\u306b\u3001\u3053\u308c\u306b\u306f\u3044\u304f\u3064\u304b\u306e\u554f\u984c\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u6700\u521d\u306e\u4e8b\u67c4\u306f\u3001\u300c\u3082\u3057\u300d\u306e\u6307\u793a\u304c\u3057\u3070\u3057\u3070\u7ba1\u7406\u8005\u306e\u671f\u5f85\u3068\u306f\u7570\u306a\u308b\u7d50\u679c\u3092\u8fd4\u3059\u3053\u3068\u3067\u3059\u3002\u5165\u529b\u304c\u540c\u3058\u3067\u3042\u308c\u3070\u51e6\u7406\u7d50\u679c\u306f\u5e38\u306b\u540c\u3058\u306b\u306a\u308b\u304c\u3001Nginx\u304c\u74b0\u5883\u3092\u89e3\u91c8\u3059\u308b\u65b9\u6cd5\u306f\u3001\u5fb9\u5e95\u7684\u306a\u30c6\u30b9\u30c8\u306a\u3057\u3067\u306f\u60f3\u5b9a\u3068\u7570\u306a\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u306b\u5bfe\u3059\u308b\u7b2c\u4e8c\u306e\u7406\u7531\u306f\u3001\u3053\u308c\u3089\u306e\u76ee\u7684\u306e\u591a\u304f\u306b\u4f7f\u7528\u3055\u308c\u308b\u6700\u9069\u5316\u3055\u308c\u305f\u7279\u5b9a\u306e\u6307\u793a\u6587\u304c\u65e2\u306b\u5b58\u5728\u3059\u308b\u305f\u3081\u3067\u3059\u3002Nginx\u306f\u65e2\u306b\u3001\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\u3084\u30ed\u30b1\u30fc\u30b7\u30e7\u30f3\u30d6\u30ed\u30c3\u30af\u306e\u9078\u629e\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306b\u95a2\u3059\u308b\u5341\u5206\u306b\u6587\u66f8\u5316\u3055\u308c\u305f\u9078\u629e\u65b9\u6cd5\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002\u53ef\u80fd\u3067\u3042\u308c\u3070\u3001\u7570\u306a\u308b\u8a2d\u5b9a\u3092\u305d\u308c\u305e\u308c\u72ec\u81ea\u306e\u30d6\u30ed\u30c3\u30af\u306b\u79fb\u52d5\u3055\u305b\u3001\u3053\u306e\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306b\u9078\u629e\u30d7\u30ed\u30bb\u30b9\u306e\u8ad6\u7406\u3092\u51e6\u7406\u3055\u305b\u308b\u65b9\u304c\u6700\u5584\u3067\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u63d0\u4f9b\u3057\u305f\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u81ea\u5206\u306e\u5e0c\u671b\u3059\u308b\u5f62\u5f0f\u306b\u5909\u63db\u3059\u308b\u305f\u3081\u306e\u66f8\u304d\u76f4\u3057\u306b\u983c\u308b\u4ee3\u308f\u308a\u306b\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u5bfe\u5fdc\u3059\u308b\u305f\u3081\u306b2\u3064\u306e\u30d6\u30ed\u30c3\u30af\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3092\u8a66\u3057\u3066\u307f\u308b\u3079\u304d\u3067\u3059\u30021\u3064\u306f\u671b\u3080\u30e1\u30bd\u30c3\u30c9\u3092\u8868\u3057\u3001\u3082\u30461\u3064\u306f\u6df7\u4e71\u3057\u305f\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u6355\u6349\u3057\u3001\u6b63\u3057\u3044\u30d6\u30ed\u30c3\u30af\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\uff08\u304a\u3088\u3073\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u66f8\u304d\u76f4\u3057\uff09\u3059\u308b\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>\u7d50\u679c\u306f\u901a\u5e38\u3001\u3088\u308a\u53ef\u8aad\u6027\u304c\u9ad8\u304f\u3001\u3055\u3089\u306b\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u5411\u4e0a\u3059\u308b\u3068\u3044\u3046\u5229\u70b9\u3082\u3042\u308a\u307e\u3059\u3002\u6b63\u3057\u3044\u30ea\u30af\u30a8\u30b9\u30c8\u306f\u8ffd\u52a0\u306e\u51e6\u7406\u3092\u5fc5\u8981\u3068\u305b\u305a\u3001\u591a\u304f\u306e\u5834\u5408\u3001\u8aa4\u3063\u305f\u30ea\u30af\u30a8\u30b9\u30c8\u3082\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3059\u308b\u3060\u3051\u3067\u6b63\u3057\u304f\u901a\u904e\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u30aa\u30fc\u30d0\u30fc\u30d8\u30c3\u30c9\u304c\u4f4e\u304f\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002<\/p>\n<h2>\u7d50\u8ad6<\/h2>\n<p>\u3053\u306e\u6642\u70b9\u3067\u306f\u3001Nginx\u306e\u6700\u3082\u4e00\u822c\u7684\u306a\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3068\u3001\u305d\u308c\u3092\u5b9a\u7fa9\u3059\u308b\u30d6\u30ed\u30c3\u30af\u3092\u4f5c\u6210\u3059\u308b\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306b\u3064\u3044\u3066\u3001\u5341\u5206\u306a\u7406\u89e3\u3092\u6301\u3064\u3079\u304d\u3067\u3059\u3002<\/p>\n<p>\u5e38\u306bNginx\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3001\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3092\u914d\u7f6e\u3067\u304d\u308b\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3084\u6700\u9069\u306a\u5834\u6240\u3092\u8a55\u4fa1\u3059\u308b\u60c5\u5831\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u8a2d\u5b9a\u3092\u4f5c\u6210\u3059\u308b\u969b\u306b\u6ce8\u610f\u3092\u6255\u3046\u3053\u3068\u306f\u3001\u30e1\u30f3\u30c6\u30ca\u30d3\u30ea\u30c6\u30a3\u3092\u5411\u4e0a\u3055\u305b\u308b\u3060\u3051\u3067\u306a\u304f\u3001\u6027\u80fd\u3082\u3057\u3070\u3057\u3070\u5411\u4e0a\u3055\u305b\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306b\u3001Nginx\u3067\u30d1\u30b9\u30ef\u30fc\u30c9\u8a8d\u8a3c\u306e\u8a2d\u5b9a\u65b9\u6cd5\u3092\u5b66\u3076\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ee5\u4e0b\u306e\u6587\u7ae0\u3092\u65e5\u672c\u8a9e\u3067\u81ea\u7136\u306b\u8a00\u3044\u63db\u3048\u3066\u304f\u3060\u3055\u3044\u30021\u3064\u306e\u9078\u629e\u80a2\u3067\u69cb\u3044\u307e\u305b\u3093\u3002 \u30a4\u30f3\u30c8\u30ed\u30c0\u30af\u30b7\u30e7\u30f3 Nginx\u306f\u9ad8\u6027\u80fd\u306a\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc\u3067\u3042\u308a\u3001\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u4e0a\u3067\u6700\u5927\u306e\u30b5\u30a4\u30c8\u306e\u8ca0\u8377\u3092\u51e6\u7406\u3059\u308b\u5f79\u5272\u3092\u62c5\u3063\u3066\u3044\u307e\u3059\u3002\u7279\u306b\u591a\u304f\u306e\u540c\u6642\u63a5\u7d9a [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[26,18],"class_list":["post-132","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-26","tag-18"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Nginx\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u69cb\u9020\u3068\u8a2d\u5b9a\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3092\u7406\u89e3\u3059\u308b - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"Nginx\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u69cb\u9020\u3068\u8a2d\u5b9a\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3092\u7406\u89e3\u3059\u308b\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/ja\/blog\/nginx\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u69cb\u9020\u3068\u8a2d\u5b9a\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3092\u7406\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Nginx\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u69cb\u9020\u3068\u8a2d\u5b9a\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3092\u7406\u89e3\u3059\u308b\" \/>\n<meta property=\"og:description\" content=\"Nginx\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u69cb\u9020\u3068\u8a2d\u5b9a\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3092\u7406\u89e3\u3059\u308b\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/nginx\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u69cb\u9020\u3068\u8a2d\u5b9a\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3092\u7406\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-11-09T21:14:33+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-31T12:01:01+00:00\" \/>\n<meta name=\"author\" content=\"\u967d, \u5411\u5b87\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u967d, \u5411\u5b87\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"29\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/nginx%e3%81%ae%e8%a8%ad%e5%ae%9a%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%81%ae%e6%a7%8b%e9%80%a0%e3%81%a8%e8%a8%ad%e5%ae%9a%e3%82%b3%e3%83%b3%e3%83%86%e3%82%ad%e3%82%b9%e3%83%88%e3%82%92%e7%90%86\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/nginx%e3%81%ae%e8%a8%ad%e5%ae%9a%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%81%ae%e6%a7%8b%e9%80%a0%e3%81%a8%e8%a8%ad%e5%ae%9a%e3%82%b3%e3%83%b3%e3%83%86%e3%82%ad%e3%82%b9%e3%83%88%e3%82%92%e7%90%86\/\",\"name\":\"Nginx\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u69cb\u9020\u3068\u8a2d\u5b9a\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3092\u7406\u89e3\u3059\u308b - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2023-11-09T21:14:33+00:00\",\"dateModified\":\"2025-07-31T12:01:01+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4aef6196128551a0f5d66db46c42866c\"},\"description\":\"Nginx\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u69cb\u9020\u3068\u8a2d\u5b9a\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3092\u7406\u89e3\u3059\u308b\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/nginx%e3%81%ae%e8%a8%ad%e5%ae%9a%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%81%ae%e6%a7%8b%e9%80%a0%e3%81%a8%e8%a8%ad%e5%ae%9a%e3%82%b3%e3%83%b3%e3%83%86%e3%82%ad%e3%82%b9%e3%83%88%e3%82%92%e7%90%86\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/nginx%e3%81%ae%e8%a8%ad%e5%ae%9a%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%81%ae%e6%a7%8b%e9%80%a0%e3%81%a8%e8%a8%ad%e5%ae%9a%e3%82%b3%e3%83%b3%e3%83%86%e3%82%ad%e3%82%b9%e3%83%88%e3%82%92%e7%90%86\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/nginx%e3%81%ae%e8%a8%ad%e5%ae%9a%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%81%ae%e6%a7%8b%e9%80%a0%e3%81%a8%e8%a8%ad%e5%ae%9a%e3%82%b3%e3%83%b3%e3%83%86%e3%82%ad%e3%82%b9%e3%83%88%e3%82%92%e7%90%86\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Nginx\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u69cb\u9020\u3068\u8a2d\u5b9a\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3092\u7406\u89e3\u3059\u308b\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4aef6196128551a0f5d66db46c42866c\",\"name\":\"\u967d, \u5411\u5b87\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ad96b120e219751fa368cbd7d2c48ca01b59185e6ed394449bac72614a760bf3?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ad96b120e219751fa368cbd7d2c48ca01b59185e6ed394449bac72614a760bf3?s=96&d=mm&r=g\",\"caption\":\"\u967d, \u5411\u5b87\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/hinatasora\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/nginx%e3%81%ae%e8%a8%ad%e5%ae%9a%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%81%ae%e6%a7%8b%e9%80%a0%e3%81%a8%e8%a8%ad%e5%ae%9a%e3%82%b3%e3%83%b3%e3%83%86%e3%82%ad%e3%82%b9%e3%83%88%e3%82%92%e7%90%86\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Nginx\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u69cb\u9020\u3068\u8a2d\u5b9a\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3092\u7406\u89e3\u3059\u308b - Blog - Silicon Cloud","description":"Nginx\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u69cb\u9020\u3068\u8a2d\u5b9a\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3092\u7406\u89e3\u3059\u308b\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","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:\/\/www.silicloud.com\/ja\/blog\/nginx\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u69cb\u9020\u3068\u8a2d\u5b9a\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3092\u7406\/","og_locale":"ja_JP","og_type":"article","og_title":"Nginx\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u69cb\u9020\u3068\u8a2d\u5b9a\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3092\u7406\u89e3\u3059\u308b","og_description":"Nginx\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u69cb\u9020\u3068\u8a2d\u5b9a\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3092\u7406\u89e3\u3059\u308b\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/nginx\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u69cb\u9020\u3068\u8a2d\u5b9a\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3092\u7406\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-11-09T21:14:33+00:00","article_modified_time":"2025-07-31T12:01:01+00:00","author":"\u967d, \u5411\u5b87","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u967d, \u5411\u5b87","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"29\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/nginx%e3%81%ae%e8%a8%ad%e5%ae%9a%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%81%ae%e6%a7%8b%e9%80%a0%e3%81%a8%e8%a8%ad%e5%ae%9a%e3%82%b3%e3%83%b3%e3%83%86%e3%82%ad%e3%82%b9%e3%83%88%e3%82%92%e7%90%86\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/nginx%e3%81%ae%e8%a8%ad%e5%ae%9a%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%81%ae%e6%a7%8b%e9%80%a0%e3%81%a8%e8%a8%ad%e5%ae%9a%e3%82%b3%e3%83%b3%e3%83%86%e3%82%ad%e3%82%b9%e3%83%88%e3%82%92%e7%90%86\/","name":"Nginx\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u69cb\u9020\u3068\u8a2d\u5b9a\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3092\u7406\u89e3\u3059\u308b - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2023-11-09T21:14:33+00:00","dateModified":"2025-07-31T12:01:01+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4aef6196128551a0f5d66db46c42866c"},"description":"Nginx\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u69cb\u9020\u3068\u8a2d\u5b9a\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3092\u7406\u89e3\u3059\u308b\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/nginx%e3%81%ae%e8%a8%ad%e5%ae%9a%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%81%ae%e6%a7%8b%e9%80%a0%e3%81%a8%e8%a8%ad%e5%ae%9a%e3%82%b3%e3%83%b3%e3%83%86%e3%82%ad%e3%82%b9%e3%83%88%e3%82%92%e7%90%86\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/nginx%e3%81%ae%e8%a8%ad%e5%ae%9a%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%81%ae%e6%a7%8b%e9%80%a0%e3%81%a8%e8%a8%ad%e5%ae%9a%e3%82%b3%e3%83%b3%e3%83%86%e3%82%ad%e3%82%b9%e3%83%88%e3%82%92%e7%90%86\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/nginx%e3%81%ae%e8%a8%ad%e5%ae%9a%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%81%ae%e6%a7%8b%e9%80%a0%e3%81%a8%e8%a8%ad%e5%ae%9a%e3%82%b3%e3%83%b3%e3%83%86%e3%82%ad%e3%82%b9%e3%83%88%e3%82%92%e7%90%86\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"Nginx\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u69cb\u9020\u3068\u8a2d\u5b9a\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3092\u7406\u89e3\u3059\u308b"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website","url":"https:\/\/www.silicloud.com\/ja\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4aef6196128551a0f5d66db46c42866c","name":"\u967d, \u5411\u5b87","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ad96b120e219751fa368cbd7d2c48ca01b59185e6ed394449bac72614a760bf3?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ad96b120e219751fa368cbd7d2c48ca01b59185e6ed394449bac72614a760bf3?s=96&d=mm&r=g","caption":"\u967d, \u5411\u5b87"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/hinatasora\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/nginx%e3%81%ae%e8%a8%ad%e5%ae%9a%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%81%ae%e6%a7%8b%e9%80%a0%e3%81%a8%e8%a8%ad%e5%ae%9a%e3%82%b3%e3%83%b3%e3%83%86%e3%82%ad%e3%82%b9%e3%83%88%e3%82%92%e7%90%86\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/132","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=132"}],"version-history":[{"count":1,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/132\/revisions"}],"predecessor-version":[{"id":36791,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/132\/revisions\/36791"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=132"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=132"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}