{"id":2443,"date":"2023-04-29T14:53:34","date_gmt":"2023-04-29T05:53:34","guid":{"rendered":"https:\/\/edu.ujhb.org\/?p=2443"},"modified":"2023-04-29T14:53:34","modified_gmt":"2023-04-29T05:53:34","slug":"nginx%e5%85%a5%e9%96%80%ef%bc%88%e6%97%a5%e6%9c%ac%e8%aa%9e%e7%89%88%ef%bc%89","status":"publish","type":"post","link":"https:\/\/edu.ujhb.org\/?p=2443","title":{"rendered":"Nginx\u5165\u9580\uff08\u65e5\u672c\u8a9e\u7248\uff09"},"content":{"rendered":"\n<p>IT\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306e\u30d3\u30c7\u30aa\u3092\u3084\u308a\u305f\u3044\u306e\u3067\u3059\u304c\u3001\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u306b\u5fdc\u3058\u3066\u30d3\u30c7\u30aa\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306e\u30c6\u30ad\u30b9\u30c8\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u914d\u7f6e\u3057\u3066\u3044\u305f\u3060\u3051\u307e\u3059\u304b\u3002 nginx\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u304b\u3089\u59cb\u3081\u307e\u3057\u3087\u3046\u3001\u305d\u3057\u3066\u3042\u306a\u305f\u306f\u79c1\u306b\u30ab\u30d0\u30fc\u3059\u308b\u3082\u306e\u306e\u30ea\u30b9\u30c8\u3092\u4e0e\u3048\u308b\u3053\u3068\u304b\u3089\u59cb\u3081\u307e\u3059\u3002 \u30c1\u30e3\u30c3\u30c8GPT<\/p>\n\n\n\n<p>\u3082\u3061\u308d\u3093\u3067\u3059\uff01 \u4ee5\u4e0b\u306f\u3001\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u30d3\u30c7\u30aa\u306e\u4f5c\u6210\u306b\u4f7f\u7528\u3067\u304d\u308bNginx\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306b\u95a2\u3059\u308b\u30d3\u30c7\u30aa\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u6982\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u30f3\u30ae\u30f3\u30af\u30b9\u306e\u7d39\u4ecb\n<ul class=\"wp-block-list\">\n<li>\u30f3\u30ae\u30f3\u30af\u30b9\u3068\u306f\u4f55\u3067\u3059\u304b?<\/li>\n\n\n\n<li>Nginx\u306e\u5229\u70b9\u3068\u7279\u5fb4<\/li>\n\n\n\n<li>Nginx\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30b7\u30ca\u30ea\u30aa<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Nginx\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u69cb\u6210\n<ul class=\"wp-block-list\">\n<li>Nginx\u3092\u3055\u307e\u3056\u307e\u306a\u30aa\u30da\u30ec\u30fc\u30c6\u30a3\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0(Ubuntu\u3001CentOS\u3001Windows\u306a\u3069)\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>Nginx\u306e\u57fa\u672c\u7684\u306a\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u69cb\u9020<\/li>\n\n\n\n<li>Nginx\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u3092\u5909\u66f4\u3059\u308b\u65b9\u6cd5<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Nginx\u306e\u57fa\u672c\u6a5f\u80fd\n<ul class=\"wp-block-list\">\n<li>\u9759\u7684\u30d5\u30a1\u30a4\u30eb \u30b5\u30fc\u30d3\u30b9<\/li>\n\n\n\n<li>\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7<\/li>\n\n\n\n<li>\u8ca0\u8377\u5206\u6563<\/li>\n\n\n\n<li>URL \u306e\u66f8\u304d\u63db\u3048<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u4eee\u60f3\u30db\u30b9\u30c8\u306e\u69cb\u6210\n<ul class=\"wp-block-list\">\n<li>\u30a6\u30a7\u30d6\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u3068\u306f\u4f55\u3067\u3059\u304b?<\/li>\n\n\n\n<li>\u30c9\u30e1\u30a4\u30f3\u540d\u30d9\u30fc\u30b9\u306e\u30a6\u30a7\u30d6\u30db\u30b9\u30c8\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5<\/li>\n\n\n\n<li>IP\u30a2\u30c9\u30ec\u30b9\u306b\u57fa\u3065\u3044\u3066\u4eee\u60f3\u30db\u30b9\u30c8\u3092\u69cb\u6210\u3059\u308b\u65b9\u6cd5<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>HTTPS \u304a\u3088\u3073 SSL \u3092\u69cb\u6210\u3059\u308b\n<ul class=\"wp-block-list\">\n<li>HTTPS \u304a\u3088\u3073 SSL \u3068\u306f\u4f55\u3067\u3059\u304b?<\/li>\n\n\n\n<li>Nginx\u306eHTTPS\u3068SSL\u3092\u69cb\u6210\u3059\u308b\u65b9\u6cd5<\/li>\n\n\n\n<li>\u8a3c\u660e\u66f8\u3092\u751f\u6210\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u69cb\u6210\n<ul class=\"wp-block-list\">\n<li>\u306a\u305c\u30ad\u30e3\u30c3\u30b7\u30e5\u304c\u5fc5\u8981\u306a\u306e\u3067\u3059\u304b?<\/li>\n\n\n\n<li>\u9759\u7684\u30d5\u30a1\u30a4\u30eb \u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u69cb\u6210\u3059\u308b<\/li>\n\n\n\n<li>\u30d7\u30ed\u30ad\u30b7 \u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u69cb\u6210\u3059\u308b<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u69cb\u6210\n<ul class=\"wp-block-list\">\n<li>DDoS \u653b\u6483\u3092\u9632\u3050<\/li>\n\n\n\n<li>\u30a2\u30af\u30bb\u30b9\u5236\u5fa1\u3092\u69cb\u6210\u3059\u308b<\/li>\n\n\n\n<li>\u901f\u5ea6\u5236\u9650\u3092\u69cb\u6210\u3059\u308b<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\n<ul class=\"wp-block-list\">\n<li>gzip \u5727\u7e2e\u3092\u6709\u52b9\u306b\u3059\u308b<\/li>\n\n\n\n<li>\u30ef\u30fc\u30ab\u30fc \u30d7\u30ed\u30bb\u30b9\u3068\u63a5\u7d9a\u306e\u6570\u3092\u8abf\u6574\u3059\u308b<\/li>\n\n\n\n<li>\u30ad\u30fc\u30d7\u30a2\u30e9\u30a4\u30d6\u63a5\u7d9a\u306e\u6700\u9069\u5316\u3092\u4f7f\u7528\u3059\u308b<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>NGINX\u30ed\u30b0\u7ba1\u7406\n<ul class=\"wp-block-list\">\n<li>\u30ed\u30b0\u5f62\u5f0f\u3068\u30ed\u30b0 \u30ec\u30d9\u30eb<\/li>\n\n\n\n<li>\u30ed\u30b0\u5f62\u5f0f\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3059\u308b<\/li>\n\n\n\n<li>\u30ed\u30b0\u5206\u6790\u30c4\u30fc\u30eb<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Nginx\u306e\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u3068\u89e3\u6c7a\u7b56\n<ul class=\"wp-block-list\">\n<li>\u4e00\u822c\u7684\u306a\u30a8\u30e9\u30fc\u3068\u89e3\u6c7a\u7b56<\/li>\n\n\n\n<li>NGINX\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u304a\u3088\u3073\u76e3\u8996\u30c4\u30fc\u30eb<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<p>\u3053\u306e\u6982\u8981\u304cNginx\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u30d3\u30c7\u30aa\u306e\u4f5c\u6210\u306b\u5f79\u7acb\u3064\u3053\u3068\u3092\u9858\u3063\u3066\u3044\u307e\u3059\u3002 \u3088\u308a\u8a73\u7d30\u306a\u30b3\u30f3\u30c6\u30f3\u30c4\u304c\u5fc5\u8981\u306a\u5834\u5408\u306f\u3001\u304a\u6c17\u8efd\u306b\u304a\u77e5\u3089\u305b\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=2356\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"User\"\/><\/figure>\n\n\n\n<p>Nginx\u3068\u306f\u4f55\u304b\u3092\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u4f1a\u8a71\u3067\u4f7f\u7528\u3055\u308c\u305f\u4ee5\u524d\u306e\u30e2\u30c7\u30eb\u306f\u4f7f\u7528\u3067\u304d\u307e\u305b\u3093\u3002\u6700\u65b0\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u30e2\u30c7\u30eb\u306b\u5207\u308a\u66ff\u3048\u307e\u3057\u305f\u30c1\u30e3\u30c3\u30c8GPT<\/p>\n\n\n\n<p>Nginx(\u300c\u30a8\u30f3\u30b8\u30f3-x\u300d\u3068\u767a\u97f3)\u306f\u3001\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u3001\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u30fc\u3001\u304a\u3088\u3073HTTP\u30ad\u30e3\u30c3\u30b7\u30e5\u30b5\u30fc\u30d0\u30fc\u3068\u3057\u3066\u3082\u4f7f\u7528\u3067\u304d\u308b\u9ad8\u6027\u80fd\u306e\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9Web\u30b5\u30fc\u30d0\u30fc\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3067\u3059\u3002 \u3082\u3068\u3082\u3068\u30ed\u30b7\u30a2\u306e\u30d7\u30ed\u30b0\u30e9\u30de\u30fcIgor Sysoev\u306b\u3088\u3063\u3066\u958b\u767a\u3055\u308c\u305fNginx\u306f\u30012004\u5e74\u306b\u6700\u521d\u306b\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u307e\u3057\u305f\u3002 \u904e\u53bb\u6570\u5e74\u9593\u3067\u3001Nginx\u306f\u6700\u3082\u4eba\u6c17\u306e\u3042\u308bWeb\u30b5\u30fc\u30d0\u30fc\u306e&lt;&gt;\u3064\u306b\u306a\u308a\u3001\u4e16\u754c\u4e2d\u306e\u591a\u304f\u306e\u5927\u624b\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u4f01\u696d\u3067\u4f7f\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>NGINX\u306e\u5229\u70b9\u306f\u6570\u591a\u304f\u3042\u308a\u307e\u3059\u304c\u3001\u305d\u306e\u4e2d\u3067\u6700\u3082\u9855\u8457\u306a\u306e\u306f\u305d\u306e\u9ad8\u6027\u80fd\u3068\u4fe1\u983c\u6027\u3067\u3059\u3002 \u4ed6\u306eWeb\u30b5\u30fc\u30d0\u30fc\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3068\u6bd4\u8f03\u3057\u3066\u3001Nginx\u306f\u540c\u6642\u306b\u591a\u6570\u306e\u540c\u6642\u63a5\u7d9a\u3092\u51e6\u7406\u3067\u304d\u308b\u305f\u3081\u3001\u30b5\u30fc\u30d0\u30fc\u30ea\u30bd\u30fc\u30b9\u306e\u6d88\u8cbb\u3092\u524a\u6e1b\u3067\u304d\u307e\u3059\u3002 \u3055\u3089\u306b\u3001Nginx\u306f\u3001\u3088\u308a\u5b89\u5b9a\u6027\u3068\u4fe1\u983c\u6027\u3092\u9ad8\u3081\u308b\u305f\u3081\u306b\u8a2d\u8a08\u304a\u3088\u3073\u5b9f\u88c5\u3055\u308c\u3066\u304a\u308a\u3001\u9ad8\u8ca0\u8377\u4e0b\u3067\u306e\u30b9\u30e0\u30fc\u30ba\u306a\u52d5\u4f5c\u3092\u53ef\u80fd\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3055\u3089\u306b\u3001Nginx\u306b\u306f\u3001\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u3001\u8ca0\u8377\u5206\u6563\u3001HTTP\u30ad\u30e3\u30c3\u30b7\u30e5\u306a\u3069\u3001\u3055\u307e\u3056\u307e\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30cb\u30fc\u30ba\u3092\u6e80\u305f\u3059\u305f\u3081\u306e\u975e\u5e38\u306b\u67d4\u8edf\u306a\u69cb\u6210\u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u3042\u308a\u307e\u3059\u3002 Nginx\u306f\u3001Linux\u3001FreeBSD\u3001Solaris\u3001Mac OS X\u306a\u3069\u3001\u3055\u307e\u3056\u307e\u306a\u74b0\u5883\u3067\u4f7f\u7528\u3067\u304d\u308b\u8907\u6570\u306e\u30aa\u30da\u30ec\u30fc\u30c6\u30a3\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3082\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5168\u4f53\u3068\u3057\u3066\u3001Nginx\u306f\u3001\u9ad8\u6027\u80fd\u3067\u4fe1\u983c\u6027\u304c\u9ad8\u304f\u3001\u67d4\u8edf\u6027\u304c\u3042\u308a\u3001\u69cb\u6210\u304c\u7c21\u5358\u306aWeb\u30b5\u30fc\u30d0\u30fc\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3067\u3042\u308a\u3001\u9ad8\u6027\u80fd\u306eWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u30b5\u30fc\u30d3\u30b9\u3001\u304a\u3088\u3073\u4fe1\u983c\u6027\u306e\u9ad8\u3044\u30a4\u30f3\u30d5\u30e9\u30b9\u30c8\u30e9\u30af\u30c1\u30e3\u3092\u69cb\u7bc9\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=2356\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"User\"\/><\/figure>\n\n\n\n<p>Nginx ChatGPT\u306e\u5229\u70b9\u3068\u6a5f\u80fd\u3092\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>Nginx\u306f\u3001\u9ad8\u6027\u80fd\u3067\u67d4\u8edf\u6027\u304c\u3042\u308a\u3001\u4fe1\u983c\u6027\u304c\u9ad8\u304f\u3001\u5b89\u5168\u306aWeb\u30b5\u30fc\u30d0\u30fc\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3067\u3042\u308a\u3001\u6b21\u306e\u5229\u70b9\u3068\u6a5f\u80fd\u3092\u5099\u3048\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u9ad8\u6027\u80fd:Nginx\u306e\u8a2d\u8a08\u76ee\u6a19\u306e1\u3064\u306f\u3001\u540c\u6642\u8981\u6c42\u304c\u591a\u3044\u5834\u5408\u306b\u8fc5\u901f\u306b\u5fdc\u7b54\u3067\u304d\u308b\u9ad8\u6027\u80fdWeb\u30b5\u30fc\u30d3\u30b9\u3092\u63d0\u4f9b\u3059\u308b\u3053\u3068\u3067\u3059\u3002 Nginx\u306f\u3001\u30b9\u30ec\u30c3\u30c9\u30d6\u30ed\u30c3\u30ad\u30f3\u30b0\u306e\u554f\u984c\u3092\u56de\u907f\u3059\u308b\u305f\u3081\u306b\u30a4\u30d9\u30f3\u30c8\u99c6\u52d5\u578b\u306e\u975e\u540c\u671f\u51e6\u7406\u3092\u63a1\u7528\u3057\u3001\u4f7f\u7528\u3059\u308b\u30b9\u30ec\u30c3\u30c9\u3068\u30d7\u30ed\u30bb\u30b9\u304c\u5c11\u306a\u304f\u3066\u6e08\u307f\u3001\u591a\u6570\u306e\u540c\u6642\u8981\u6c42\u3092\u51e6\u7406\u3059\u308b\u305f\u3081\u3001\u30b5\u30fc\u30d0\u30fc\u30ea\u30bd\u30fc\u30b9\u306e\u6d88\u8cbb\u304c\u524a\u6e1b\u3055\u308c\u3001Web\u30b5\u30fc\u30d3\u30b9\u306e\u5fdc\u7b54\u901f\u5ea6\u3068\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u5411\u4e0a\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u4fe1\u983c\u6027:Nginx\u306e\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u8a2d\u8a08\u306f\u975e\u5e38\u306b\u30b7\u30f3\u30d7\u30eb\u3067\u9ad8\u5ea6\u306b\u30e2\u30b8\u30e5\u30fc\u30eb\u5316\u3055\u308c\u3066\u304a\u308a\u3001\u305d\u306e\u5b89\u5b9a\u6027\u3068\u4fe1\u983c\u6027\u306f\u9ad8\u3044\u3067\u3059\u3002 Nginx\u306f\u30db\u30c3\u30c8\u30c7\u30d7\u30ed\u30a4\u30e1\u30f3\u30c8\u3082\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u5b9f\u884c\u6642\u306b\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u306e\u5909\u66f4\u3068\u30ea\u30ed\u30fc\u30c9\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u3001\u4e2d\u65ad\u306e\u306a\u3044\u30b5\u30fc\u30d3\u30b9\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u67d4\u8edf\u6027:Nginx\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u69cb\u6587\u306f\u3001\u30b7\u30f3\u30d7\u30eb\u3067\u76f4\u611f\u7684\u3067\u3001\u69cb\u6210\u3068\u7ba1\u7406\u304c\u7c21\u5358\u3067\u3001\u3055\u307e\u3056\u307e\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30cb\u30fc\u30ba\u3092\u6e80\u305f\u3059\u305f\u3081\u306b\u3055\u307e\u3056\u307e\u306a\u30e2\u30b8\u30e5\u30fc\u30eb\u3068\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002 Nginx\u306f\u3001Tomcat\u3001PHP\u3001MySQL\u306a\u3069\u306e\u4ed6\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3068\u7d71\u5408\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3:Nginx\u306f\u3001HTTPS\u3001SSL\u3001IP\u5236\u9650\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u30ec\u30fc\u30c8\u5236\u9650\u3001\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u306a\u3069\u306e\u3055\u307e\u3056\u307e\u306a\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u6a5f\u80fd\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u304a\u308a\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3084\u30b5\u30fc\u30d3\u30b9\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u52b9\u679c\u7684\u306b\u4fdd\u8b77\u3057\u3001\u60aa\u610f\u306e\u3042\u308b\u653b\u6483\u3084\u30c7\u30fc\u30bf\u6f0f\u6d29\u3092\u9632\u3050\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u3068\u8ca0\u8377\u5206\u6563:Nginx\u3092\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u304a\u3088\u3073\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u30fc\u3068\u3057\u3066\u4f7f\u7528\u3057\u3066\u3001\u8907\u6570\u306e\u30b5\u30fc\u30d0\u30fc\u9593\u3067\u8ca0\u8377\u5206\u6563\u3068\u8981\u6c42\u306e\u5206\u6563\u3092\u5b9f\u73fe\u3057\u3001Web\u30b5\u30fc\u30d3\u30b9\u306e\u53ef\u7528\u6027\u3068\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li>HTTP\u30ad\u30e3\u30c3\u30b7\u30f3\u30b0:Nginx\u306fHTTP\u30ad\u30e3\u30c3\u30b7\u30f3\u30b0\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u304a\u308a\u3001\u983b\u7e41\u306b\u8981\u6c42\u3055\u308c\u308b\u30c7\u30fc\u30bf\u3092\u30e1\u30e2\u30ea\u306b\u30ad\u30e3\u30c3\u30b7\u30e5\u3067\u304d\u308b\u305f\u3081\u3001Web\u30b5\u30fc\u30d3\u30b9\u306e\u5fdc\u7b54\u6027\u3068\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u5411\u4e0a\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<p>\u4e00\u822c\u306b\u3001Nginx\u306f\u3001\u512a\u308c\u305f\u30b9\u30b1\u30fc\u30e9\u30d3\u30ea\u30c6\u30a3\u3068\u9069\u5fdc\u6027\u3092\u5099\u3048\u305f\u9ad8\u6027\u80fd\u3067\u4fe1\u983c\u6027\u304c\u9ad8\u304f\u3001\u67d4\u8edf\u3067\u5b89\u5168\u306aWeb\u30b5\u30fc\u30d0\u30fc\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3067\u3042\u308a\u3001\u3055\u307e\u3056\u307e\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30b7\u30ca\u30ea\u30aa\u3068\u30cb\u30fc\u30ba\u3092\u6e80\u305f\u3059\u3053\u3068\u304c\u3067\u304d\u3001\u9ad8\u6027\u80fd\u3067\u4fe1\u983c\u6027\u306e\u9ad8\u3044Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u30b5\u30fc\u30d3\u30b9\u3092\u69cb\u7bc9\u3059\u308b\u305f\u3081\u306e\u6700\u521d\u306e\u9078\u629e\u80a2\u306e1\u3064\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=2356\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"User\"\/><\/figure>\n\n\n\n<p>Nginx\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30b7\u30ca\u30ea\u30aaChatGPT\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>Nginx\u306f\u3001\u3055\u307e\u3056\u307e\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30b7\u30ca\u30ea\u30aa\u306b\u9069\u3057\u305f\u9ad8\u6027\u80fd\u3067\u4fe1\u983c\u6027\u304c\u9ad8\u304f\u3001\u67d4\u8edf\u3067\u5b89\u5168\u306aWeb\u30b5\u30fc\u30d0\u30fc\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3067\u3042\u308a\u3001Nginx\u306e\u4e3b\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30b7\u30ca\u30ea\u30aa\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc:Nginx\u306f\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc\u3068\u3057\u3066\u4f7f\u7528\u3067\u304d\u3001HTML\u3001CSS\u3001JavaScript\u3001PHP\u3001Python\u306a\u3069\u306e\u9759\u7684\u304a\u3088\u3073\u52d5\u7684\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u30db\u30b9\u30c8\u3067\u304d\u307e\u3059\u3002 Nginx\u306f\u3001\u305d\u306e\u9ad8\u3044\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3068\u4fe1\u983c\u6027\u306b\u3088\u308a\u3001\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u306e\u591a\u3044Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3084\u30b5\u30fc\u30d3\u30b9\u3092\u904b\u3076\u305f\u3081\u306b\u3088\u304f\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u3068\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u30fc:Nginx\u3092\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u3068\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u30fc\u3068\u3057\u3066\u4f7f\u7528\u3057\u3066\u3001\u8907\u6570\u306e\u30b5\u30fc\u30d0\u30fc\u306b\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3092\u5206\u6563\u3067\u304d\u307e\u3059\u3002 Nginx\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001Web\u30b5\u30fc\u30d3\u30b9\u306e\u53ef\u7528\u6027\u3001\u4fe1\u983c\u6027\u3001\u304a\u3088\u3073\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li>HTTP\u30ad\u30e3\u30c3\u30b7\u30f3\u30b0\u30b5\u30fc\u30d0\u30fc:Nginx\u306fHTTP\u30ad\u30e3\u30c3\u30b7\u30f3\u30b0\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u304a\u308a\u3001\u983b\u7e41\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3055\u308c\u308b\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u30e1\u30e2\u30ea\u306b\u30ad\u30e3\u30c3\u30b7\u30e5\u3059\u308b\u3053\u3068\u3067\u3001Web\u30b5\u30fc\u30d3\u30b9\u306e\u5fdc\u7b54\u3092\u9ad8\u901f\u5316\u3057\u307e\u3059\u3002 \u3055\u3089\u306b\u3001Nginx\u306f\u9759\u7684\u30d5\u30a1\u30a4\u30eb\u30ad\u30e3\u30c3\u30b7\u30e5\u3068\u30d7\u30ed\u30ad\u30b7\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002<\/li>\n\n\n\n<li>HTTPS\u304a\u3088\u3073SSL\u7aef\u672b:Nginx\u306fHTTPS\u304a\u3088\u3073SSL\u30d7\u30ed\u30c8\u30b3\u30eb\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u304a\u308a\u3001\u5b89\u5168\u306a\u30c7\u30fc\u30bf\u9001\u4fe1\u3068\u901a\u4fe1\u3092\u5b9f\u73fe\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002 Nginx\u306fHTTPS\u304a\u3088\u3073SSL\u30bf\u30fc\u30df\u30ca\u30eb\u3068\u3057\u3066\u4f7f\u7528\u3067\u304d\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u30b5\u30fc\u30d3\u30b9\u3092\u4fdd\u8b77\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li>WebSocket\u30b5\u30fc\u30d0\u30fc:Nginx\u306f\u3001\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u901a\u4fe1\u3068\u30d7\u30c3\u30b7\u30e5\u30b5\u30fc\u30d3\u30b9\u306e\u5b9f\u88c5\u306b\u4f7f\u7528\u3067\u304d\u308bWebSocket\u30d7\u30ed\u30c8\u30b3\u30eb\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002 Nginx\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001WebSocket\u30b5\u30fc\u30d0\u30fc\u3068\u30d7\u30c3\u30b7\u30e5\u30b5\u30fc\u30d3\u30b9\u3092\u7c21\u5358\u306b\u5b9f\u88c5\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30b3\u30f3\u30c6\u30ca\u5316\u3055\u308c\u305f\u30c7\u30d7\u30ed\u30a4:Nginx\u306f\u3001Docker\u306a\u3069\u306e\u30b3\u30f3\u30c6\u30ca\u5316\u3055\u308c\u305f\u30c6\u30af\u30ce\u30ed\u30b8\u30fc\u3068\u7c21\u5358\u306b\u7d71\u5408\u3057\u3066\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u30b5\u30fc\u30d3\u30b9\u3092\u8fc5\u901f\u306b\u30c7\u30d7\u30ed\u30a4\u304a\u3088\u3073\u7ba1\u7406\u3067\u304d\u307e\u3059\u3002 \u30b3\u30f3\u30c6\u30ca\u5316\u3055\u308c\u305f\u74b0\u5883\u3067\u306f\u3001Nginx\u306f\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u304a\u3088\u3073\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u30fc\u3068\u3057\u3066\u3088\u304f\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<p>\u5168\u4f53\u3068\u3057\u3066\u3001Nginx\u306f\u3001\u3055\u307e\u3056\u307e\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30b7\u30ca\u30ea\u30aa\u306b\u5bfe\u5fdc\u3059\u308b\u3001\u5f37\u529b\u3067\u67d4\u8edf\u6027\u304c\u3042\u308a\u3001\u4fe1\u983c\u6027\u304c\u9ad8\u304f\u3001\u5b89\u5168\u306aWeb\u30b5\u30fc\u30d0\u30fc\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3067\u3059\u3002 \u5c0f\u898f\u6a21\u306aWeb\u30b5\u30a4\u30c8\u3067\u3082\u5927\u898f\u6a21\u306aWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u3082\u3001Nginx\u306f\u9ad8\u6027\u80fd\u3067\u4fe1\u983c\u6027\u306e\u9ad8\u3044Web\u30b5\u30fc\u30d3\u30b9\u3092\u69cb\u7bc9\u3059\u308b\u305f\u3081\u306e\u6700\u521d\u306e\u9078\u629e\u80a2\u306e1\u3064\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=2356\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"User\"\/><\/figure>\n\n\n\n<p>Nginx(Ubuntu\u3001CentOS\u3001Windows\u306a\u3069)\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044\u3002 \u7570\u306a\u308b\u30aa\u30da\u30ec\u30fc\u30c6\u30a3\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u3078\u306e\u30c1\u30e3\u30c3\u30c8GPT<\/p>\n\n\n\n<p>Nginx\u306f\u3001Linux\u3001FreeBSD\u3001Solaris\u3001Mac OS X\u3001Windows\u306a\u3069\u3001\u8907\u6570\u306e\u30aa\u30da\u30ec\u30fc\u30c6\u30a3\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002 \u3055\u307e\u3056\u307e\u306a\u30aa\u30da\u30ec\u30fc\u30c6\u30a3\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u306bNginx\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u305f\u3081\u306e\u8a73\u7d30\u306a\u624b\u9806\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Ubuntu\u306bNginx\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\n<ul class=\"wp-block-list\">\n<li>\u307e\u305a\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3057\u3066\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30ea\u30b9\u30c8\u3092\u66f4\u65b0\u3057\u307e\u3059:sqlCopy \u30b3\u30fc\u30c9<code>sudo apt-get update<\/code><\/li>\n\n\n\n<li>\u6b21\u306b\u3001Nginx\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059:arduino\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3057\u3066\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc\u3057\u307e\u3059<code>sudo apt-get install nginx<\/code><\/li>\n\n\n\n<li>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066Nginx:sqlCopy\u30b3\u30fc\u30c9\u3092\u8d77\u52d5\u3067\u304d\u307e\u3059\u3002<code>sudo systemctl start nginx<\/code><\/li>\n\n\n\n<li>\u30b7\u30b9\u30c6\u30e0\u306e\u8d77\u52d5\u6642\u306bNginx\u3092\u81ea\u52d5\u7684\u306b\u8d77\u52d5\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u306f\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<code>sudo systemctl enable nginx<\/code><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>CentOS\u306bNginx\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\n<ul class=\"wp-block-list\">\n<li>\u307e\u305a\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3057\u3066\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30ea\u30b9\u30c8\u3092\u66f4\u65b0\u3057\u307e\u3059:sqlCopy \u30b3\u30fc\u30c9<code>sudo yum update<\/code><\/li>\n\n\n\n<li>\u6b21\u306b\u3001Nginx\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059:arduino\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3057\u3066\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc\u3057\u307e\u3059<code>sudo yum install epel-release sudo yum install nginx<\/code><\/li>\n\n\n\n<li>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066Nginx:sqlCopy\u30b3\u30fc\u30c9\u3092\u8d77\u52d5\u3067\u304d\u307e\u3059\u3002<code>sudo systemctl start nginx<\/code><\/li>\n\n\n\n<li>\u30b7\u30b9\u30c6\u30e0\u306e\u8d77\u52d5\u6642\u306bNginx\u3092\u81ea\u52d5\u7684\u306b\u8d77\u52d5\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u306f\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<code>sudo systemctl enable nginx<\/code><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u30a6\u30a3\u30f3\u30c9\u30a6\u30ba\u306bNginx\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\n<ul class=\"wp-block-list\">\n<li>\u307e\u305a\u3001<a href=\"https:\/\/nginx.org\/en\/download.html%EF%BC%89%E4%B8%8B%E8%BD%BD%E9%80%82%E5%90%88Windows%E5%B9%B3%E5%8F%B0%E7%9A%84Nginx%E5%AE%89%E8%A3%85%E5%8C%85%E3%80%82\">Nginx\u306e\u516c\u5f0f\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8(https:\/\/nginx.org\/en\/download.html)\u304b\u3089Windows\u7528\u306eNginx\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<\/a><\/li>\n\n\n\n<li>\u6b21\u306b\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u30fc\u3092\u5b9f\u884c\u3057\u3001\u30d7\u30ed\u30f3\u30d7\u30c8\u306b\u5f93\u3063\u3066Nginx\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u5b8c\u4e86\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3067Nginx:bashCopy\u30b3\u30fc\u30c9\u3092\u8d77\u52d5\u3067\u304d\u307e\u3059\u3002<code>cd C:\\nginx start nginx<\/code><\/li>\n\n\n\n<li>Nginx\u30b5\u30fc\u30d3\u30b9\u3092\u505c\u6b62\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u306f\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<code>cd C:\\nginx nginx -s stop<\/code><\/li>\n\n\n\n<li>\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u3092\u30ea\u30ed\u30fc\u30c9\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u306f\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<code>cd C:\\nginx nginx -s reload<\/code><\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<p>\u4e00\u822c\u306b\u3001Nginx\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u306f\u30aa\u30da\u30ec\u30fc\u30c6\u30a3\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u306b\u3088\u3063\u3066\u308f\u305a\u304b\u306b\u7570\u306a\u308a\u307e\u3059\u304c\u3001\u4e00\u822c\u7684\u306b\u306f\u4f3c\u3066\u3044\u307e\u3059\u3002 \u4e0a\u8a18\u306e\u624b\u9806\u306b\u5f93\u3063\u3066\u3001\u5404\u30aa\u30da\u30ec\u30fc\u30c6\u30a3\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u306bNginx\u3092\u6b63\u5e38\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=2356\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"User\"\/><\/figure>\n\n\n\n<p>Nginx ChatGPT\u306e\u57fa\u672c\u7684\u306a\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u69cb\u9020\u3092\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>Nginx\u306e\u57fa\u672c\u7684\u306a\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u69cb\u9020\u306f\u3001\u6b21\u306e\u90e8\u5206\u3067\u69cb\u6210\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u30b0\u30ed\u30fc\u30d0\u30eb\u30d6\u30ed\u30c3\u30af:\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u306e\u3053\u306e\u90e8\u5206\u306b\u306f\u3001Nginx\u3092\u5b9f\u884c\u3057\u3066\u3044\u308b\u30e6\u30fc\u30b6\u30fc\u3001\u30d7\u30ed\u30bb\u30b9\u6570\u3001\u30a8\u30e9\u30fc\u30ed\u30b0\u30d1\u30b9\u306a\u3069\u306e\u30b0\u30ed\u30fc\u30d0\u30eb\u547d\u4ee4\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002 \u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u3067\u306f\u3001\u30b0\u30ed\u30fc\u30d0\u30eb\u30d6\u30ed\u30c3\u30af\u306f\u4e2d\u62ec\u5f27 {} \u3067\u56f2\u307e\u308c\u3066\u3044\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30a4\u30d9\u30f3\u30c8\u30d6\u30ed\u30c3\u30af:\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u306e\u3053\u306e\u90e8\u5206\u306b\u306f\u3001\u30a4\u30d9\u30f3\u30c8\u99c6\u52d5\u578b\u30e2\u30fc\u30c9\u306e\u9078\u629e\u3001\u4f7f\u7528\u3059\u308b\u30ef\u30fc\u30ab\u30fc\u30d7\u30ed\u30bb\u30b9\u306e\u6570\u306a\u3069\u3001Nginx\u306e\u30a4\u30d9\u30f3\u30c8\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u6307\u793a\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002 \u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u3067\u306f\u3001Events \u30d6\u30ed\u30c3\u30af\u3082\u4e2d\u62ec\u5f27 {} \u3067\u56f2\u307e\u308c\u3066\u3044\u307e\u3059\u3002<\/li>\n\n\n\n<li>HTTP\u30d6\u30ed\u30c3\u30af:\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u306e\u3053\u306e\u90e8\u5206\u306b\u306f\u3001IP\u30a2\u30c9\u30ec\u30b9\u3068\u30dd\u30fc\u30c8\u3067\u306e\u30ea\u30c3\u30b9\u30f3\u3001HTTP\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u6709\u52b9\u5316\u306a\u3069\u3001HTTP\u30b5\u30fc\u30d0\u30fc\u306e\u69cb\u6210\u624b\u9806\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002 \u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u3067\u306f\u3001HTTP \u30d6\u30ed\u30c3\u30af\u3082\u4e2d\u62ec\u5f27 {} \u3067\u56f2\u307e\u308c\u3066\u3044\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af:\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u306e\u3053\u306e\u90e8\u5206\u306f\u3001\u30ea\u30b9\u30cb\u30f3\u30b0IP\u30a2\u30c9\u30ec\u30b9\u3068\u30dd\u30fc\u30c8\u3001\u30c9\u30e1\u30a4\u30f3\u540d\u3001SSL\u8a3c\u660e\u66f8\u306a\u3069\u306e\u69cb\u6210\u60c5\u5831\u3092\u542b\u3080HTTP\u30b5\u30fc\u30d0\u30fc\u306e\u4eee\u60f3\u30db\u30b9\u30c8\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002 \u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u3067\u306f\u3001Server \u30d6\u30ed\u30c3\u30af\u3082\u4e2d\u62ec\u5f27 {} \u3067\u56f2\u307e\u308c\u3066\u3044\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u5834\u6240\u30d6\u30ed\u30c3\u30af: \u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u306e\u3053\u306e\u90e8\u5206\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u3078\u306e URL \u30d1\u30b9\u306b\u5bfe\u5fdc\u3059\u308b\u30cf\u30f3\u30c9\u30e9\u30fc\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002 \u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u3067\u306f\u3001Location \u30d6\u30ed\u30c3\u30af\u3082\u4e2d\u304b\u3063\u3053 {} \u3067\u56f2\u307e\u308c\u3066\u3044\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<p>\u5358\u7d14\u306aNginx\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u69cb\u9020\u306e\u4f8b\u3092\u6b21\u306b\u793a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">bashCopy code<code>user www-data;\nworker_processes auto;\nerror_log \/var\/log\/nginx\/error.log;\npid \/run\/nginx.pid;\n\nevents {\n    worker_connections 1024;\n}\n\nhttp {\n    include \/etc\/nginx\/mime.types;\n    default_type application\/octet-stream;\n    access_log \/var\/log\/nginx\/access.log;\n\n    server {\n        listen 80;\n        server_name example.com;\n        root \/var\/www\/example.com;\n        index index.html;\n\n        location \/ {\n            try_files $uri $uri\/ \/index.html;\n        }\n    }\n}\n<\/code><\/pre>\n\n\n\n<p>\u3053\u306e\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u306e\u4f8b\u3067\u306f\u3001\u30b0\u30ed\u30fc\u30d0\u30eb\u30d6\u30ed\u30c3\u30af\u306f\u3001Nginx\u3092\u5b9f\u884c\u3057\u3066\u3044\u308b\u30e6\u30fc\u30b6\u30fc\u3001\u30d7\u30ed\u30bb\u30b9\u6570\u3001\u30a8\u30e9\u30fc\u30ed\u30b0\u30d1\u30b9\u3001\u304a\u3088\u3073\u30d7\u30ed\u30bb\u30b9ID\u30d5\u30a1\u30a4\u30eb\u30d1\u30b9\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002 Events \u30d6\u30ed\u30c3\u30af\u306f\u3001\u30ef\u30fc\u30ab\u30fc \u30d7\u30ed\u30bb\u30b9\u306e\u6700\u5927\u63a5\u7d9a\u6570\u306a\u3069\u3001\u30a4\u30d9\u30f3\u30c8 \u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u69cb\u6210\u624b\u9806\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002 HTTP \u30d6\u30ed\u30c3\u30af\u306b\u306f\u3001MIME \u30bf\u30a4\u30d7\u3001\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30d5\u30a1\u30a4\u30eb\u30bf\u30a4\u30d7\u306a\u3069\u3001\u4e00\u9023\u306e HTTP \u30b5\u30fc\u30d0\u30fc\u8a2d\u5b9a\u624b\u9806\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002 Server \u30d6\u30ed\u30c3\u30af\u306f\u3001\u30ea\u30b9\u30cb\u30f3\u30b0 IP \u30a2\u30c9\u30ec\u30b9\u3068\u30dd\u30fc\u30c8\u3001\u30c9\u30e1\u30a4\u30f3\u540d\u3001\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3001\u304a\u3088\u3073\u30c7\u30d5\u30a9\u30eb\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u542b\u3080 HTTP \u30b5\u30fc\u30d0\u30fc\u306e\u4eee\u60f3\u30db\u30b9\u30c8\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002 Location \u30d6\u30ed\u30c3\u30af\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u3078\u306e URL \u30d1\u30b9\u306b\u5bfe\u5fdc\u3059\u308b\u30cf\u30f3\u30c9\u30e9\u30fc\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5168\u4f53\u3068\u3057\u3066\u3001Nginx\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u69cb\u9020\u306f\u975e\u5e38\u306b\u67d4\u8edf\u3067\u62e1\u5f35\u53ef\u80fd\u3067\u3042\u308a\u3001\u5b9f\u969b\u306e\u30cb\u30fc\u30ba\u306b\u5fdc\u3058\u3066\u69cb\u6210\u304a\u3088\u3073\u7ba1\u7406\u3067\u304d\u307e\u3059\u3002 Nginx\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u69cb\u9020\u306b\u7cbe\u901a\u3057\u3066\u3044\u308b\u3053\u3068\u306f\u3001Nginx\u30b5\u30fc\u30d0\u30fc\u3092\u7406\u89e3\u3057\u3066\u7ba1\u7406\u3059\u308b\u305f\u3081\u306b\u91cd\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=2356\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"User\"\/><\/figure>\n\n\n\n<p>Nginx\u69cb\u6210\u30d5\u30a1\u30a4\u30ebChatGPT\u3092\u5909\u66f4\u3059\u308b\u65b9\u6cd5\u3092\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>Nginx\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u3092\u5909\u66f4\u3059\u308b\u306b\u306f\u3001\u6b21\u306e\u624b\u9806\u306b\u5f93\u3046\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u5909\u66f4\u3059\u308b\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u306e\u30d1\u30b9\u3092\u6c7a\u5b9a\u3057\u307e\u3059:Nginx\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306f\u901a\u5e38\/ etc \/ nginx \/\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3042\u308a\u3001\u7279\u5b9a\u306e\u30d1\u30b9\u3068\u540d\u524d\u306fNginx\u30b9\u30bf\u30fc\u30c8\u30a2\u30c3\u30d7\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u3042\u308a\u307e\u3059\u3002 \u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001Nginx\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u30d1\u30b9\u3092\u898b\u3064\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc\u3059\u308b \u3053\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001\/etc\/nginx\/nginx.conf \u306a\u3069\u306e Nginx \u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u30d1\u30b9\u3092\u51fa\u529b\u3057\u307e\u3059\u3002<code>nginx -t<\/code><\/li>\n\n\n\n<li>\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304f:vi\u3084nano\u306a\u3069\u306e\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3092\u4f7f\u7528\u3057\u3066Nginx\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304d\u307e\u3059\u3002 \u30bf\u30fc\u30df\u30ca\u30eb\u3067\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3057\u3066\u3001Nginx\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304d\u307e\u3059\u3002 bashCopy code \u3053\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u3067Nginx\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304d\u3001\u7de8\u96c6\u3067\u304d\u307e\u3059\u3002<code>sudo nano \/etc\/nginx\/nginx.conf<\/code><\/li>\n\n\n\n<li>\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u306e\u5909\u66f4: \u5fc5\u8981\u306b\u5fdc\u3058\u3066 Nginx \u306e\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u3092\u5909\u66f4\u3057\u307e\u3059\u3002 \u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3084\u30d6\u30ed\u30c3\u30af\u306a\u3069\u3092\u8ffd\u52a0\u3001\u524a\u9664\u3001\u307e\u305f\u306f\u7de8\u96c6\u3067\u304d\u307e\u3059\u3002 \u5909\u66f4\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3057\u3066\u9589\u3058\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002 \u30bf\u30fc\u30df\u30ca\u30eb\u3067\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3057\u3066\u3001\u5909\u66f4\u3055\u308c\u305f\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u306b\u69cb\u6587\u30a8\u30e9\u30fc\u304c\u3042\u308b\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002 \u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc \u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u306b\u69cb\u6587\u30a8\u30e9\u30fc\u304c\u3042\u308b\u5834\u5408\u3001\u3053\u306e\u30b3\u30de\u30f3\u30c9\u306f\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u51fa\u529b\u3057\u3001\u30a8\u30e9\u30fc\u304c\u3042\u308b\u884c\u3092\u793a\u3057\u307e\u3059\u3002 \u30a8\u30e9\u30fc\u3092\u4fee\u6b63\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<code>sudo nginx -t<\/code><\/li>\n\n\n\n<li>Nginx\u69cb\u6210\u306e\u30ea\u30ed\u30fc\u30c9:\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3057\u3066\u3001Nginx\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u3092\u30ea\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002 \u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc \u3053\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001Nginx\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u3092\u30ea\u30ed\u30fc\u30c9\u3057\u3001\u5909\u66f4\u3055\u308c\u305f\u69cb\u6210\u3092\u9069\u7528\u3057\u307e\u3059\u3002 \u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u306b\u69cb\u6587\u30a8\u30e9\u30fc\u304c\u3042\u308b\u5834\u5408\u3001Nginx\u306f\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u3092\u30aa\u30fc\u30d0\u30fc\u30ed\u30fc\u30c9\u305b\u305a\u3001\u4ee3\u308f\u308a\u306b\u4ee5\u524d\u306e\u69cb\u6210\u3092\u4fdd\u6301\u3057\u307e\u3059\u3002<code>sudo systemctl reload nginx<\/code><\/li>\n<\/ol>\n\n\n\n<p>\u4e00\u822c\u306b\u3001Nginx\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u3092\u5909\u66f4\u3059\u308b\u306b\u306f\u3001Nginx\u306e\u69cb\u6210\u624b\u9806\u3068\u30d5\u30a1\u30a4\u30eb\u69cb\u9020\u306b\u7cbe\u901a\u3057\u3001\u7279\u5b9a\u306e\u4ed5\u69d8\u3068\u5f62\u5f0f\u306b\u5f93\u3046\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 Nginx\u304c\u6b63\u3057\u304f\u6a5f\u80fd\u3057\u306a\u3044\u539f\u56e0\u3068\u306a\u308b\u5909\u66f4\u3055\u308c\u305f\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u306e\u30a8\u30e9\u30fc\u3092\u9632\u3050\u305f\u3081\u306b\u3001\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u3092\u5909\u66f4\u3059\u308b\u524d\u306b\u5143\u306e\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u3092\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3059\u308b\u3053\u3068\u3092\u304a\u52e7\u3081\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=2356\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"User\"\/><\/figure>\n\n\n\n<p>\u9759\u7684\u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d3\u30b9ChatGPT\u3067\u3042\u308bNginx\u306e\u57fa\u672c\u6a5f\u80fd\u3092\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>Nginx\u306e\u57fa\u672c\u7684\u306a\u6a5f\u80fd\u306e1\u3064\u306f\u3001HTML\u3001CSS\u3001JavaScript\u3001\u753b\u50cf\u3001\u30d3\u30c7\u30aa\u306a\u3069\u306e\u9759\u7684\u30d5\u30a1\u30a4\u30eb\u3092\u30db\u30b9\u30c8\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3067\u304d\u308b\u9759\u7684\u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d3\u30b9\u3067\u3059\u3002 \u9759\u7684\u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d3\u30f3\u30b0\u306fNginx\u306e\u6700\u3082\u4e00\u822c\u7684\u306b\u4f7f\u7528\u3055\u308c\u308b\u6a5f\u80fd\u306e1\u3064\u3067\u3042\u308a\u3001Nginx\u304c\u9759\u7684\u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d3\u30f3\u30b0\u3092\u63d0\u4f9b\u3059\u308b\u305f\u3081\u306e\u57fa\u672c\u7684\u306a\u30d7\u30ed\u30bb\u30b9\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Nginx\u9759\u7684\u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d3\u30b9\u306e\u69cb\u6210:Nginx\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u3067\u3001\u9759\u7684\u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d3\u30b9\u306e\u30ea\u30b9\u30cb\u30f3\u30b0\u30a2\u30c9\u30ec\u30b9\u3001\u30dd\u30fc\u30c8\u3001\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3001\u304a\u3088\u3073\u30c7\u30d5\u30a9\u30eb\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u69cb\u6210\u3057\u307e\u3059\u3002 \u4f8b\u3048\u3070\u3001perlCopy \u30b3\u30fc\u30c9\u306f\u30dd\u30fc\u30c8 80 \u3067 HTTP \u30ea\u30af\u30a8\u30b9\u30c8\u3092\u8a2d\u5b9a\u3057\u3001\u30eb\u30fc\u30c8\u3092 \/var\/www\/example.com \u306b\u7f6e\u304d\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u30d5\u30a1\u30a4\u30eb\u3068\u3057\u3066 index.html \u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<code>server { listen 80; server_name example.com; root \/var\/www\/example.com; index index.html; }<\/code><\/li>\n\n\n\n<li>\u9759\u7684\u30d5\u30a1\u30a4\u30eb\u3092\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u914d\u7f6e\u3059\u308b: \u9759\u7684\u30d5\u30a1\u30a4\u30eb\u3092\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea(\/var\/www\/example .com\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306a\u3069)\u306b\u914d\u7f6e\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u9759\u7684\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u30a2\u30af\u30bb\u30b9:\u30d6\u30e9\u30a6\u30b6\u306b\u30b5\u30fc\u30d0\u30fc\u306eIP\u30a2\u30c9\u30ec\u30b9\u307e\u305f\u306f\u30c9\u30e1\u30a4\u30f3\u540d\u3092\u5165\u529b\u3059\u308b\u3068\u3001Nginx\u306f\u8981\u6c42\u3055\u308c\u305fURL\u30d1\u30b9\u3092\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306e\u5bfe\u5fdc\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u306b\u30de\u30c3\u30d7\u3057\u3001\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u3092\u8fd4\u3057\u307e\u3059\u3002 \u305f\u3068\u3048\u3070\u3001<a href=\"http:\/\/example.com\/index.html%E4%BC%9A%E8%BF%94%E5%9B%9E\/var\/www\/example.com\/index.html%E6%96%87%E4%BB%B6%E7%9A%84%E5%86%85%E5%AE%B9%E3%80%82\">\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9 http:\/\/example.com\/index.html returns\/var\/www\/example.com\/index.html \u306b\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002<\/a><\/li>\n\n\n\n<li>\u9759\u7684\u30d5\u30a1\u30a4\u30eb\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u30b5\u30dd\u30fc\u30c8:Nginx\u306f\u9759\u7684\u30d5\u30a1\u30a4\u30eb\u30ad\u30e3\u30c3\u30b7\u30e5\u3082\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u304a\u308a\u3001\u983b\u7e41\u306b\u8981\u6c42\u3055\u308c\u308b\u9759\u7684\u30d5\u30a1\u30a4\u30eb\u3092\u30e1\u30e2\u30ea\u306b\u30ad\u30e3\u30c3\u30b7\u30e5\u3057\u3066\u3001Web\u30b5\u30fc\u30d3\u30b9\u306e\u5fdc\u7b54\u6027\u3068\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u6709\u52b9\u306b\u3059\u308b\u306b\u306f\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u8ffd\u52a0\u3057\u307e\u3059: bashCopy \u30b3\u30fc\u30c9\u3002\u3053\u308c\u306f\u3001\u9759\u7684\u30d5\u30a1\u30a4\u30eb\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u6642\u9593\u3092 24 \u6642\u9593\u306b\u8a2d\u5b9a\u3057\u3001Cache-Control \u30d8\u30c3\u30c0\u30fc\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<code>location \/ { try_files $uri $uri\/ \/index.html; expires 24h; add_header Cache-Control \"public\"; }<\/code><\/li>\n<\/ol>\n\n\n\n<p>\u4e00\u822c\u306b\u3001Nginx\u306e\u9759\u7684\u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d3\u30b9\u6a5f\u80fd\u306f\u9759\u7684\u30d5\u30a1\u30a4\u30eb\u3092\u7c21\u5358\u306b\u30db\u30b9\u30c8\u3067\u304d\u3001\u9ad8\u6027\u80fd\u3067\u4fe1\u983c\u6027\u306e\u9ad8\u3044Web\u30b5\u30fc\u30d3\u30b9\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002 \u9759\u7684\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u983b\u7e41\u306a\u30a2\u30af\u30bb\u30b9\u3092\u5fc5\u8981\u3068\u3059\u308bWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5834\u5408\u3001Nginx\u306e\u9759\u7684\u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d3\u30b9\u6a5f\u80fd\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001Web\u30b5\u30fc\u30d3\u30b9\u306e\u5fdc\u7b54\u6027\u3068\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u52b9\u679c\u7684\u306b\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=2356\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"User\"\/><\/figure>\n\n\n\n<p>Nginx\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7ChatGPT\u306e\u57fa\u672c\u6a5f\u80fd\u3092\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>Nginx\u306e\u57fa\u672c\u6a5f\u80fd\u306e1\u3064\u306f\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u3067\u3042\u308a\u3001\u30d0\u30c3\u30af\u30a8\u30f3\u30c9Web\u30b5\u30fc\u30d0\u30fc\u306e\u30d7\u30ed\u30ad\u30b7\u3068\u3057\u3066\u6a5f\u80fd\u3057\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304b\u3089\u8981\u6c42\u3092\u53d7\u4fe1\u3057\u3001\u51e6\u7406\u306e\u305f\u3081\u306b\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u30b5\u30fc\u30d0\u30fc\u306b\u8981\u6c42\u3092\u8ee2\u9001\u3057\u307e\u3059\u3002 \u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u306fNginx\u306e\u6700\u3082\u91cd\u8981\u306a\u6a5f\u80fd\u306e1\u3064\u3067\u3042\u308a\u3001Nginx\u304c\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u3092\u63d0\u4f9b\u3059\u308b\u57fa\u672c\u7684\u306a\u30d7\u30ed\u30bb\u30b9\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Nginx\u306e\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u3092\u69cb\u6210\u3059\u308b:Nginx\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u3067\u3001\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u306e\u30ea\u30b9\u30cb\u30f3\u30b0\u30a2\u30c9\u30ec\u30b9\u3068\u30dd\u30fc\u30c8\u3001\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u306e\u30a2\u30c9\u30ec\u30b9\u3068\u30dd\u30fc\u30c8\u3001\u304a\u3088\u3073\u305d\u306e\u4ed6\u306e\u60c5\u5831\u3092\u69cb\u6210\u3057\u307e\u3059\u3002 \u4f8b\u3048\u3070\u3001perlCopy \u30b3\u30fc\u30c9\u306f\u30dd\u30fc\u30c8 80 \u3067 HTTP \u8981\u6c42\u3092\u69cb\u6210\u3057\u3001\u8981\u6c42\u306e URL \u30d1\u30b9\u3092 http:\/\/backend-server:8080 \u306b\u53cd\u8ee2\u3055\u305b\u307e\u3059<a href=\"http:\/\/backend-server:8080%E3%80%82%E5%90%8C%E6%97%B6%EF%BC%8C%E8%BF%98%E6%B7%BB%E5%8A%A0%E4%BA%86%E4%B8%80%E4%BA%9B%E4%BB%A3%E7%90%86%E5%A4%B4%E4%BF%A1%E6%81%AF%EF%BC%8C%E4%BE%8B%E5%A6%82Host%E3%80%81X-Real-IP%E5%92%8CX-Forwarded-For%E3%80%82\/\">\u3002 \u540c\u6642\u306b\u3001\u30db\u30b9\u30c8\u3001X-Real-IP\u3001X-Forwarded-For\u306a\u3069\u306e\u30d7\u30ed\u30ad\u30b7\u30d8\u30c3\u30c0\u30fc\u60c5\u5831\u304c\u8ffd\u52a0\u3055\u308c\u307e\u3057\u305f\u3002&nbsp;<\/a><code>server { listen 80; server_name example.com; location \/ { proxy_pass http:\/\/backend-server:8080; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } }<\/code><\/li>\n\n\n\n<li>\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u30fb\u30b5\u30fc\u30d0\u30fc\u306e\u8d77\u52d5: Tomcat\u3084Node.js\u30b5\u30fc\u30d0\u30fc\u306a\u3069\u306e\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u30fb\u30b5\u30fc\u30d0\u30fc\u3092\u8d77\u52d5&nbsp;<a href=\"http:\/\/backend-server:8080%E5%9C%B0%E5%9D%80%E5%92%8C%E7%AB%AF%E5%8F%A3%E3%80%82\/\">http:\/\/backend-server:8080 \u30a2\u30c9\u30ec\u30b9\u3068\u30dd\u30fc\u30c8\u3067\u30ea\u30c3\u30b9\u30f3\u3057\u307e\u3059\u3002<\/a><\/li>\n\n\n\n<li>\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u30b5\u30fc\u30d3\u30b9\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b:\u30d6\u30e9\u30a6\u30b6\u306b\u30b5\u30fc\u30d0\u30fc\u306eIP\u30a2\u30c9\u30ec\u30b9\u307e\u305f\u306f\u30c9\u30e1\u30a4\u30f3\u540d\u3092\u5165\u529b\u3059\u308b\u3068\u3001Nginx\u306f\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u53d7\u4fe1\u3057\u3001\u51e6\u7406\u306e\u305f\u3081\u306b\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u30b5\u30fc\u30d0\u30fc\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u8ee2\u9001\u3057\u307e\u3059\u3002 \u305f\u3068\u3048\u3070\u3001<a href=\"http:\/\/example.com\/index.html%E4%BC%9A%E5%B0%86%E8%AF%B7%E6%B1%82%E8%BD%AC%E5%8F%91%E5%88%B0http:\/\/backend-server:8080\/index.html%EF%BC%8C%E5%B9%B6%E8%BF%94%E5%9B%9E%E5%90%8E%E7%AB%AF%E6%9C%8D%E5%8A%A1%E5%99%A8%E5%A4%84%E7%90%86%E5%90%8E%E7%9A%84%E7%BB%93%E6%9E%9C%E3%80%82\">\u30a2\u30af\u30bb\u30b9 http:\/\/example.com\/index.html \u306f\u8981\u6c42\u3092 http:\/\/backend-server:8080\/index.html \u306b\u8ee2\u9001\u3057\u3001\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u30fb\u30b5\u30fc\u30d0\u30fc\u306b\u3088\u3063\u3066\u51e6\u7406\u3055\u308c\u305f\u7d50\u679c\u3092\u8fd4\u3057\u307e\u3059\u3002<\/a><\/li>\n\n\n\n<li>\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u30ad\u30e3\u30c3\u30b7\u30f3\u30b0\u306e\u30b5\u30dd\u30fc\u30c8:Nginx\u306f\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u30ad\u30e3\u30c3\u30b7\u30f3\u30b0\u3082\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u304a\u308a\u3001\u983b\u7e41\u306b\u8981\u6c42\u3055\u308c\u308b\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u30e1\u30e2\u30ea\u306b\u30ad\u30e3\u30c3\u30b7\u30e5\u3057\u3066\u3001Web\u30b5\u30fc\u30d3\u30b9\u306e\u5fdc\u7b54\u6027\u3068\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u5411\u4e0a\u3055\u305b\u307e\u3059\u3002 \u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u6709\u52b9\u306b\u3059\u308b\u306b\u306f\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u8ffd\u52a0\u3057\u307e\u3059: \u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u30ad\u30e3\u30c3\u30b7\u30f3\u30b0\u3092\u6709\u52b9\u306b\u3057\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u6709\u52b9\u671f\u9593\u309210\u5206\u306b\u8a2d\u5b9a\u3059\u308bbashCopy\u30b3\u30fc\u30c9\u69cb\u6210\u3002 \u540c\u6642\u306b\u3001proxy_cache_bypass\u3001proxy_cache_revalidate\u3001proxy_cache_valid\u3001proxy_cache_use_stale\u306a\u3069\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u5236\u5fa1\u306e\u547d\u4ee4\u304c\u3044\u304f\u3064\u304b\u8ffd\u52a0\u3055\u308c\u307e\u3057\u305f\u3002<code>location \/ { proxy_pass http:\/\/backend-server:8080; proxy_cache_bypass $http_pragma; proxy_cache_revalidate on; proxy_cache_valid 200 10m; proxy_cache_use_stale error timeout invalid_header updating http_500 http_502 http_503 http_504; }<\/code><\/li>\n<\/ol>\n\n\n\n<p>\u4e00\u822c\u306b\u3001Nginx\u306e\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u6a5f\u80fd\u306f\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u8981\u6c42\u3092\u30d0\u30c3\u30af\u30a8\u30f3\u30c9Web\u30b5\u30fc\u30d0\u30fc\u306b\u7c21\u5358\u306b\u8ee2\u9001\u3057\u3066\u51e6\u7406\u3057\u3001\u9ad8\u6027\u80fd\u3067\u4fe1\u983c\u6027\u306e\u9ad8\u3044Web\u30b5\u30fc\u30d3\u30b9\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002 \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u8981\u6c42\u3092\u51e6\u7406\u3059\u308b\u305f\u3081\u306b\u8907\u6570\u306eWeb\u30b5\u30fc\u30d0\u30fc\u3092\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308bWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5834\u5408\u3001Nginx\u306e\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u6a5f\u80fd\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001Web\u30b5\u30fc\u30d3\u30b9\u306e\u53ef\u7528\u6027\u3001\u4fe1\u983c\u6027\u3001\u304a\u3088\u3073\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u52b9\u679c\u7684\u306b\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=2356\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"User\"\/><\/figure>\n\n\n\n<p>Nginx\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b7\u30f3\u30b0\u30c1\u30e3\u30c3\u30c8GPT\u306e\u57fa\u672c\u6a5f\u80fd\u3092\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>NGINX\u306e\u57fa\u672c\u7684\u306a\u6a5f\u80fd\u306e1\u3064\u306f\u8ca0\u8377\u5206\u6563\u3067\u3042\u308a\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u8981\u6c42\u3092\u8907\u6570\u306e\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u30b5\u30fc\u30d0\u30fc\u306b\u5206\u6563\u3057\u3066\u3001Web\u30b5\u30fc\u30d3\u30b9\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3068\u4fe1\u983c\u6027\u3092\u5411\u4e0a\u3055\u305b\u307e\u3059\u3002 \u8ca0\u8377\u5206\u6563\u306fNginx\u306e\u6700\u3082\u91cd\u8981\u306a\u6a5f\u80fd\u306e1\u3064\u3067\u3042\u308a\u3001Nginx\u304c\u8ca0\u8377\u5206\u6563\u3092\u63d0\u4f9b\u3059\u308b\u305f\u3081\u306e\u57fa\u672c\u7684\u306a\u30d7\u30ed\u30bb\u30b9\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Nginx\u30b5\u30fc\u30d0\u30fc\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u30fc\u306e\u69cb\u6210: Nginx\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u3067\u3001\u30b5\u30fc\u30d0\u30fc\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u30fc\u306e\u30ea\u30b9\u30cb\u30f3\u30b0\u30a2\u30c9\u30ec\u30b9\u3068\u30dd\u30fc\u30c8\u3001\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u30b5\u30fc\u30d0\u30fc\u306eIP\u30a2\u30c9\u30ec\u30b9\u3068\u30dd\u30fc\u30c8\u3092\u69cb\u6210\u3057\u307e\u3059\u3002 \u4f8b\u3048\u3070\u3001perlCopy \u30b3\u30fc\u30c9\u306f\u30012 \u3064\u306e\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u30fb\u30b5\u30fc\u30d0\u30fc\u306e\u30a2\u30c9\u30ec\u30b9\u3068\u30dd\u30fc\u30c8\u3092\u542b\u3080\u30a2\u30c3\u30d7\u30b9\u30c8\u30ea\u30fc\u30e0\u30fb\u30d6\u30ed\u30c3\u30af\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002 \u540c\u6642\u306b\u3001\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\u3067\u306f\u3001\u8981\u6c42\u3055\u308c\u305fURL\u30d1\u30b9\u304c\u30a2\u30c3\u30d7\u30b9\u30c8\u30ea\u30fc\u30e0\u30d6\u30ed\u30c3\u30af\u3067\u5b9a\u7fa9\u3055\u308c\u305f\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u30b5\u30fc\u30d0\u30fc\u306b\u8ca0\u8377\u5206\u6563\u3055\u308c\u307e\u3059\u3002 \u30db\u30b9\u30c8\u3001X-Real-IP\u3001X-Forwarded-For\u306a\u3069\u306e\u30d7\u30ed\u30ad\u30b7 \u30d8\u30c3\u30c0\u30fc\u60c5\u5831\u3082\u8ffd\u52a0\u3055\u308c\u3066\u3044\u307e\u3059\u3002<code>upstream backend { server backend-server1:8080; server backend-server2:8080; } server { listen 80; server_name example.com; location \/ { proxy_pass http:\/\/backend; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } }<\/code><\/li>\n\n\n\n<li>\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u30fb\u30b5\u30fc\u30d0\u30fc\u306e\u59cb\u52d5: Tomcat \u3084 Node.js \u30b5\u30fc\u30d0\u30fc\u306a\u3069\u306e\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u30fb\u30b5\u30fc\u30d0\u30fc\u3092\u8d77\u52d5\u3057\u3001\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u30fb\u30b5\u30fc\u30d0\u30fc1:8080 \u304a\u3088\u3073\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u30fb\u30b5\u30fc\u30d0\u30fc2:8080 \u306e\u30a2\u30c9\u30ec\u30b9\u3068\u30dd\u30fc\u30c8\u3092\u30ea\u30c3\u30b9\u30f3\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30b5\u30fc\u30d0\u30fc\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u30fc\u30b5\u30fc\u30d3\u30b9\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b:\u30d6\u30e9\u30a6\u30b6\u306b\u30b5\u30fc\u30d0\u30fc\u306eIP\u30a2\u30c9\u30ec\u30b9\u307e\u305f\u306f\u30c9\u30e1\u30a4\u30f3\u540d\u3092\u5165\u529b\u3059\u308b\u3068\u3001Nginx\u306f\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u30b5\u30fc\u30d0\u30fc\u306e1\u3064\u306b\u914d\u5e03\u3057\u3066\u51e6\u7406\u3057\u307e\u3059\u3002 \u305f\u3068\u3048\u3070\u3001\u30a2\u30af\u30bb\u30b9 http:\/\/example.com\/index.html \u306f\u3001\u51e6\u7406\u306e\u305f\u3081\u306b\u8981\u6c42\u3092\u30d0\u30c3\u30af\u30a8\u30f3\u30c9 \u30b5\u30fc\u30d0\u30fc 8080:2&nbsp;<a href=\"http:\/\/example.com\/index.html%E4%BC%9A%E5%B0%86%E8%AF%B7%E6%B1%82%E5%88%86%E5%8F%91%E5%88%B0backend-server1:8080%E6%88%96backend-server2:8080%E4%B8%AD%E7%9A%84%E5%85%B6%E4%B8%AD%E4%B8%80%E4%B8%AA%E8%BF%9B%E8%A1%8C%E5%A4%84%E7%90%86%EF%BC%8C%E5%B9%B6%E8%BF%94%E5%9B%9E%E5%A4%84%E7%90%86%E7%BB%93%E6%9E%9C%E3%80%82\">\u307e\u305f\u306f\u30d0\u30c3\u30af\u30a8\u30f3\u30c9 \u30b5\u30fc\u30d0\u30fc 8080:&lt;&gt; \u306b\u914d\u5e03\u3057\u3001\u51e6\u7406\u7d50\u679c\u3092\u8fd4\u3057\u307e\u3059\u3002<\/a><\/li>\n\n\n\n<li>\u8ca0\u8377\u5206\u6563\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306e\u30b5\u30dd\u30fc\u30c8:Nginx\u306f\u3001\u30e9\u30a6\u30f3\u30c9\u30ed\u30d3\u30f3\u3001\u52a0\u91cd\u30e9\u30a6\u30f3\u30c9\u30ed\u30d3\u30f3\u3001IP\u30cf\u30c3\u30b7\u30e5\u306a\u3069\u306e\u8907\u6570\u306e\u8ca0\u8377\u5206\u6563\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3082\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002 \u30ed\u30fc\u30c9\u30fb\u30d0\u30e9\u30f3\u30b7\u30f3\u30b0\u30fb\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3092\u69cb\u6210\u3059\u308b\u306b\u306f\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002 cssCopy \u30b3\u30fc\u30c9 \u3053\u306e\u69cb\u6210\u3067\u306f\u3001\u30ed\u30fc\u30c9\u30fb\u30d0\u30e9\u30f3\u30b7\u30f3\u30b0\u306b IP \u30cf\u30c3\u30b7\u30e5\u30fb\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u3064\u307e\u308a\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e IP \u30a2\u30c9\u30ec\u30b9\u304c\u30cf\u30c3\u30b7\u30e5\u3055\u308c\u3001\u51e6\u7406\u306e\u305f\u3081\u306b\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u30fb\u30b5\u30fc\u30d0\u30fc\u306e 1 \u3064\u306b\u914d\u5e03\u3055\u308c\u307e\u3059\u3002<code>upstream backend { ip_hash; server backend-server1:8080; server backend-server2:8080; }<\/code><\/li>\n<\/ol>\n\n\n\n<p>\u4e00\u822c\u306b\u3001Nginx\u306e\u8ca0\u8377\u5206\u6563\u6a5f\u80fd\u306f\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u8981\u6c42\u3092\u8907\u6570\u306e\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u30b5\u30fc\u30d0\u30fc\u306b\u7c21\u5358\u306b\u5206\u6563\u3057\u3066\u51e6\u7406\u3057\u3001\u9ad8\u6027\u80fd\u3001\u9ad8\u53ef\u7528\u6027\u3001\u4fe1\u983c\u6027\u306e\u9ad8\u3044Web\u30b5\u30fc\u30d3\u30b9\u3092\u63d0\u4f9b\u3067\u304d\u307e\u3059\u3002 \u591a\u6570\u306e\u540c\u6642\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u51e6\u7406\u3059\u308b\u5fc5\u8981\u304c\u3042\u308bWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5834\u5408\u3001Nginx\u306e\u8ca0\u8377\u5206\u6563\u6a5f\u80fd\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001Web\u30b5\u30fc\u30d3\u30b9\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3068\u4fe1\u983c\u6027\u3092\u52b9\u679c\u7684\u306b\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=2356\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"User\"\/><\/figure>\n\n\n\n<p>Nginx URL\u66f8\u304d\u63db\u3048\u30c1\u30e3\u30c3\u30c8GPT\u306e\u57fa\u672c\u7684\u306a\u6a5f\u80fd\u3092\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>Nginx\u306e\u57fa\u672c\u7684\u306a\u6a5f\u80fd\u306e1\u3064\u306f\u3001Web\u30b5\u30fc\u30d3\u30b9\u306e\u53ef\u7528\u6027\u3068\u4fe1\u983c\u6027\u3092\u5411\u4e0a\u3055\u305b\u308b\u305f\u3081\u306b\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304b\u3089\u8981\u6c42\u3055\u308c\u305fURL\u3092\u6307\u5b9a\u3055\u308c\u305fURL\u306b\u66f8\u304d\u63db\u3048\u308bURL\u66f8\u304d\u63db\u3048\u3067\u3059\u3002 URL\u66f8\u304d\u63db\u3048\u306fNginx\u306e\u6700\u3082\u91cd\u8981\u306a\u6a5f\u80fd\u306e1\u3064\u3067\u3042\u308a\u3001Nginx\u304cURL\u66f8\u304d\u63db\u3048\u3092\u63d0\u4f9b\u3059\u308b\u57fa\u672c\u7684\u306a\u30d7\u30ed\u30bb\u30b9\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Nginx URL \u66f8\u304d\u63db\u3048\u30eb\u30fc\u30eb\u3092\u69cb\u6210\u3059\u308b: Nginx \u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u3067\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304b\u3089\u8981\u6c42\u3055\u308c\u305f URL \u3092\u6307\u5b9a\u3055\u308c\u305f URL \u306b\u5909\u63db\u3059\u308b URL \u66f8\u304d\u63db\u3048\u30eb\u30fc\u30eb\u3092\u69cb\u6210\u3057\u307e\u3059\u3002 \u305f\u3068\u3048\u3070\u3001bashCopy \u30b3\u30fc\u30c9\u306f\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u8981\u6c42\u306e URL \u3092&nbsp;<a href=\"http:\/\/example.com\/blog\/xxxxx%E8%BD%AC%E6%8D%A2%E4%B8%BAhttp:\/\/example.com\/xxxxx%EF%BC%8C%E5%B9%B6%E5%B0%86%E8%AF%B7%E6%B1%82%E8%BD%AC%E5%8F%91%E5%88%B0blog-server:8080%E8%BF%9B%E8%A1%8C%E5%A4%84%E7%90%86%E3%80%82%E5%90%8C%E6%97%B6%EF%BC%8C%E8%BF%98%E6%B7%BB%E5%8A%A0%E4%BA%86%E4%B8%80%E4%BA%9B%E4%BB%A3%E7%90%86%E5%A4%B4%E4%BF%A1%E6%81%AF%EF%BC%8C%E4%BE%8B%E5%A6%82Host%E3%80%81X-Real-IP%E5%92%8CX-Forwarded-For%E3%80%82\">http:\/\/example.com\/blog\/xxxxx \u304b\u3089 http:\/\/example.com\/xxxxx \u306b\u5909\u63db\u3057\u3001\u51e6\u7406\u306e\u305f\u3081\u306b\u8981\u6c42\u3092 blog-server:8080 \u306b\u8ee2\u9001\u3057\u307e\u3059\u3002 \u540c\u6642\u306b\u3001\u30db\u30b9\u30c8\u3001X-Real-IP\u3001X-Forwarded-For\u306a\u3069\u306e\u30d7\u30ed\u30ad\u30b7\u30d8\u30c3\u30c0\u30fc\u60c5\u5831\u304c\u8ffd\u52a0\u3055\u308c\u307e\u3057\u305f\u3002&nbsp;<\/a><code>server { listen 80; server_name example.com; location \/blog { rewrite ^\/blog\/(.*)$ \/$1 break; proxy_pass http:\/\/blog-server:8080; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } }<\/code><\/li>\n\n\n\n<li>\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u30b5\u30fc\u30d0\u30fc\u3092\u8d77\u52d5\u3057\u307e\u3059:WordPress\u3084Ghost\u30d6\u30ed\u30b0\u30a8\u30f3\u30b8\u30f3\u306a\u3069\u306e\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u30b5\u30fc\u30d0\u30fc\u3092\u8d77\u52d5\u3057\u3001\u30d6\u30ed\u30b0\u30b5\u30fc\u30d0\u30fc:8080\u30a2\u30c9\u30ec\u30b9\u3068\u30dd\u30fc\u30c8\u3092\u30ea\u30c3\u30b9\u30f3\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u66f8\u304d\u63db\u3048\u3089\u308c\u305fURL\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b:\u30d6\u30e9\u30a6\u30b6\u306b\u30b5\u30fc\u30d0\u30fc\u306eIP\u30a2\u30c9\u30ec\u30b9\u307e\u305f\u306f\u30c9\u30e1\u30a4\u30f3\u540d\u3092\u5165\u529b\u3059\u308b\u3068\u3001Nginx\u306f\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u66f8\u304d\u63db\u3048\u3001\u51e6\u7406\u306e\u305f\u3081\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u30b5\u30fc\u30d0\u30fc\u306b\u8ee2\u9001\u3057\u307e\u3059\u3002 \u305f\u3068\u3048\u3070\u3001<a href=\"http:\/\/example.com\/blog\/post-title%E4%BC%9A%E5%B0%86%E8%AF%B7%E6%B1%82%E8%BD%AC%E6%8D%A2%E4%B8%BAhttp:\/\/example.com\/post-title%EF%BC%8C%E5%B9%B6%E8%BD%AC%E5%8F%91%E5%88%B0blog-server:8080%E4%B8%AD%E8%BF%9B%E8%A1%8C%E5%A4%84%E7%90%86%E3%80%82\">\u30a2\u30af\u30bb\u30b9 http:\/\/example.com\/blog\/post-title \u306f\u30ea\u30af\u30a8\u30b9\u30c8\u3092 http:\/\/example.com\/post-title \u306b\u5909\u63db\u3057\u3001\u51e6\u7406\u306e\u305f\u3081\u306bblog-server:8080\u306b\u8ee2\u9001\u3057\u307e\u3059\u3002<\/a><\/li>\n\n\n\n<li>\u6b63\u898f\u8868\u73fe\u306e\u30b5\u30dd\u30fc\u30c8:Nginx\u306eURL\u66f8\u304d\u63db\u3048\u6a5f\u80fd\u306f\u3001\u3055\u307e\u3056\u307e\u306aURL\u4e00\u81f4\u30eb\u30fc\u30eb\u306b\u5f93\u3063\u3066\u66f8\u304d\u63db\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u6b63\u898f\u8868\u73fe\u3082\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002 \u305f\u3068\u3048\u3070\u3001\u69cb\u6210 rubyCopy \u30b3\u30fc\u30c9\u306f\u3001\/blog\/post\/xxxxx\/yyyyy \u5f62\u5f0f\u306e URL \u3092\u7167\u5408\u3057\u3001\/blog\/post.php?id=xxxxx&amp;title=yyyyyy \u306b\u5909\u63db\u3057\u3001\u66f8\u304d\u63db\u3048\u3092\u505c\u6b62\u3057\u307e\u3059\u3002<code>location ~ ^\/blog\/post\/([0-9]+)\/(.*)$ { rewrite ^\/blog\/post\/([0-9]+)\/(.*)$ \/blog\/post.php?id=$1&amp;title=$2 last; }<\/code><\/li>\n<\/ol>\n\n\n\n<p>\u5168\u4f53\u3068\u3057\u3066\u3001Nginx\u306eURL\u66f8\u304d\u63db\u3048\u6a5f\u80fd\u306f\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304b\u3089\u8981\u6c42\u3055\u308c\u305fURL\u3092\u6307\u5b9a\u3055\u308c\u305fURL\u306b\u7c21\u5358\u306b\u5909\u63db\u3067\u304d\u308b\u305f\u3081\u3001Web\u30b5\u30fc\u30d3\u30b9\u306e\u53ef\u7528\u6027\u3068\u4fe1\u983c\u6027\u304c\u5411\u4e0a\u3057\u307e\u3059\u3002 URL\u66f8\u304d\u63db\u3048\u3092\u5fc5\u8981\u3068\u3059\u308bWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5834\u5408\u3001Nginx\u306eURL\u66f8\u304d\u63db\u3048\u6a5f\u80fd\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001Web\u30b5\u30fc\u30d3\u30b9\u306e\u4fe1\u983c\u6027\u3068\u4fdd\u5b88\u6027\u3092\u52b9\u679c\u7684\u306b\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=2356\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"User\"\/><\/figure>\n\n\n\n<p>\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044 Nginx\u69cb\u6210\u30a6\u30a7\u30d6\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u30a6\u30a7\u30d6\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u3068\u306f\u4f55\u3067\u3059\u304b? \u30c1\u30e3\u30c3\u30c8GPT<\/p>\n\n\n\n<p>Web \u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u306f\u3001\u7269\u7406\u30db\u30b9\u30c8\u4e0a\u306e\u5358\u4e00\u306e\u30b5\u30fc\u30d0\u30fc \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4ecb\u3057\u3066\u8907\u6570\u306e Web \u30b5\u30a4\u30c8\u307e\u305f\u306f\u30c9\u30e1\u30a4\u30f3\u540d\u306b\u30b5\u30fc\u30d3\u30b9\u3092\u63d0\u4f9b\u3059\u308b Web \u30b5\u30fc\u30d0\u30fc\u69cb\u6210\u3067\u3059\u3002 Web\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u8907\u6570\u306eWeb\u30b5\u30a4\u30c8\u304c\u540c\u3058\u30b5\u30fc\u30d0\u30fc\u3092\u5171\u6709\u3057\u3001\u30b5\u30fc\u30d0\u30fc\u30ea\u30bd\u30fc\u30b9\u306e\u4f7f\u7528\u7387\u3092\u5411\u4e0a\u3055\u305b\u3001Web\u30de\u30b9\u30bf\u30fc\u306b\u3088\u308b\u30b5\u30fc\u30d0\u30fc\u306e\u7ba1\u7406\u3068\u4fdd\u5b88\u3092\u5bb9\u6613\u306b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>Nginx\u3067\u306f\u3001\u4eee\u60f3\u30db\u30b9\u30c8\u306e\u69cb\u6210\u306f\u975e\u5e38\u306b\u7c21\u5358\u3067\u3001Nginx\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306b\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u3067\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002 \u4ee5\u4e0b\u306f\u3001Nginx\u30a6\u30a7\u30d6\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u3092\u69cb\u6210\u3059\u308b\u305f\u3081\u306e\u57fa\u672c\u7684\u306a\u30d7\u30ed\u30bb\u30b9\u3067\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Nginx\u4eee\u60f3\u30db\u30b9\u30c8\u306e\u69cb\u6210:Nginx\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u3067\u3001\u4eee\u60f3\u30db\u30b9\u30c8\u306e\u30ea\u30b9\u30cb\u30f3\u30b0\u30a2\u30c9\u30ec\u30b9\u3068\u30dd\u30fc\u30c8\u3001\u4eee\u60f3\u30db\u30b9\u30c8\u306e\u30c9\u30e1\u30a4\u30f3\u540d\u3001\u304a\u3088\u3073\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u69cb\u6210\u3057\u307e\u3059\u3002 \u305f\u3068\u3048\u3070\u3001perlCopy \u30b3\u30fc\u30c9\u306f\u3001\u30dd\u30fc\u30c8 80\u3001\u30c9\u30e1\u30a4\u30f3\u540d example.com \u3067 HTTP \u8981\u6c42\u3092\u69cb\u6210\u3057\u3001\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092 \/var\/www\/example.com \u306b\u8a2d\u5b9a\u3057\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u30d5\u30a1\u30a4\u30eb\u3068\u3057\u3066 index.html \u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<code>server { listen 80; server_name example.com; root \/var\/www\/example.com; index index.html; }<\/code><\/li>\n\n\n\n<li>DNS \u89e3\u6c7a\u3092\u69cb\u6210\u3059\u308b: DNS \u30b5\u30fc\u30d0\u30fc\u3067\u3001example.com \u89e3\u6c7a\u30ec\u30b3\u30fc\u30c9\u3092 Nginx \u30b5\u30fc\u30d0\u30fc\u306e IP \u30a2\u30c9\u30ec\u30b9\u306b\u30dd\u30a4\u30f3\u30c8\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>Web\u30db\u30b9\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b:\u30d6\u30e9\u30a6\u30b6\u306b example.com \u30c9\u30e1\u30a4\u30f3\u540d\u3092\u5165\u529b\u3059\u308b\u3068\u3001Nginx\u306f\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u69cb\u6210\u3055\u308c\u305f\u4eee\u60f3\u30db\u30b9\u30c8\u306b\u8ee2\u9001\u3057\u3001\u4eee\u60f3\u30db\u30b9\u30c8\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u8fd4\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u8907\u6570\u306e\u30a6\u30a7\u30d6\u30db\u30b9\u30c8\u3092\u8a2d\u5b9a\u3059\u308b: \u8907\u6570\u306e\u30a6\u30a7\u30d6\u30db\u30b9\u30c8\u3092\u3001\u305d\u308c\u305e\u308c\u7570\u306a\u308b\u30c9\u30e1\u30a4\u30f3\u540d\u3068\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u3002 \u4f8b\u3048\u3070\u3001perlCopy \u30b3\u30fc\u30c9\u69cb\u6210\u3067\u306f\u3001\u7570\u306a\u308b\u30eb\u30fc\u30c8\u30fb\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30fc\u3068\u30c7\u30d5\u30a9\u30eb\u30c8\u30fb\u30d5\u30a1\u30a4\u30eb\u306b\u5bfe\u5fdc\u3059\u308b 2 \u3064\u306e\u4eee\u60f3\u30db\u30b9\u30c8\u304c\u69cb\u6210\u3055\u308c\u30011 \u3064\u306f example.com\u3001\u3082\u3046 1 \u3064\u306f blog.example.com \u3067\u3059\u3002<code>server { listen 80; server_name example.com; root \/var\/www\/example.com; index index.html; } server { listen 80; server_name blog.example.com; root \/var\/www\/blog.example.com; index index.php; }<\/code><\/li>\n<\/ol>\n\n\n\n<p>\u4e00\u822c\u306b\u3001Nginx\u306eWeb\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u6a5f\u80fd\u306f\u3001\u8907\u6570\u306eWeb\u30b5\u30a4\u30c8\u307e\u305f\u306f\u30c9\u30e1\u30a4\u30f3\u540d\u3092\u7c21\u5358\u306b\u63d0\u4f9b\u3067\u304d\u308b\u305f\u3081\u3001\u30b5\u30fc\u30d0\u30fc\u30ea\u30bd\u30fc\u30b9\u306e\u4f7f\u7528\u7387\u304c\u5411\u4e0a\u3057\u307e\u3059\u3002 \u8907\u6570\u306eWeb\u30b5\u30a4\u30c8\u307e\u305f\u306f\u30c9\u30e1\u30a4\u30f3\u30cd\u30fc\u30e0\u30b5\u30fc\u30d3\u30b9\u3092\u63d0\u4f9b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308bWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5834\u5408\u3001Nginx\u306eWeb\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u6a5f\u80fd\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001Web\u30b5\u30fc\u30d3\u30b9\u306e\u53ef\u7528\u6027\u3001\u4fdd\u5b88\u6027\u3001\u304a\u3088\u3073\u4fe1\u983c\u6027\u3092\u52b9\u679c\u7684\u306b\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=2356\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"User\"\/><\/figure>\n\n\n\n<p>Nginx\u304c\u30c9\u30e1\u30a4\u30f3\u540d\u306b\u57fa\u3065\u3044\u3066\u30a6\u30a7\u30d6\u30db\u30b9\u30c6\u30a3\u30f3\u30b0ChatGPT\u3092\u69cb\u6210\u3059\u308b\u65b9\u6cd5\u3092\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>\u30c9\u30e1\u30a4\u30f3\u540d\u30d9\u30fc\u30b9\u306eWeb\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u306f\u3001\u540c\u3058Web\u30b5\u30fc\u30d0\u30fc\u304c\u8907\u6570\u306e\u7570\u306a\u308b\u30c9\u30e1\u30a4\u30f3\u540d\u3092\u63d0\u4f9b\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308bWeb\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u3092\u69cb\u6210\u3059\u308b\u4e00\u822c\u7684\u306a\u65b9\u6cd5\u3067\u3059\u3002 Nginx\u3067\u306f\u3001\u30c9\u30e1\u30a4\u30f3\u540d\u30d9\u30fc\u30b9\u306eWeb\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u3092\u69cb\u6210\u3059\u308b\u306e\u306f\u975e\u5e38\u306b\u7c21\u5358\u3067\u3059\u304c\u3001\u30c9\u30e1\u30a4\u30f3\u540d\u306b\u57fa\u3065\u3044\u3066NginxWeb\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u3092\u69cb\u6210\u3059\u308b\u57fa\u672c\u7684\u306a\u30d7\u30ed\u30bb\u30b9\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>DNS\u89e3\u6c7a\u3092\u69cb\u6210\u3059\u308b:DNS\u30b5\u30fc\u30d0\u30fc\u3067\u306f\u3001\u4eee\u60f3\u30db\u30b9\u30c8\u306e\u30c9\u30e1\u30a4\u30f3\u540d\u3092\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u89e3\u6c7a\u30ec\u30b3\u30fc\u30c9\u306f\u3001Nginx\u30b5\u30fc\u30d0\u30fc\u306eIP\u30a2\u30c9\u30ec\u30b9\u3092\u6307\u3057\u307e\u3059\u3002 \u305f\u3068\u3048\u3070\u3001example.com \u3068 blog.example.com \u306e\u4e21\u65b9\u306e\u89e3\u6c7a\u30ec\u30b3\u30fc\u30c9\u306f\u3001Nginx\u30b5\u30fc\u30d0\u30fc\u306eIP\u30a2\u30c9\u30ec\u30b9\u3092\u6307\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>Nginx\u4eee\u60f3\u30db\u30b9\u30c8\u306e\u69cb\u6210:Nginx\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u3067\u3001\u30c9\u30e1\u30a4\u30f3\u540d\u30d9\u30fc\u30b9\u306e\u4eee\u60f3\u30db\u30b9\u30c8\u306e\u30ea\u30b9\u30cb\u30f3\u30b0\u30a2\u30c9\u30ec\u30b9\u3068\u30dd\u30fc\u30c8\u3001\u4eee\u60f3\u30db\u30b9\u30c8\u306e\u30c9\u30e1\u30a4\u30f3\u540d\u3001\u304a\u3088\u3073\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u69cb\u6210\u3057\u307e\u3059\u3002 \u4f8b\u3048\u3070\u3001perlCopy \u30b3\u30fc\u30c9\u69cb\u6210\u3067\u306f\u3001\u7570\u306a\u308b\u30eb\u30fc\u30c8\u30fb\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30fc\u3068\u30c7\u30d5\u30a9\u30eb\u30c8\u30fb\u30d5\u30a1\u30a4\u30eb\u306b\u5bfe\u5fdc\u3059\u308b 2 \u3064\u306e\u4eee\u60f3\u30db\u30b9\u30c8\u304c\u69cb\u6210\u3055\u308c\u30011 \u3064\u306f example.com\u3001\u3082\u3046 1 \u3064\u306f blog.example.com \u3067\u3059\u3002 \u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\u3067\u3001server_name\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3092\u4f7f\u7528\u3057\u3066\u4eee\u60f3\u30db\u30b9\u30c8\u306e\u30c9\u30e1\u30a4\u30f3\u540d\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<code>server { listen 80; server_name example.com; root \/var\/www\/example.com; index index.html; } server { listen 80; server_name blog.example.com; root \/var\/www\/blog.example.com; index index.php; }<\/code><\/li>\n\n\n\n<li>Nginx\u30b5\u30fc\u30d3\u30b9\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059:Nginx\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u3067\u5909\u66f4\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u65b0\u3057\u3044\u69cb\u6210\u3092\u6709\u52b9\u306b\u3059\u308b\u305f\u3081\u306b\u3001sudo systemctl restart nginx\u307e\u305f\u306fnginx -s reload\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066Nginx\u30b5\u30fc\u30d3\u30b9\u3092\u518d\u8d77\u52d5\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n\n\n\n<li>Web\u30db\u30b9\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b:\u30d6\u30e9\u30a6\u30b6\u306b example.com \u307e\u305f\u306f blog.example.com \u30c9\u30e1\u30a4\u30f3\u540d\u3092\u5165\u529b\u3059\u308b\u3068\u3001Nginx\u306f\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u5bfe\u5fdc\u3059\u308b\u4eee\u60f3\u30db\u30b9\u30c8\u306b\u8ee2\u9001\u3057\u3001\u4eee\u60f3\u30db\u30b9\u30c8\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u8fd4\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<p>\u5168\u4f53\u3068\u3057\u3066\u3001\u30c9\u30e1\u30a4\u30f3\u540d\u306b\u57fa\u3065\u3044\u3066NginxWeb\u30db\u30b9\u30c8\u3092\u69cb\u6210\u3059\u308bserver_name\u3001Nginx\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3067\u5404Web\u30db\u30b9\u30c8\u306e\u547d\u4ee4\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u975e\u5e38\u306b\u7c21\u5358\u3067\u3059\u3002 \u30c9\u30e1\u30a4\u30f3\u540d\u30d9\u30fc\u30b9\u306eWeb\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u540c\u3058Web\u30b5\u30fc\u30d0\u30fc\u304c\u8907\u6570\u306e\u7570\u306a\u308b\u30c9\u30e1\u30a4\u30f3\u540d\u306b\u30b5\u30fc\u30d3\u30b9\u3092\u63d0\u4f9b\u3057\u3001\u30b5\u30fc\u30d0\u30fc\u30ea\u30bd\u30fc\u30b9\u306e\u4f7f\u7528\u7387\u3092\u5411\u4e0a\u3055\u305b\u3001Web\u30de\u30b9\u30bf\u30fc\u306b\u3088\u308b\u30b5\u30fc\u30d0\u30fc\u306e\u7ba1\u7406\u3068\u4fdd\u5b88\u3092\u5bb9\u6613\u306b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=2356\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"User\"\/><\/figure>\n\n\n\n<p>Nginx\u304cIP\u30a2\u30c9\u30ec\u30b9ChatGPT\u306b\u57fa\u3065\u3044\u3066\u4eee\u60f3\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u3092\u69cb\u6210\u3059\u308b\u65b9\u6cd5\u3092\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>IP\u30a2\u30c9\u30ec\u30b9\u30d9\u30fc\u30b9\u306eWeb\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u306f\u3001\u540c\u3058Web\u30b5\u30fc\u30d0\u30fc\u304c\u8907\u6570\u306e\u7570\u306a\u308bIP\u30a2\u30c9\u30ec\u30b9\u3092\u63d0\u4f9b\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u4eee\u60f3\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u3092\u69cb\u6210\u3059\u308b\u4e00\u822c\u7684\u306a\u65b9\u6cd5\u3067\u3059\u3002 Nginx\u3067\u306f\u3001IP\u30a2\u30c9\u30ec\u30b9\u30d9\u30fc\u30b9\u306eWeb\u30db\u30b9\u30c8\u3092\u69cb\u6210\u3059\u308b\u306e\u306f\u975e\u5e38\u306b\u7c21\u5358\u3067\u3059\u304c\u3001IP\u30a2\u30c9\u30ec\u30b9\u30d9\u30fc\u30b9\u306eNginxWeb\u30db\u30b9\u30c8\u3092\u69cb\u6210\u3059\u308b\u57fa\u672c\u7684\u306a\u30d7\u30ed\u30bb\u30b9\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Nginx\u4eee\u60f3\u30db\u30b9\u30c8\u306e\u69cb\u6210:Nginx\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u3067\u3001IP\u30a2\u30c9\u30ec\u30b9\u3001\u4eee\u60f3\u30db\u30b9\u30c8\u306eIP\u30a2\u30c9\u30ec\u30b9\u3001\u304a\u3088\u3073\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u57fa\u3065\u3044\u3066\u3001\u4eee\u60f3\u30db\u30b9\u30c8\u306e\u30ea\u30b9\u30cb\u30f3\u30b0\u30a2\u30c9\u30ec\u30b9\u3068\u30dd\u30fc\u30c8\u3092\u69cb\u6210\u3057\u307e\u3059\u3002 \u4f8b\u3048\u3070\u3001cssCopy \u30b3\u30fc\u30c9\u69cb\u6210\u3067\u306f\u3001IP \u30a2\u30c9\u30ec\u30b9\u306b\u57fa\u3065\u3044\u3066\u4eee\u60f3\u30db\u30b9\u30c8\u3092\u69cb\u6210\u3057\u3001\u5bfe\u5fdc\u3059\u308b IP \u30a2\u30c9\u30ec\u30b9\u306f 192.168.0.10 \u3067\u3001\u5bfe\u5fdc\u3059\u308b\u30eb\u30fc\u30c8\u30fb\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30fc\u306f \/var\/www\/example.com \u3067\u3059\u3002 \u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\u3067\u3001server_name\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3092\u4f7f\u7528\u3057\u3066\u4eee\u60f3\u30db\u30b9\u30c8\u306eIP\u30a2\u30c9\u30ec\u30b9\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<code>server { listen 80; listen [::]:80; server_name 192.168.0.10; root \/var\/www\/example.com; index index.html; }<\/code><\/li>\n\n\n\n<li>DNS \u89e3\u6c7a\u306e\u69cb\u6210: \u30c9\u30e1\u30a4\u30f3\u540d\u3092\u4f7f\u7528\u3057\u3066 IP \u30a2\u30c9\u30ec\u30b9\u306b\u57fa\u3065\u3044\u3066\u4eee\u60f3\u30db\u30b9\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u5834\u5408\u306f\u3001DNS \u30b5\u30fc\u30d0\u30fc\u5185\u306e\u5bfe\u5fdc\u3059\u308b\u30c9\u30e1\u30a4\u30f3\u540d\u306e\u89e3\u6c7a\u30ec\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3057\u3001\u89e3\u6c7a\u30ec\u30b3\u30fc\u30c9\u304c\u4eee\u60f3\u30db\u30b9\u30c8\u306e IP \u30a2\u30c9\u30ec\u30b9\u3092\u6307\u3059\u3088\u3046\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n\n\n\n<li>Nginx\u30b5\u30fc\u30d3\u30b9\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059:Nginx\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u3067\u5909\u66f4\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u65b0\u3057\u3044\u69cb\u6210\u3092\u6709\u52b9\u306b\u3059\u308b\u305f\u3081\u306b\u3001sudo systemctl restart nginx\u307e\u305f\u306fnginx -s reload\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066Nginx\u30b5\u30fc\u30d3\u30b9\u3092\u518d\u8d77\u52d5\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u4eee\u60f3\u30db\u30b9\u30c8\u3078\u306e\u30a2\u30af\u30bb\u30b9:\u30d6\u30e9\u30a6\u30b6\u306b\u4eee\u60f3\u30db\u30b9\u30c8\u306eIP\u30a2\u30c9\u30ec\u30b9\u307e\u305f\u306f\u5bfe\u5fdc\u3059\u308b\u30c9\u30e1\u30a4\u30f3\u540d\u3092\u5165\u529b\u3059\u308b\u3068\u3001Nginx\u306f\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u5bfe\u5fdc\u3059\u308b\u4eee\u60f3\u30db\u30b9\u30c8\u306b\u8ee2\u9001\u3057\u3001\u4eee\u60f3\u30db\u30b9\u30c8\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u8fd4\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<p>\u5168\u4f53\u3068\u3057\u3066\u3001Nginx\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3067\u5404\u4eee\u60f3\u30db\u30b9\u30c8\u306eserver_name\u547d\u4ee4\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001IP\u30a2\u30c9\u30ec\u30b9\u306b\u57fa\u3065\u3044\u3066Nginx\u4eee\u60f3\u30db\u30b9\u30c8\u3092\u69cb\u6210\u3059\u308b\u306e\u306f\u975e\u5e38\u306b\u7c21\u5358\u3067\u3059\u3002 IP\u30a2\u30c9\u30ec\u30b9\u30d9\u30fc\u30b9\u306eWeb\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u540c\u3058Web\u30b5\u30fc\u30d0\u30fc\u304c\u8907\u6570\u306e\u7570\u306a\u308bIP\u30a2\u30c9\u30ec\u30b9\u306b\u30b5\u30fc\u30d3\u30b9\u3092\u63d0\u4f9b\u3067\u304d\u3001\u30b5\u30fc\u30d0\u30fc\u30ea\u30bd\u30fc\u30b9\u306e\u4f7f\u7528\u7387\u304c\u5411\u4e0a\u3057\u3001Web\u30de\u30b9\u30bf\u30fc\u306b\u3088\u308b\u30b5\u30fc\u30d0\u30fc\u306e\u7ba1\u7406\u3068\u4fdd\u5b88\u3082\u5bb9\u6613\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=2356\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"User\"\/><\/figure>\n\n\n\n<p>HTTPS\u3068SSL\u3068\u306f\u4f55\u304b\u3001\u8a73\u3057\u304f\u6559\u3048\u3066\u304f\u3060\u3055\u3044\u3002 \u30c1\u30e3\u30c3\u30c8GPT<\/p>\n\n\n\n<p>HTTPS\u3068SSL\u306f\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306b\u304a\u3051\u308b2\u3064\u306e\u975e\u5e38\u306b\u91cd\u8981\u306a\u6982\u5ff5\u3067\u3042\u308a\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u9001\u4fe1\u3055\u308c\u308b\u30c7\u30fc\u30bf\u3068\u60c5\u5831\u3092\u4fdd\u8b77\u3059\u308b\u305f\u3081\u306b\u3088\u304f\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>HTTPS\u306f\u3001\u30cf\u30a4\u30d1\u30fc\u30c6\u30ad\u30b9\u30c8\u8ee2\u9001\u30d7\u30ed\u30c8\u30b3\u30eb\u30bb\u30ad\u30e5\u30a2\u306e\u7565\u3067\u3001HTTP\u30d7\u30ed\u30c8\u30b3\u30eb\u306e\u5b89\u5168\u306a\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u3059\u3002 HTTPS\u306f\u3001\u901a\u4fe1\u5185\u5bb9\u3092\u6697\u53f7\u5316\u3059\u308b\u3053\u3068\u3067\u9001\u4fe1\u4e2d\u306e\u30c7\u30fc\u30bf\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u4fdd\u8b77\u3057\u3001\u30c7\u30fc\u30bf\u306e\u6539\u3056\u3093\u3084\u76d7\u96e3\u3092\u9632\u6b62\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>SSL(\u30bb\u30ad\u30e5\u30a2\u30bd\u30b1\u30c3\u30c8\u30ec\u30a4\u30e4\u30fc)\u306f\u3001\u6697\u53f7\u5316\u3001\u8a8d\u8a3c\u3001\u6574\u5408\u6027\u4fdd\u8b77\u306a\u3069\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u6a5f\u80fd\u3092\u63d0\u4f9b\u3059\u308b\u30bb\u30ad\u30e5\u30a2\u30bd\u30b1\u30c3\u30c8\u30d7\u30ed\u30c8\u30b3\u30eb\u3067\u3059\u3002 SSL \u306f\u3001\u30c7\u30b8\u30bf\u30eb\u8a3c\u660e\u66f8\u3092\u4f7f\u7528\u3057\u3066 Web \u30b5\u30fc\u30d0\u30fc\u306e ID \u3092\u691c\u8a3c\u3057\u3001\u516c\u958b\u30ad\u30fc\u6697\u53f7\u5316\u3092\u4f7f\u7528\u3057\u3066\u901a\u4fe1\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u6697\u53f7\u5316\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u3001\u8ee2\u9001\u4e2d\u306e\u30c7\u30fc\u30bf\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u4fdd\u8b77\u3059\u308b\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3 \u30d7\u30ed\u30c8\u30b3\u30eb\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304c HTTPS \u8981\u6c42\u3092\u958b\u59cb\u3059\u308b\u3068\u3001\u30b5\u30fc\u30d0\u30fc\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u306e\u516c\u958b\u30ad\u30fc\u3068\u95a2\u9023\u60c5\u5831\u3092\u542b\u3080\u30c7\u30b8\u30bf\u30eb\u8a3c\u660e\u66f8\u3092\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306b\u9001\u4fe1\u3057\u307e\u3059\u3002 \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306f\u3001\u30c7\u30b8\u30bf\u30eb\u8a3c\u660e\u66f8\u3092\u53d7\u4fe1\u3059\u308b\u3068\u3001\u30b5\u30fc\u30d0\u30fc\u306e\u516c\u958b\u30ad\u30fc\u3092\u4f7f\u7528\u3057\u3066\u9001\u4fe1\u30c7\u30fc\u30bf\u3092\u6697\u53f7\u5316\u3057\u3001\u30c7\u30fc\u30bf\u8ee2\u9001\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u78ba\u4fdd\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>HTTPS\u3068SSL\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u540d\u3084\u30d1\u30b9\u30ef\u30fc\u30c9\u306a\u3069\u306e\u6a5f\u5bc6\u60c5\u5831\u306e\u9001\u4fe1\u3092\u4fdd\u8b77\u3059\u308b\u305f\u3081\u306b\u3088\u304f\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002 \u540c\u6642\u306b\u3001HTTPS\u3068SSL\u306f\u3001\u30cf\u30c3\u30ab\u30fc\u304c\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30b9\u30cb\u30c3\u30d5\u30a3\u30f3\u30b0\u653b\u6483\u306b\u3088\u3063\u3066\u30c7\u30fc\u30bf\u3092\u76d7\u3080\u306e\u3092\u9632\u3050\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002 \u8fd1\u5e74\u3001\u30b5\u30a4\u30d0\u30fc\u653b\u6483\u3084\u30c7\u30fc\u30bf\u4fb5\u5bb3\u306e\u5897\u52a0\u306b\u4f34\u3044\u3001\u30c7\u30fc\u30bf\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u4fdd\u8b77\u3059\u308b\u305f\u3081\u306bHTTPS\u3084SSL\u3092\u63a1\u7528\u3059\u308bWeb\u30b5\u30a4\u30c8\u3084\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u5897\u3048\u59cb\u3081\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4e00\u822c\u306b\u3001HTTPS\u3068SSL\u306f\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306b\u304a\u3044\u3066\u975e\u5e38\u306b\u91cd\u8981\u306a\u6982\u5ff5\u3067\u3042\u308a\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u9001\u4fe1\u3055\u308c\u308b\u30c7\u30fc\u30bf\u3068\u60c5\u5831\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u4fdd\u8b77\u3057\u3001\u30c7\u30fc\u30bf\u304c\u6539\u3056\u3093\u3055\u308c\u305f\u308a\u76d7\u307e\u308c\u305f\u308a\u3057\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=2356\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"User\"\/><\/figure>\n\n\n\n<p>Nginx\u306eHTTPS\u3068SSLChatGPT\u3092\u69cb\u6210\u3059\u308b\u65b9\u6cd5\u3092\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>Nginx\u306eHTTPS\u3068SSL\u3092\u69cb\u6210\u3059\u308b\u3068\u3001Web\u30b5\u30fc\u30d0\u30fc\u306f\u3088\u308a\u5b89\u5168\u306a\u901a\u4fe1\u624b\u6bb5\u3092\u63d0\u4f9b\u3067\u304d\u307e\u3059\u3002 Nginx\u306eHTTPS\u304a\u3088\u3073SSL\u3092\u69cb\u6210\u3059\u308b\u305f\u3081\u306e\u57fa\u672c\u7684\u306a\u624b\u9806\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>SSL\u8a3c\u660e\u66f8\u3092\u751f\u6210\u3059\u308b:Nginx\u3092\u69cb\u6210\u3059\u308b\u524d\u306b\u3001SSL\u8a3c\u660e\u66f8\u3092\u751f\u6210\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 OpenSSL \u3092\u4f7f\u7528\u3057\u3066 SSL \u8a3c\u660e\u66f8\u3092\u751f\u6210\u3067\u304d\u307e\u3059\u3002 \u305f\u3068\u3048\u3070\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001example.com \u3068\u3044\u3046\u540d\u524d\u306e\u8a3c\u660e\u66f8\u3092\u751f\u6210\u3057\u307e\u3059\u3002 csharpCopy \u30b3\u30fc\u30c9 \u4e0a\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u305f\u5f8c\u3001example.com.key \u3068\u3044\u3046\u540d\u524d\u306e\u79d8\u5bc6\u30ad\u30fc \u30d5\u30a1\u30a4\u30eb\u3068 example.com.csr \u3068\u3044\u3046\u540d\u524d\u306e\u8a3c\u660e\u66f8\u8981\u6c42\u30d5\u30a1\u30a4\u30eb\u304c\u751f\u6210\u3055\u308c\u307e\u3059\u3002<code>openssl req -new -newkey rsa:2048 -nodes -keyout example.com.key -out example.com.csr<\/code><\/li>\n\n\n\n<li>SSL \u8a3c\u660e\u66f8\u3092\u8cfc\u5165\u3059\u308b: \u5546\u7528 SSL \u8a3c\u660e\u66f8\u3092\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u306f\u3001\u8a8d\u8a3c\u5c40 (CA) \u3092\u901a\u3058\u3066\u8cfc\u5165\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li>Nginx\u3092\u69cb\u6210\u3059\u308b:Nginx\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u3067\u3001SSL\u8a3c\u660e\u66f8\u306e\u30d1\u30b9\u3001\u79d8\u5bc6\u9375\u30d5\u30a1\u30a4\u30eb\u306e\u30d1\u30b9\u3001\u304a\u3088\u3073\u6697\u53f7\u30b9\u30a4\u30fc\u30c8\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002 \u305f\u3068\u3048\u3070\u3001vbnetCopy \u30b3\u30fc\u30c9 \u3053\u306e\u69cb\u6210\u3067\u306f\u3001\u30ea\u30b9\u30cb\u30f3\u30b0 \u30dd\u30fc\u30c8\u304c 443 \u306b\u8a2d\u5b9a\u3055\u308c\u3001SSL \u30d7\u30ed\u30c8\u30b3\u30eb\u304c\u4f7f\u7528\u3055\u308c\u3001\u8a3c\u660e\u66f8\u306e\u30d1\u30b9\u3001\u79d8\u5bc6\u30ad\u30fc \u30d5\u30a1\u30a4\u30eb\u306e\u30d1\u30b9\u3001\u304a\u3088\u3073\u6697\u53f7\u30b9\u30a4\u30fc\u30c8\u304c\u6307\u5b9a\u3055\u308c\u307e\u3059\u3002<code>server { listen 443 ssl; server_name example.com; ssl_certificate \/path\/to\/example.com.crt; ssl_certificate_key \/path\/to\/example.com.key; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_prefer_server_ciphers on; ssl_ciphers \"EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH\"; ... }<\/code><\/li>\n\n\n\n<li>Nginx\u30b5\u30fc\u30d3\u30b9\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059:Nginx\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u3067\u5909\u66f4\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u65b0\u3057\u3044\u69cb\u6210\u3092\u6709\u52b9\u306b\u3059\u308b\u305f\u3081\u306b\u3001sudo systemctl restart nginx\u307e\u305f\u306fnginx -s reload\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066Nginx\u30b5\u30fc\u30d3\u30b9\u3092\u518d\u8d77\u52d5\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n\n\n\n<li>HTTPS \u30a2\u30af\u30bb\u30b9\u3092\u30c6\u30b9\u30c8\u3059\u308b: \u30d6\u30e9\u30a6\u30b6\u30fc\u306b https:\/\/example.com \u3092\u5165\u529b\u3059\u308b<a href=\"https:\/\/example.xn--com%2Cssl-yp4ko1a44vk9ay4hwt7aj4glpcfy1oxu1ayh3c1opoqbl08f36e.\/\">\u3068\u3001\u30da\u30fc\u30b8\u304c SSL \u3067\u6697\u53f7\u5316\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/a><\/li>\n<\/ol>\n\n\n\n<p>\u5168\u4f53\u3068\u3057\u3066\u3001Nginx\u306eHTTPS\u3068SSL\u306e\u69cb\u6210\u306f\u975e\u5e38\u306b\u7c21\u5358\u3067\u3001SSL\u8a3c\u660e\u66f8\u306e\u30d1\u30b9\u3001\u79d8\u5bc6\u9375\u30d5\u30a1\u30a4\u30eb\u306e\u30d1\u30b9\u3001\u6697\u53f7\u30b9\u30a4\u30fc\u30c8\u306a\u3069\u306e\u60c5\u5831\u3092Nginx\u306e\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u306b\u8ffd\u52a0\u3059\u308b\u3060\u3051\u3067\u3059\u3002 HTTPS\u3068SSL\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001Web\u30b5\u30fc\u30d0\u30fc\u306f\u3088\u308a\u5b89\u5168\u306a\u901a\u4fe1\u624b\u6bb5\u3092\u63d0\u4f9b\u3067\u304d\u308b\u305f\u3081\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u9001\u4fe1\u3055\u308c\u308b\u30c7\u30fc\u30bf\u3068\u60c5\u5831\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u4fdd\u8b77\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=2356\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"User\"\/><\/figure>\n\n\n\n<p>\u8a3c\u660e\u66f8ChatGPT\u3092\u751f\u6210\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u3092\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>\u8a3c\u660e\u66f8\u306e\u751f\u6210\u3068\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u3001Web \u30b5\u30fc\u30d0\u30fc\u306e HTTPS \u3068 SSL \u3092\u69cb\u6210\u3059\u308b\u969b\u306e\u91cd\u8981\u306a\u624b\u9806\u3067\u3059\u3002 \u8a3c\u660e\u66f8\u3092\u751f\u6210\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u57fa\u672c\u7684\u306a\u624b\u9806\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u8a3c\u660e\u66f8\u306e\u751f\u6210: OpenSSL \u306a\u3069\u306e\u30c4\u30fc\u30eb\u3092\u4f7f\u7528\u3057\u3066\u3001\u81ea\u5df1\u7f72\u540d\u8a3c\u660e\u66f8\u3092\u751f\u6210\u3057\u305f\u308a\u3001\u8a8d\u8a3c\u5c40 (CA) \u306b\u8a3c\u660e\u66f8\u3092\u8981\u6c42\u3057\u305f\u308a\u3067\u304d\u307e\u3059\u3002 \u81ea\u5df1\u7f72\u540d\u8a3c\u660e\u66f8\u3092\u751f\u6210\u3059\u308b\u65b9\u6cd5\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002 1.1 \u79d8\u5bc6\u9375\u306e\u751f\u6210: \u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u79d8\u5bc6\u9375\u3092\u751f\u6210\u3057\u307e\u3059: csharp\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc\u3059\u308b \u3053\u306e\u30b3\u30de\u30f3\u30c9\u306f.com.key\u79d8\u5bc6\u9375\u306e\u9577\u3055\u304c2048\u30d3\u30c3\u30c8\u306eexample\u3068\u3044\u3046\u540d\u524d\u306e\u79d8\u5bc6\u9375\u30d5\u30a1\u30a4\u30eb\u3092\u751f\u6210\u3057\u307e\u3059\u3002 1.2 \u8a3c\u660e\u66f8\u8981\u6c42\u306e\u751f\u6210: \u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u8a3c\u660e\u66f8\u8981\u6c42\u3092\u751f\u6210\u3057\u307e\u3059: vbnetCopy code \u3053\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001example.com.csr \u3068\u3044\u3046\u540d\u524d\u306e\u8a3c\u660e\u66f8\u8981\u6c42\u30d5\u30a1\u30a4\u30eb\u3092\u751f\u6210\u3057\u307e\u3059\u3002 1.3 \u81ea\u5df1\u7f72\u540d\u8a3c\u660e\u66f8\u3092\u751f\u6210\u3059\u308b: \u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u81ea\u5df1\u7f72\u540d\u8a3c\u660e\u66f8\u3092\u751f\u6210\u3057\u307e\u3059: csharp\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc\u3059\u308b \u3053\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001example.com.crt \u3068\u3044\u3046\u540d\u524d\u306e\u81ea\u5df1\u7f72\u540d\u8a3c\u660e\u66f8\u30d5\u30a1\u30a4\u30eb\u3092\u751f\u6210\u3057\u307e\u3059\u3002<code>openssl genrsa -out example.com.key 2048&nbsp;<\/code><code>openssl req -new -key example.com.key -out example.com.csr&nbsp;<\/code><code>openssl x509 -req -days 365 -in example.com.csr -signkey example.com.key -out example.com.crt<\/code><\/li>\n\n\n\n<li>\u8a3c\u660e\u66f8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb: \u8a3c\u660e\u66f8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u624b\u9806\u306f\u3001\u4f7f\u7528\u3059\u308b Web \u30b5\u30fc\u30d0\u30fc\u306b\u3088\u3063\u3066\u7570\u306a\u308a\u307e\u3059\u3002 Nginx\u30b5\u30fc\u30d0\u30fc\u306b\u8a3c\u660e\u66f8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002 2.1 \u8a3c\u660e\u66f8\u30d5\u30a1\u30a4\u30eb\u3092\u30b3\u30d4\u30fc\u3059\u308b: \u751f\u6210\u3055\u308c\u305f example.com.crt \u30d5\u30a1\u30a4\u30eb\u3068 example.com.key \u30d5\u30a1\u30a4\u30eb\u3092\u30b5\u30fc\u30d0\u30fc\u306b\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002 2.2 Nginx\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u3067\u8a3c\u660e\u66f8\u3092\u69cb\u6210\u3057\u307e\u3059\u3002 Nginx\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u3067\u3001SSL\u30d7\u30ed\u30c8\u30b3\u30eb\u3092\u4f7f\u7528\u3059\u308b\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\u3092\u898b\u3064\u3051\u3001\u6b21\u306e2\u884c\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002 vbnet\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc\u3059\u308b \u3053\u306e\u69cb\u6210\u3067\u306f\u3001\u8a3c\u660e\u66f8\u30d5\u30a1\u30a4\u30eb\u3068\u79d8\u5bc6\u30ad\u30fc \u30d5\u30a1\u30a4\u30eb\u3078\u306e\u30d1\u30b9\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002 3.&lt;&gt; Nginx\u30b5\u30fc\u30d3\u30b9\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059:Nginx\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u3067\u5909\u66f4\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u65b0\u3057\u3044\u69cb\u6210\u3092\u6709\u52b9\u306b\u3059\u308b\u305f\u3081\u306b\u3001sudo systemctl restart nginx\u307e\u305f\u306fnginx -s reload\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066Nginx\u30b5\u30fc\u30d3\u30b9\u3092\u518d\u8d77\u52d5\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<code>ssl_certificate \/path\/to\/example.com.crt; ssl_certificate_key \/path\/to\/example.com.key;<\/code><\/li>\n\n\n\n<li>\u30c6\u30b9\u30c8\u8a3c\u660e\u66f8: \u30d6\u30e9\u30a6\u30b6\u30fc\u306b https:\/\/example.com \u3092\u5165\u529b\u3059\u308b<a href=\"https:\/\/example.xn--com%2Cssl-yp4ko1a44vk9ay4hwt7aj4glpcfy1oxu1ayh3c1opoqbl08f36e.\/\">\u3068\u3001\u30da\u30fc\u30b8\u304c SSL \u3067\u6697\u53f7\u5316\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/a><\/li>\n<\/ol>\n\n\n\n<p>\u5168\u4f53\u3068\u3057\u3066\u3001\u8a3c\u660e\u66f8\u306e\u751f\u6210\u3068\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u3001Web \u30b5\u30fc\u30d0\u30fc\u306e HTTPS \u3068 SSL \u3092\u69cb\u6210\u3059\u308b\u969b\u306e\u91cd\u8981\u306a\u624b\u9806\u3067\u3042\u308a\u3001\u81ea\u5df1\u7f72\u540d\u8a3c\u660e\u66f8\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001Web \u30b5\u30fc\u30d0\u30fc\u306b\u57fa\u672c\u7684\u306a\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u304c\u63d0\u4f9b\u3055\u308c\u307e\u3059\u3002 \u540c\u6642\u306b\u3001\u8a8d\u8a3c\u5c40(CA)\u304b\u3089\u8a3c\u660e\u66f8\u3092\u7533\u8acb\u3057\u3066\u3001\u3088\u308a\u4fe1\u983c\u3067\u304d\u308b\u8a3c\u660e\u66f8\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u3001\u305d\u308c\u306b\u3088\u3063\u3066Web\u30b5\u30fc\u30d0\u30fc\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u304c\u5411\u4e0a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=2356\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"User\"\/><\/figure>\n\n\n\n<p>\u30ad\u30e3\u30c3\u30b7\u30e5\u304c\u5fc5\u8981\u306a\u7406\u7531\u3092\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044\u3002 \u30c1\u30e3\u30c3\u30c8GPT<\/p>\n\n\n\n<p>\u30ad\u30e3\u30c3\u30b7\u30f3\u30b0\u306f\u3001\u9ad8\u901f\u30a2\u30af\u30bb\u30b9\u3068\u9ad8\u901f\u30c7\u30fc\u30bf\u30a2\u30af\u30bb\u30b9\u306e\u305f\u3081\u306b\u9ad8\u901f\u30e1\u30e2\u30ea\u306b\u30c7\u30fc\u30bf\u3092\u683c\u7d0d\u3059\u308b\u305f\u3081\u306e\u624b\u6cd5\u3067\u3059\u3002 Web\u958b\u767a\u3067\u306f\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3068\u5fdc\u7b54\u6027\u3092\u5411\u4e0a\u3055\u305b\u308b\u305f\u3081\u306b\u30ad\u30e3\u30c3\u30b7\u30e5\u624b\u6cd5\u304c\u5e83\u304f\u4f7f\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30ad\u30e3\u30c3\u30b7\u30e5\u304c\u5fc5\u8981\u306a\u7406\u7531\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u5e2f\u57df\u5e45\u306e\u524a\u6e1b: \u983b\u7e41\u306b\u4f7f\u7528\u3055\u308c\u308b\u30c7\u30fc\u30bf\u3092\u30ad\u30e3\u30c3\u30b7\u30e5\u3059\u308b\u3053\u3068\u3067\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u8ee2\u9001\u306b\u5fc5\u8981\u306a\u5e2f\u57df\u5e45\u3092\u6e1b\u3089\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u3053\u308c\u306b\u3088\u308a\u3001\u30c7\u30fc\u30bf\u8ee2\u9001\u306b\u304b\u304b\u308b\u6642\u9593\u304c\u77ed\u7e2e\u3055\u308c\u3001Web \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5fdc\u7b54\u6027\u304c\u5411\u4e0a\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30b5\u30fc\u30d0\u30fc\u306e\u8ca0\u8377\u3092\u8efd\u6e1b\u3059\u308b: \u983b\u7e41\u306b\u4f7f\u7528\u3059\u308b\u30c7\u30fc\u30bf\u3092\u30ad\u30e3\u30c3\u30b7\u30e5\u3059\u308b\u3053\u3068\u3067\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3078\u306e\u30b5\u30fc\u30d0\u30fc \u30a2\u30af\u30bb\u30b9\u306e\u6570\u3092\u6e1b\u3089\u3057\u3001\u30b5\u30fc\u30d0\u30fc\u306e\u8ca0\u8377\u3092\u8efd\u6e1b\u3067\u304d\u307e\u3059\u3002 \u3053\u308c\u306b\u3088\u308a\u3001\u30b5\u30fc\u30d0\u30fc\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u5411\u4e0a\u3057\u3001Web \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5fdc\u7b54\u6642\u9593\u304c\u77ed\u7e2e\u3055\u308c\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30e6\u30fc\u30b6\u30fc \u30a8\u30af\u30b9\u30da\u30ea\u30a8\u30f3\u30b9\u306e\u5411\u4e0a: \u983b\u7e41\u306b\u4f7f\u7528\u3055\u308c\u308b\u30c7\u30fc\u30bf\u3092\u30ad\u30e3\u30c3\u30b7\u30e5\u3059\u308b\u3053\u3068\u3067\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u30c7\u30fc\u30bf\u306e\u8aad\u307f\u8fbc\u307f\u3092\u5f85\u3064\u6642\u9593\u3092\u77ed\u7e2e\u3059\u308b\u3053\u3068\u3067\u3001\u30e6\u30fc\u30b6\u30fc \u30a8\u30af\u30b9\u30da\u30ea\u30a8\u30f3\u30b9\u3068\u6e80\u8db3\u5ea6\u3092\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li>SEO\u30e9\u30f3\u30ad\u30f3\u30b0\u3092\u6539\u5584\u3059\u308b:\u30ad\u30e3\u30c3\u30b7\u30e5\u6280\u8853\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5fdc\u7b54\u6027\u3068\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u5411\u4e0a\u3057\u3001\u691c\u7d22\u30a8\u30f3\u30b8\u30f3\u6700\u9069\u5316(SEO)\u30e9\u30f3\u30ad\u30f3\u30b0\u304c\u5411\u4e0a\u3057\u3001Web\u30b5\u30a4\u30c8\u3078\u306e\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3092\u5897\u3084\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<p>\u5168\u4f53\u3068\u3057\u3066\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u30c6\u30af\u30ce\u30ed\u30b8\u30fc\u306fWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3068\u5fdc\u7b54\u6027\u3092\u5411\u4e0a\u3055\u305b\u3001\u305d\u308c\u306b\u3088\u3063\u3066\u30e6\u30fc\u30b6\u30fc\u30a8\u30af\u30b9\u30da\u30ea\u30a8\u30f3\u30b9\u3068\u6e80\u8db3\u5ea6\u3092\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u540c\u6642\u306b\u3001\u30ad\u30e3\u30c3\u30b7\u30f3\u30b0\u30c6\u30af\u30ce\u30ed\u30b8\u30fc\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u4f1d\u9001\u306b\u5fc5\u8981\u306a\u30b5\u30fc\u30d0\u30fc\u306e\u8ca0\u8377\u3068\u5e2f\u57df\u5e45\u3092\u524a\u6e1b\u3057\u3001\u691c\u7d22\u30a8\u30f3\u30b8\u30f3\u6700\u9069\u5316(SEO)\u30e9\u30f3\u30ad\u30f3\u30b0\u3092\u5411\u4e0a\u3055\u305b\u3001Web\u30b5\u30a4\u30c8\u306e\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3092\u5897\u3084\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u3057\u305f\u304c\u3063\u3066\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u6280\u8853\u306fWeb\u958b\u767a\u306b\u304a\u3044\u3066\u975e\u5e38\u306b\u91cd\u8981\u306a\u6280\u8853\u306e1\u3064\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=2356\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"User\"\/><\/figure>\n\n\n\n<p>\u9759\u7684\u30d5\u30a1\u30a4\u30eb\u30ad\u30e3\u30c3\u30b7\u30f3\u30b0ChatGPT\u306e\u8a2d\u5b9a\u65b9\u6cd5\u3092\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>\u9759\u7684\u30d5\u30a1\u30a4\u30eb\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u69cb\u6210\u306f\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u57fa\u672c\u7684\u306a\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u6700\u9069\u5316\u3068\u5fdc\u7b54\u6642\u9593\u306e\u77ed\u7e2e\u3092\u5b9f\u73fe\u3059\u308b\u305f\u3081\u306e\u91cd\u8981\u306a\u30b9\u30c6\u30c3\u30d7\u3067\u3059\u3002 \u9759\u7684\u30d5\u30a1\u30a4\u30eb\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u69cb\u6210\u3059\u308b\u57fa\u672c\u7684\u306a\u624b\u9806\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Nginx\u306e\u8a2d\u5b9a: Nginx\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306b\u3001\u6b21\u306e\u8a2d\u5b9a\u3092\u8ffd\u52a0\u3057\u307e\u3059:vbnet\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc\u3059\u308b \u3053\u306e\u8a2d\u5b9a\u3067\u306f\u3001\/static\/\u306f\u9759\u7684\u30d5\u30a1\u30a4\u30eb\u306eURL\u30d7\u30ec\u30d5\u30a3\u30c3\u30af\u30b9\u3001expires\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306f\u30ad\u30e3\u30c3\u30b7\u30e5\u6642\u9593\u309230\u65e5\u9593\u3001add_header\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306f\u30ad\u30e3\u30c3\u30b7\u30e5\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u30ec\u30b9\u30dd\u30f3\u30b9\u30d8\u30c3\u30c0\u30fc\u3092\u8a2d\u5b9a\u3057\u3001alias\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306f\u9759\u7684\u30d5\u30a1\u30a4\u30eb\u306e\u30d1\u30b9\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<code>location \/static\/ { expires 30d; add_header Cache-Control \"public, max-age=2592000\"; alias \/path\/to\/static\/files; }<\/code><\/li>\n\n\n\n<li>Nginx\u30b5\u30fc\u30d3\u30b9\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059:Nginx\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u3067\u5909\u66f4\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u65b0\u3057\u3044\u69cb\u6210\u3092\u6709\u52b9\u306b\u3059\u308b\u305f\u3081\u306b\u3001sudo systemctl restart nginx\u307e\u305f\u306fnginx -s reload\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066Nginx\u30b5\u30fc\u30d3\u30b9\u3092\u518d\u8d77\u52d5\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<p>\u9759\u7684\u30d5\u30a1\u30a4\u30eb\u30fb\u30ad\u30e3\u30c3\u30b7\u30f3\u30b0\u3092\u69cb\u6210\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u3001\u30d6\u30e9\u30a6\u30b6\u30fc\u306f\u6bce\u56de\u30b5\u30fc\u30d0\u30fc\u306b\u8981\u6c42\u3092\u884c\u3046\u3053\u3068\u306a\u304f\u3001\u9759\u7684\u30d5\u30a1\u30a4\u30eb\u3092\u30ad\u30e3\u30c3\u30b7\u30e5\u304b\u3089\u76f4\u63a5\u8aad\u307f\u53d6\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u305f\u3081\u3001\u5fdc\u7b54\u6642\u9593\u3092\u5927\u5e45\u306b\u77ed\u7e2e\u3057\u3001Web \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u6642\u9593\u306f\u3001\u5b9f\u969b\u306e\u30cb\u30fc\u30ba\u306b\u5fdc\u3058\u3066\u8abf\u6574\u3067\u304d\u307e\u3059\u3002 \u30ad\u30e3\u30c3\u30b7\u30e5\u6642\u9593\u3092\u9577\u304f\u3059\u308b\u3068\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u5411\u4e0a\u3057\u307e\u3059\u304c\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u6642\u9593\u3092\u77ed\u304f\u3059\u308b\u3068\u3001\u30d6\u30e9\u30a6\u30b6\u306f\u30ad\u30e3\u30c3\u30b7\u30e5\u5185\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u30bf\u30a4\u30e0\u30ea\u30fc\u306b\u66f4\u65b0\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u9759\u7684\u30d5\u30a1\u30a4\u30eb\u3092\u66f4\u65b0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u540d\u306b\u30d0\u30fc\u30b8\u30e7\u30f3\u756a\u53f7\u3092\u8ffd\u52a0\u3059\u308b\u304b\u3001\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u3092\u5909\u66f4\u3057\u3066\u3001\u30d6\u30e9\u30a6\u30b6\u306b\u30d5\u30a1\u30a4\u30eb\u3092\u518d\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u3055\u3089\u306b\u3001\u6b21\u306e\u3088\u3046\u306a\u69cb\u6210\u3092Nginx\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306b\u8ffd\u52a0\u3057\u3066\u3001\u7279\u5b9a\u306e\u6761\u4ef6\u4e0b\u3067Nginx\u304c\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u81ea\u52d5\u7684\u306b\u66f4\u65b0\u3059\u308b\u3088\u3046\u306b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">csharpCopy code<code>location \/static\/ {\n    ...\n    if_modified_since before;\n    etag on;\n}\n<\/code><\/pre>\n\n\n\n<p>\u5168\u4f53\u3068\u3057\u3066\u3001\u9759\u7684\u30d5\u30a1\u30a4\u30eb\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u69cb\u6210\u306f\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3068\u5fdc\u7b54\u6027\u3092\u5411\u4e0a\u3055\u305b\u308b\u305f\u3081\u306eWeb\u958b\u767a\u306b\u304a\u3051\u308b\u975e\u5e38\u306b\u91cd\u8981\u306a\u624b\u6cd5\u306e1\u3064\u3067\u3059\u3002 \u9759\u7684\u30d5\u30a1\u30a4\u30eb\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u306f\u3001Nginx\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306b\u30ad\u30e3\u30c3\u30b7\u30e5\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u3067\u3001\u8fc5\u901f\u304b\u3064\u7c21\u5358\u306b\u5b9f\u88c5\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=2356\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"User\"\/><\/figure>\n\n\n\n<p>\u30d7\u30ed\u30ad\u30b7\u30ad\u30e3\u30c3\u30b7\u30f3\u30b0ChatGPT\u306e\u8a2d\u5b9a\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>\u30d7\u30ed\u30ad\u30b7 \u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u69cb\u6210\u3059\u308b\u3068\u3001Web \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5fdc\u7b54\u6027\u304c\u5411\u4e0a\u3057\u3001\u30b5\u30fc\u30d0\u30fc\u306e\u8ca0\u8377\u304c\u8efd\u6e1b\u3055\u308c\u307e\u3059\u3002 \u30d7\u30ed\u30ad\u30b7 \u30ad\u30e3\u30c3\u30b7\u30e5\u306f\u3001Web \u30b5\u30fc\u30d0\u30fc\u3068\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u9593\u3067\u8981\u6c42\u3068\u5fdc\u7b54\u3092\u30ad\u30e3\u30c3\u30b7\u30e5\u3059\u308b\u305f\u3081\u306e\u624b\u6cd5\u3067\u3059\u3002 \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304c\u30ea\u30bd\u30fc\u30b9\u3092\u8981\u6c42\u3059\u308b\u3068\u3001\u30d7\u30ed\u30ad\u30b7 \u30b5\u30fc\u30d0\u30fc\u306f\u30ad\u30e3\u30c3\u30b7\u30e5\u3067\u30ea\u30bd\u30fc\u30b9\u306e\u30b3\u30d4\u30fc\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3001\u30b3\u30d4\u30fc\u304c\u3042\u308b\u5834\u5408\u306f\u30ad\u30e3\u30c3\u30b7\u30e5\u3055\u308c\u305f\u30b3\u30d4\u30fc\u3092\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306b\u76f4\u63a5\u8fd4\u3057\u3001\u305d\u308c\u4ee5\u5916\u306e\u5834\u5408\u306f\u3001\u30d7\u30ed\u30ad\u30b7 \u30b5\u30fc\u30d0\u30fc\u306f\u914d\u4fe1\u5143\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u30ea\u30bd\u30fc\u30b9\u3092\u8981\u6c42\u3057\u3001\u5f8c\u3067\u4f7f\u7528\u3059\u308b\u305f\u3081\u306b\u30ad\u30e3\u30c3\u30b7\u30e5\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30d7\u30ed\u30ad\u30b7\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u69cb\u6210\u3059\u308b\u57fa\u672c\u7684\u306a\u624b\u9806\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Nginx\u3092\u69cb\u6210\u3059\u308b: Nginx\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u3067\u3001\u6b21\u306e\u69cb\u6210\u3092\u8ffd\u52a0\u3057\u307e\u3059:bashCopy\u30b3\u30fc\u30c9 \u3053\u306e\u69cb\u6210\u3067\u306f\u3001proxy_cache_path\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306f\u30d7\u30ed\u30ad\u30b7\u30ad\u30e3\u30c3\u30b7\u30e5\u3078\u306e\u30d1\u30b9\u3092\u6307\u5b9a\u3057\u3001levels\u306f\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30ec\u30d9\u30eb\u3092\u6307\u5b9a\u3057\u3001keys_zone\u306f\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u540d\u524d\u3068\u30b5\u30a4\u30ba\u3092\u6307\u5b9a\u3057\u3001active\u306f\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u6709\u52b9\u671f\u9650\u304c\u5207\u308c\u308b\u6642\u9593\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002 location \u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306f\u3001\u30d7\u30ed\u30ad\u30b7\u306b\u3088\u3063\u3066\u8981\u6c42\u3055\u308c\u305f URL \u3068\u3001\u30d7\u30ed\u30ad\u30b7 \u30b5\u30fc\u30d0\u30fc\u306e IP \u30a2\u30c9\u30ec\u30b9\u3068\u30dd\u30fc\u30c8\u756a\u53f7\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002 \u8981\u6c42\u30d8\u30c3\u30c0\u30fc proxy_set_header\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002 \u30d7\u30ed\u30ad\u30b7\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u6709\u52b9\u306b\u3059\u308bproxy_cache\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3002 proxy_cache_valid\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306f\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u6709\u52b9\u671f\u9593\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002 proxy_cache_bypass\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306f\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u30d7\u30e9\u30b0\u30de\u30ea\u30af\u30a8\u30b9\u30c8\u30d8\u30c3\u30c0\u30fc\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u5834\u5408\u306f\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u4f7f\u7528\u3057\u306a\u3044\u3053\u3068\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002 proxy_cache_revalidate\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306f\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u6709\u52b9\u671f\u9650\u304c\u5207\u308c\u305f\u3068\u304d\u306b\u3001\u914d\u4fe1\u5143\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u306e\u8a8d\u8a3c\u8981\u6c42\u3067\u66f4\u65b0\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002 proxy_ignore_headers\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306f\u3001\u30d7\u30ed\u30ad\u30b7\u30fc\u30fb\u30b5\u30fc\u30d0\u30fc\u304c\u8981\u6c42\u307e\u305f\u306f\u5fdc\u7b54\u5185\u306e\u7279\u5b9a\u306e\u30d8\u30c3\u30c0\u30fc\u60c5\u5831\u3092\u7121\u8996\u3059\u308b\u3053\u3068\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<code>proxy_cache_path \/path\/to\/cache levels=1:2 keys_zone=my_cache:10m inactive=60m; server { ... location \/ { proxy_pass http:\/\/backend; proxy_set_header Host $host; proxy_cache my_cache; proxy_cache_valid 200 60m; proxy_cache_valid 404 1m; proxy_cache_bypass $http_pragma; proxy_cache_revalidate on; proxy_ignore_headers X-Accel-Expires Expires Cache-Control; ... } }<\/code><\/li>\n\n\n\n<li>Nginx\u30b5\u30fc\u30d3\u30b9\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059:Nginx\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u3067\u5909\u66f4\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u65b0\u3057\u3044\u69cb\u6210\u3092\u6709\u52b9\u306b\u3059\u308b\u305f\u3081\u306b\u3001sudo systemctl restart nginx\u307e\u305f\u306fnginx -s reload\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066Nginx\u30b5\u30fc\u30d3\u30b9\u3092\u518d\u8d77\u52d5\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<p>\u30d7\u30ed\u30ad\u30b7 \u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u69cb\u6210\u3059\u308b\u3068\u3001\u30d7\u30ed\u30ad\u30b7 \u30b5\u30fc\u30d0\u30fc\u306f\u914d\u4fe1\u5143\u30b5\u30fc\u30d0\u30fc\u306b\u8981\u6c42\u3092\u884c\u308f\u306a\u304f\u3066\u3082\u30ad\u30e3\u30c3\u30b7\u30e5\u304b\u3089\u76f4\u63a5\u30ea\u30bd\u30fc\u30b9\u3092\u8fd4\u3059\u3053\u3068\u304c\u3067\u304d\u308b\u305f\u3081\u3001Web \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3068\u5fdc\u7b54\u6027\u304c\u5927\u5e45\u306b\u5411\u4e0a\u3057\u307e\u3059\u3002 \u30ad\u30e3\u30c3\u30b7\u30e5\u6642\u9593\u306f\u3001\u5b9f\u969b\u306e\u30cb\u30fc\u30ba\u306b\u5fdc\u3058\u3066\u8abf\u6574\u3067\u304d\u307e\u3059\u3002 \u30ad\u30e3\u30c3\u30b7\u30e5\u6642\u9593\u3092\u9577\u304f\u3059\u308b\u3068\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u5411\u4e0a\u3057\u307e\u3059\u304c\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u6642\u9593\u3092\u77ed\u304f\u3059\u308b\u3068\u3001\u30d7\u30ed\u30ad\u30b7\u30fc\u30fb\u30b5\u30fc\u30d0\u30fc\u306f\u30ad\u30e3\u30c3\u30b7\u30e5\u5185\u306e\u30ea\u30bd\u30fc\u30b9\u3092\u9069\u6642\u306b\u66f4\u65b0\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30d7\u30ed\u30ad\u30b7\u30ad\u30e3\u30c3\u30b7\u30e5\u306f\u3001\u9759\u7684\u30d5\u30a1\u30a4\u30eb\u3084API\u5fdc\u7b54\u306a\u3069\u3001\u983b\u7e41\u306b\u66f4\u65b0\u3055\u308c\u306a\u3044\u30ea\u30bd\u30fc\u30b9\u306b\u306e\u307f\u9069\u3057\u3066\u3044\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002 \u30ea\u30bd\u30fc\u30b9\u304c\u983b\u7e41\u306b\u66f4\u65b0\u3055\u308c\u308b\u5834\u5408\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304c\u30ad\u30e3\u30c3\u30b7\u30e5\u304b\u3089\u53e4\u3044\u30ea\u30bd\u30fc\u30b9\u3092\u30d5\u30a7\u30c3\u30c1\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u305f\u3081\u3001\u30d7\u30ed\u30ad\u30b7 \u30ad\u30e3\u30c3\u30b7\u30e5\u304c\u60aa\u5f71\u97ff\u3092\u4e0e\u3048\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002 \u3057\u305f\u304c\u3063\u3066\u3001\u30d7\u30ed\u30ad\u30b7\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u69cb\u6210\u3059\u308b\u3068\u304d\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u7279\u6027\u3068\u30ad\u30e3\u30c3\u30b7\u30e5\u6642\u9593\u306e\u8a2d\u5b9a\u3092\u8003\u616e\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=2356\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"User\"\/><\/figure>\n\n\n\n<p>ChatGPT\u3078\u306eDDoS\u653b\u6483\u3092\u9632\u3050\u305f\u3081\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u8a2d\u5b9a\u3092\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>DDoS(\u5206\u6563\u578b\u30b5\u30fc\u30d3\u30b9\u62d2\u5426)\u653b\u6483\u306f\u3001\u5927\u91cf\u306e\u60aa\u610f\u306e\u3042\u308b\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3092\u9001\u4fe1\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u3001Web\u30b5\u30fc\u30d0\u30fc\u304c\u901a\u5e38\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u5fdc\u7b54\u3067\u304d\u306a\u304f\u306a\u308b\u653b\u6483\u3067\u3059\u3002 DDoS \u653b\u6483\u3092\u9632\u3050\u306b\u306f\u3001Web \u30b5\u30fc\u30d0\u30fc\u3067\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u69cb\u6210\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<p>DDoS \u653b\u6483\u3092\u9632\u3050\u305f\u3081\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u69cb\u6210\u306e\u57fa\u672c\u7684\u306a\u624b\u9806\u3092\u6b21\u306b\u793a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u69cb\u6210: \u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306f\u3001\u4fe1\u983c\u3067\u304d\u306a\u3044 IP \u30a2\u30c9\u30ec\u30b9\u304b\u3089\u306e\u5927\u91cf\u306e\u60aa\u610f\u306e\u3042\u308b\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3092\u9664\u5916\u3067\u304d\u307e\u3059\u3002 ufw\u3001iptables\u306a\u3069\u306e\u30c4\u30fc\u30eb\u3092\u4f7f\u7528\u3057\u3066\u3001\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304a\u3088\u3073\u69cb\u6210\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li>Nginx\u306e\u8a2d\u5b9a: Nginx\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3067\u3001\u6b21\u306e\u8a2d\u5b9a\u3092\u8ffd\u52a0\u3057\u307e\u3059:bashCopy\u30b3\u30fc\u30c9 \u3053\u306e\u69cb\u6210\u3067\u306f\u3001IP\u30a2\u30c9\u30ec\u30b9\u3042\u305f\u308a\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u30ec\u30fc\u30c8\u5236\u9650\u304c\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6limit_req_zone\u8a2d\u5b9a\u3055\u308c\u3001IP\u30a2\u30c9\u30ec\u30b9\u3042\u305f\u308a\u306e\u63a5\u7d9a\u5236\u9650\u304c\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6limit_conn_zone\u8a2d\u5b9a\u3055\u308c\u307e\u3059\u3002 location \u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306f\u3001\u8981\u6c42\u3055\u308c\u305f URL \u3068\u305d\u306e\u4ed6\u306e\u8a2d\u5b9a\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002 \u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6limit_req\u3001\u5404 IP \u30a2\u30c9\u30ec\u30b9\u306e\u8981\u6c42\u30ec\u30fc\u30c8\u5236\u9650\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002 burst \u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306f\u3001\u8981\u6c42\u30ec\u30fc\u30c8\u304c\u5236\u9650\u3092\u8d85\u3048\u305f\u3068\u304d\u306b\u30d0\u30c3\u30d5\u30a1\u30ea\u30f3\u30b0\u3067\u304d\u308b\u8981\u6c42\u306e\u6570\u3092\u6307\u5b9a\u3057\u3001nodelay \u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306f\u3001\u8981\u6c42\u30ec\u30fc\u30c8\u304c\u5236\u9650\u3092\u8d85\u3048\u305f\u3068\u304d\u306b\u5fdc\u7b54\u3092\u9045\u3089\u305b\u308b\u304b\u3069\u3046\u304b\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002 \u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6limit_conn\u3001IP \u30a2\u30c9\u30ec\u30b9\u3042\u305f\u308a\u306e\u63a5\u7d9a\u6570\u306e\u5236\u9650\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<code>limit_req_zone $binary_remote_addr zone=one:10m rate=1r\/s; limit_conn_zone $binary_remote_addr zone=addr:10m; server { ... location \/ { limit_req zone=one burst=5 nodelay; limit_conn addr 10; ... } ... }<\/code><\/li>\n\n\n\n<li>CDN\u3092\u4f7f\u7528\u3059\u308b:CDN(\u30b3\u30f3\u30c6\u30f3\u30c4\u914d\u4fe1\u30cd\u30c3\u30c8\u30ef\u30fc\u30af)\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3092\u8907\u6570\u306e\u30b5\u30fc\u30d0\u30fc\u306b\u5206\u6563\u3057\u3001DDoS\u653b\u6483\u306e\u5f71\u97ff\u3092\u8efd\u6e1b\u3067\u304d\u307e\u3059\u3002 CDN\u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u306f\u3001\u591a\u304f\u306e\u5834\u5408\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092DDoS\u653b\u6483\u304b\u3089\u4fdd\u8b77\u3059\u308b\u306e\u306b\u5f79\u7acb\u3064\u5f37\u529b\u306a\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u6a5f\u80fd\u3092\u5099\u3048\u3066\u3044\u307e\u3059\u3002<\/li>\n\n\n\n<li>SSL \u3068 TLS \u3092\u6709\u52b9\u306b\u3059\u308b: SSL \u3068 TLS \u3092\u6709\u52b9\u306b\u3059\u308b\u3068\u3001Web \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u304c\u5411\u4e0a\u3057\u3001\u4e2d\u9593\u8005\u653b\u6483\u3084\u30c7\u30fc\u30bf\u4fb5\u5bb3\u304c\u9632\u6b62\u3055\u308c\u307e\u3059\u3002 Let&#8217;s Encrypt\u306a\u3069\u306e\u30c4\u30fc\u30eb\u3092\u4f7f\u7528\u3057\u3066\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u7528\u306eSSL\/TLS\u8a3c\u660e\u66f8\u3092\u751f\u6210\u304a\u3088\u3073\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u76e3\u8996\u3068\u30ed\u30ae\u30f3\u30b0:Web\u30b5\u30fc\u30d0\u30fc\u306e\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3092\u76e3\u8996\u3057\u3001\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u3092\u8a18\u9332\u3059\u308b\u3053\u3068\u3067\u3001DDoS\u653b\u6483\u3092\u691c\u51fa\u304a\u3088\u3073\u5206\u6790\u3057\u3001\u9069\u5207\u306a\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u30bf\u30a4\u30e0\u30ea\u30fc\u306b\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<p>\u4e00\u822c\u306b\u3001DDoS\u653b\u6483\u3092\u9632\u3050\u305f\u3081\u306b\u306f\u3001Web\u30b5\u30fc\u30d0\u30fc\u3067\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u8a2d\u5b9a\u304c\u5fc5\u8981\u3067\u3059\u3002 Web\u30b5\u30fc\u30d0\u30fc\u306f\u3001\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u30ec\u30fc\u30c8\u3068\u63a5\u7d9a\u3092\u5236\u9650\u3059\u308bNginx\u69cb\u6210\u3001CDN\u3001SSL \/ TLS\u8a3c\u660e\u66f8\u306a\u3069\u306e\u30c4\u30fc\u30eb\u3068\u624b\u6cd5\u3092\u4f7f\u7528\u3057\u3066\u3001DDoS\u653b\u6483\u304b\u3089\u4fdd\u8b77\u3067\u304d\u307e\u3059\u3002 \u540c\u6642\u306b\u3001Web\u30b5\u30fc\u30d0\u30fc\u306e\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3092\u76e3\u8996\u3057\u3001\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u3092\u8a18\u9332\u3057\u3001\u653b\u6483\u306e\u53ef\u80fd\u6027\u306b\u5bfe\u51e6\u3059\u308b\u305f\u3081\u306b\u6642\u9593\u5185\u306b\u5bfe\u5fdc\u3059\u308b\u5bfe\u7b56\u3092\u8b1b\u3058\u308b\u3053\u3068\u3082\u5fc5\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=2356\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"User\"\/><\/figure>\n\n\n\n<p>\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u8a2d\u5b9a\u30a2\u30af\u30bb\u30b9\u5236\u5fa1ChatGPT\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>\u30a2\u30af\u30bb\u30b9\u5236\u5fa1\u306f\u3001\u30b7\u30b9\u30c6\u30e0\u307e\u305f\u306f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u5236\u9650\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u308b\u624b\u6cd5\u3067\u3059\u3002 Web \u958b\u767a\u3067\u306f\u3001\u30a2\u30af\u30bb\u30b9\u5236\u5fa1\u3092\u4f7f\u7528\u3057\u3066 Web \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3 \u30ea\u30bd\u30fc\u30b9\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u5236\u9650\u3057\u3001Web \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u5411\u4e0a\u3055\u305b\u3001\u6a5f\u5bc6\u30c7\u30fc\u30bf\u3092\u4fdd\u8b77\u3057\u307e\u3059\u3002 \u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u30a2\u30af\u30bb\u30b9\u5236\u5fa1\u3092\u69cb\u6210\u3059\u308b\u305f\u3081\u306e\u57fa\u672c\u7684\u306a\u624b\u9806\u3092\u6b21\u306b\u793a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Nginx\u3092\u69cb\u6210\u3059\u308b: Nginx\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u306b\u3001\u6b21\u306e\u69cb\u6210\u3092\u8ffd\u52a0\u3057\u307e\u3059:css\u30b3\u30d4\u30fc\u30b3\u30fc\u30c9 \u3053\u306e\u69cb\u6210\u3067\u306f\u3001allow \u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306f Web \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u8a31\u53ef\u3059\u308b IP \u30a2\u30c9\u30ec\u30b9\u307e\u305f\u306f IP \u30a2\u30c9\u30ec\u30b9 \u30d6\u30ed\u30c3\u30af\u3092\u8a2d\u5b9a\u3057\u3001den \u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306f Web \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u62d2\u5426\u3059\u308b IP \u30a2\u30c9\u30ec\u30b9\u307e\u305f\u306f IP \u30a2\u30c9\u30ec\u30b9 \u30d6\u30ed\u30c3\u30af\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<code>server { ... location \/ { allow 192.168.1.0\/24; deny all; ... } ... }<\/code><\/li>\n\n\n\n<li>\u8a8d\u8a3c\u306e\u69cb\u6210: \u8a8d\u8a3c\u306b\u306f HTTP \u57fa\u672c\u8a8d\u8a3c\u307e\u305f\u306f OAuth2 \u3092\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002 HTTP\u57fa\u672c\u8a8d\u8a3c\u306f\u30e6\u30fc\u30b6\u30fc\u540d\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u30d9\u30fc\u30b9\u306e\u8a8d\u8a3c\u65b9\u6cd5\u3067\u3042\u308a\u3001Nginx\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306b\u6b21\u306e\u69cb\u6210\u3092\u8ffd\u52a0\u3067\u304d\u307e\u3059\u3002 bashCopy \u30b3\u30fc\u30c9 \u3053\u306e\u8a2d\u5b9a\u3067\u306f\u3001\u57fa\u672c\u8a8d\u8a3c\u306e\u30d7\u30ed\u30f3\u30d7\u30c8\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u8a2d\u5b9a\u3059\u308bauth_basic\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3068\u3001\u30e6\u30fc\u30b6\u540d\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u683c\u7d0d\u3055\u308c\u3066\u3044\u308b\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u30d1\u30b9\u3092\u8a2d\u5b9a\u3059\u308bauth_basic_user_file\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u304c\u3042\u308a\u307e\u3059\u3002<code>server { ... location \/ { auth_basic \"Restricted\"; auth_basic_user_file \/path\/to\/.htpasswd; ... } ... }<\/code><\/li>\n\n\n\n<li>SSL \u3068 TLS \u3092\u4f7f\u7528\u3059\u308b: SSL \u3068 TLS \u3092\u4f7f\u7528\u3059\u308b\u3068\u3001Web \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u304c\u5411\u4e0a\u3057\u3001\u4e2d\u9593\u8005\u653b\u6483\u3084\u30c7\u30fc\u30bf\u4fb5\u5bb3\u3092\u9632\u3050\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 Let&#8217;s Encrypt\u306a\u3069\u306e\u30c4\u30fc\u30eb\u3092\u4f7f\u7528\u3057\u3066\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u7528\u306eSSL\/TLS\u8a3c\u660e\u66f8\u3092\u751f\u6210\u304a\u3088\u3073\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3092\u69cb\u6210\u3059\u308b: \u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306f\u3001\u4fe1\u983c\u3067\u304d\u306a\u3044 IP \u30a2\u30c9\u30ec\u30b9\u307e\u305f\u306f IP \u30a2\u30c9\u30ec\u30b9 \u30bb\u30b0\u30e1\u30f3\u30c8\u306e\u8981\u6c42\u3092\u9664\u5916\u3067\u304d\u308b\u305f\u3081\u3001Web \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u304c\u5411\u4e0a\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u76e3\u8996\u3068\u30ed\u30b0\u8a18\u9332:Web\u30b5\u30fc\u30d0\u30fc\u306e\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3092\u76e3\u8996\u3057\u3001\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u3092\u8a18\u9332\u3059\u308b\u3053\u3068\u3067\u3001\u6f5c\u5728\u7684\u306a\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u554f\u984c\u3092\u7279\u5b9a\u304a\u3088\u3073\u5206\u6790\u3057\u3001\u9069\u5207\u306a\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u30bf\u30a4\u30e0\u30ea\u30fc\u306b\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<p>\u5168\u4f53\u3068\u3057\u3066\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u5411\u4e0a\u3055\u305b\u3001\u6a5f\u5bc6\u30c7\u30fc\u30bf\u3092\u4fdd\u8b77\u3059\u308b\u305f\u3081\u306b\u3001\u30a2\u30af\u30bb\u30b9\u3092\u5236\u5fa1\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 Nginx\u306e\u8a31\u53ef\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3068\u62d2\u5426\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3001HTTP\u57fa\u672c\u8a8d\u8a3c\u3001SSL \/ TLS\u8a3c\u660e\u66f8\u3001\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306a\u3069\u306e\u30c4\u30fc\u30eb\u3068\u624b\u6cd5\u3092\u4f7f\u7528\u3057\u3066\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30ea\u30bd\u30fc\u30b9\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u5236\u9650\u3067\u304d\u307e\u3059\u3002 \u540c\u6642\u306b\u3001Web\u30b5\u30fc\u30d0\u30fc\u306e\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3092\u76e3\u8996\u3057\u3001\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u3092\u8a18\u9332\u3057\u3001\u8d77\u3053\u308a\u3046\u308b\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u554f\u984c\u306b\u5bfe\u51e6\u3059\u308b\u305f\u3081\u306b\u6642\u9593\u5185\u306b\u5bfe\u5fdc\u3059\u308b\u5bfe\u7b56\u3092\u8b1b\u3058\u308b\u3053\u3068\u3082\u5fc5\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=2356\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"User\"\/><\/figure>\n\n\n\n<p>\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u8a2d\u5b9a\u306e\u5236\u9650\u901f\u5ea6ChatGPT\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>\u30ec\u30fc\u30c8\u8abf\u6574\u306f\u3001Web \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u901f\u5ea6\u3092\u8981\u6c42\u3059\u308b\u901f\u5ea6\u3092\u5236\u9650\u3059\u308b\u624b\u6cd5\u3067\u3059\u3002 \u7279\u5b9a\u306eIP\u30a2\u30c9\u30ec\u30b9\u307e\u305f\u306fIP\u30a2\u30c9\u30ec\u30b9\u30bb\u30b0\u30e1\u30f3\u30c8\u304b\u3089\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u901f\u5ea6\u3092\u5236\u9650\u3059\u308b\u3053\u3068\u3067\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092DDoS\u653b\u6483\u3084\u60aa\u610f\u306e\u3042\u308b\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u304b\u3089\u4fdd\u8b77\u3067\u304d\u307e\u3059\u3002 \u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u30ec\u30fc\u30c8\u5236\u9650\u3092\u8a2d\u5b9a\u3059\u308b\u57fa\u672c\u7684\u306a\u624b\u9806\u3092\u6b21\u306b\u793a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Nginx\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u69cb\u6210:ngx_http_limit_req_module\u30e2\u30b8\u30e5\u30fc\u30eb\u307e\u305f\u306fngx_http_limit_conn_module\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u7528\u3057\u3066\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u901f\u5ea6\u3092\u5236\u9650\u3067\u304d\u307e\u3059\u3002 Nginx\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u4e2d\u306b\u3001\u3053\u308c\u3089\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u306f\u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u306b\u6709\u52b9\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 \u30d7\u30ea\u30b3\u30f3\u30d1\u30a4\u30eb\u3055\u308c\u305f\u30d0\u30a4\u30ca\u30ea\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f7f\u7528\u3057\u3066Nginx\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5834\u5408\u306f\u3001\u9069\u5207\u306a\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n\n\n\n<li>Nginx\u3092\u69cb\u6210\u3059\u308b:Nginx\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306b\u3001\u6b21\u306e\u69cb\u6210\u3092\u8ffd\u52a0\u3057\u307e\u3059:bashCopy\u30b3\u30fc\u30c9 \u3053\u306e\u8a2d\u5b9a\u3067\u306f\u3001limit_req_zone\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306f\u5404IP\u30a2\u30c9\u30ec\u30b9\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u30ec\u30fc\u30c8\u5236\u9650\u3092\u8a2d\u5b9a\u3057\u3001location\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306f\u30ea\u30af\u30a8\u30b9\u30c8\u3055\u308c\u305fURL\u3068\u305d\u306e\u4ed6\u306e\u8a2d\u5b9a\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002 limit_req \u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306f\u5404 IP \u30a2\u30c9\u30ec\u30b9\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u30ec\u30fc\u30c8\u5236\u9650\u3092\u8a2d\u5b9a\u3057\u3001burst \u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306f\u30ea\u30af\u30a8\u30b9\u30c8\u30ec\u30fc\u30c8\u304c\u5236\u9650\u3092\u8d85\u3048\u305f\u3068\u304d\u306b\u30d0\u30c3\u30d5\u30a1\u30ea\u30f3\u30b0\u3067\u304d\u308b\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u6570\u3092\u6307\u5b9a\u3057\u3001nodelay \u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306f\u30ea\u30af\u30a8\u30b9\u30c8\u30ec\u30fc\u30c8\u304c\u5236\u9650\u3092\u8d85\u3048\u305f\u3068\u304d\u306b\u5fdc\u7b54\u3092\u9045\u3089\u305b\u308b\u304b\u3069\u3046\u304b\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<code>limit_req_zone $binary_remote_addr zone=one:10m rate=1r\/s; server { ... location \/ { limit_req zone=one burst=5 nodelay; ... } ... }<\/code><\/li>\n\n\n\n<li>Nginx\u30b5\u30fc\u30d3\u30b9\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059:Nginx\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u3067\u5909\u66f4\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u65b0\u3057\u3044\u69cb\u6210\u3092\u6709\u52b9\u306b\u3059\u308b\u305f\u3081\u306b\u3001sudo systemctl restart nginx\u307e\u305f\u306fnginx -s reload\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066Nginx\u30b5\u30fc\u30d3\u30b9\u3092\u518d\u8d77\u52d5\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<p>\u901f\u5ea6\u8abf\u6574\u306f\u3001DDoS\u653b\u6483\u3084\u60aa\u610f\u306e\u3042\u308b\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u304b\u3089Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4fdd\u8b77\u3059\u308b\u306e\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002 Nginx\u306engx_http_limit_req_module\u30e2\u30b8\u30e5\u30fc\u30eb\u307e\u305f\u306fngx_http_limit_conn_module\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u7528\u3057\u3066\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u901f\u5ea6\u3092\u5236\u9650\u3067\u304d\u307e\u3059\u3002 Nginx\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3067\u306f\u3001limit_req_zone\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3092\u4f7f\u7528\u3057\u3066IP\u30a2\u30c9\u30ec\u30b9\u3054\u3068\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u30ec\u30fc\u30c8\u5236\u9650\u3092\u8a2d\u5b9a\u3067\u304d\u3001limit_req\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3092\u4f7f\u7528\u3057\u3066\u30ea\u30af\u30a8\u30b9\u30c8\u30ec\u30fc\u30c8\u5236\u9650\u3092\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u3002 \u901f\u5ea6\u5236\u9650\u306f\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3068\u5fdc\u7b54\u6027\u306b\u5f71\u97ff\u3092\u4e0e\u3048\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u3053\u3068\u306b\u6ce8\u610f\u3059\u308b\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002 \u30ec\u30fc\u30c8\u5236\u9650\u3092\u4f4e\u304f\u3059\u308b\u3068\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306f\u5411\u4e0a\u3057\u307e\u3059\u304c\u3001Web \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u4f4e\u4e0b\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002 \u3057\u305f\u304c\u3063\u3066\u3001\u5236\u9650\u901f\u5ea6\u3092\u8a2d\u5b9a\u3059\u308b\u3068\u304d\u306f\u3001\u5b9f\u969b\u306e\u9700\u8981\u306b\u5fdc\u3058\u3066\u8abf\u6574\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=2356\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"User\"\/><\/figure>\n\n\n\n<p>\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u304cgzip\u5727\u7e2eChatGPT\u3092\u30aa\u30f3\u306b\u3059\u308b\u3053\u3068\u3092\u8a73\u7d30\u306b\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>Gzip\u5727\u7e2e\u306f\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u3088\u3063\u3066\u8ee2\u9001\u3055\u308c\u308b\u30c7\u30fc\u30bf\u306e\u30b5\u30a4\u30ba\u3092\u7e2e\u5c0f\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u308b\u624b\u6cd5\u3067\u3059\u3002 gzip \u5727\u7e2e\u3092\u30aa\u30f3\u306b\u3059\u308b\u3068\u3001Web \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u5411\u4e0a\u3057\u3001\u30c7\u30fc\u30bf\u8ee2\u9001\u306b\u304b\u304b\u308b\u6642\u9593\u3068\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u304c\u524a\u6e1b\u3055\u308c\u307e\u3059\u3002 gzip\u5727\u7e2e\u3092\u30aa\u30f3\u306b\u3059\u308b\u57fa\u672c\u7684\u306a\u624b\u9806\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>gzip\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b:Nginx\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u304d\u306f\u3001gzip\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u6709\u52b9\u306b\u3059\u308b\u3053\u3068\u3092\u9078\u629e\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 \u30d7\u30ea\u30b3\u30f3\u30d1\u30a4\u30eb\u3055\u308c\u305f\u30d0\u30a4\u30ca\u30ea\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f7f\u7528\u3057\u3066Nginx\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5834\u5408\u306f\u3001\u9069\u5207\u306a\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n\n\n\n<li>Nginx\u3092\u69cb\u6210\u3059\u308b:Nginx\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306b\u3001\u6b21\u306e\u8a2d\u5b9a\u3092\u8ffd\u52a0\u3057\u307e\u3059:bashCopy\u30b3\u30fc\u30c9 \u3053\u306e\u8a2d\u5b9a\u3067\u306f\u3001gzip \u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306f gzip \u5727\u7e2e\u3092\u30aa\u30f3\u306b\u3057\u3001gzip_types \u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306f\u5727\u7e2e\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u306e\u7a2e\u985e\u3092\u6307\u5b9a\u3057\u3001gzip_min_length \u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306f\u5727\u7e2e\u30d5\u30a1\u30a4\u30eb\u306e\u6700\u5c0f\u9577\u3092\u6307\u5b9a\u3057\u3001gzip_buffers \u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306f\u30e1\u30e2\u30ea\u5185\u306e\u5727\u7e2e\u30d0\u30c3\u30d5\u30a1\u306e\u30b5\u30a4\u30ba\u3092\u6307\u5b9a\u3057\u3001gzip_comp_level \u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306f\u5727\u7e2e\u30ec\u30d9\u30eb\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<code>gzip on; gzip_types text\/plain text\/css application\/json application\/javascript text\/xml application\/xml application\/xml+rss text\/javascript; gzip_min_length 1024; gzip_buffers 16 8k; gzip_comp_level 6;<\/code><\/li>\n\n\n\n<li>Nginx\u30b5\u30fc\u30d3\u30b9\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059:Nginx\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u3067\u5909\u66f4\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u65b0\u3057\u3044\u69cb\u6210\u3092\u6709\u52b9\u306b\u3059\u308b\u305f\u3081\u306b\u3001sudo systemctl restart nginx\u307e\u305f\u306fnginx -s reload\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066Nginx\u30b5\u30fc\u30d3\u30b9\u3092\u518d\u8d77\u52d5\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<p>gzip \u5727\u7e2e\u3092\u30aa\u30f3\u306b\u3059\u308b\u3068\u3001Web \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u5411\u4e0a\u3057\u3001\u30c7\u30fc\u30bf\u8ee2\u9001\u306b\u304b\u304b\u308b\u6642\u9593\u3068\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u304c\u524a\u6e1b\u3055\u308c\u307e\u3059\u3002 Nginx\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3067\u306f\u3001gzip\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3092\u4f7f\u7528\u3057\u3066gzip\u5727\u7e2e\u3092\u6709\u52b9\u306b\u3057\u3001gzip_types\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3092\u4f7f\u7528\u3057\u3066\u5727\u7e2e\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u30bf\u30a4\u30d7\u3092\u6307\u5b9a\u3057\u3001gzip_min_length\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3092\u4f7f\u7528\u3057\u3066\u5727\u7e2e\u30d5\u30a1\u30a4\u30eb\u306e\u6700\u5c0f\u9577\u3092\u6307\u5b9a\u3057\u3001gzip_buffers\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3092\u4f7f\u7528\u3057\u3066\u30e1\u30e2\u30ea\u5185\u306e\u5727\u7e2e\u30d0\u30c3\u30d5\u30a1\u306e\u30b5\u30a4\u30ba\u3092\u6307\u5b9a\u3057\u3001gzip_comp_level\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3092\u4f7f\u7528\u3057\u3066\u5727\u7e2e\u30ec\u30d9\u30eb\u3092\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002 gzip\u5727\u7e2e\u3092\u8a2d\u5b9a\u3059\u308b\u3068\u304d\u306f\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3068\u5fdc\u7b54\u6027\u3092\u8003\u616e\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3053\u3068\u306b\u6ce8\u610f\u3059\u308b\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002 \u5727\u7e2e\u30ec\u30d9\u30eb\u3092\u9ad8\u304f\u3059\u308b\u3068\u3001\u5727\u7e2e\u7387\u306f\u5411\u4e0a\u3057\u307e\u3059\u304c\u3001Web \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u4f4e\u4e0b\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002 \u3057\u305f\u304c\u3063\u3066\u3001gzip\u5727\u7e2e\u3092\u8a2d\u5b9a\u3059\u308b\u3068\u304d\u306f\u3001\u5b9f\u969b\u306e\u30cb\u30fc\u30ba\u306b\u5fdc\u3058\u3066\u8abf\u6574\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=2356\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"User\"\/><\/figure>\n\n\n\n<p>\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u3092\u8a73\u3057\u304f\u8aac\u660e\u3057\u3001\u30ef\u30fc\u30ab\u30fc\u30d7\u30ed\u30bb\u30b9\u306e\u6570\u3068ChatGPT\u3078\u306e\u63a5\u7d9a\u6570\u3092\u8abf\u6574\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>Nginx\u30ef\u30fc\u30ab\u30fc\u30d7\u30ed\u30bb\u30b9\u3068\u63a5\u7d9a\u306e\u6570\u3092\u8abf\u6574\u3059\u308b\u3068\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u6700\u9069\u5316\u3067\u304d\u307e\u3059\u3002 \u30ef\u30fc\u30ab\u30fc \u30d7\u30ed\u30bb\u30b9\u3068\u63a5\u7d9a\u306e\u6570\u3092\u8abf\u6574\u3059\u308b\u57fa\u672c\u7684\u306a\u624b\u9806\u3092\u6b21\u306b\u793a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u30ef\u30fc\u30ab\u30fc\u30d7\u30ed\u30bb\u30b9\u306e\u6570\u3092\u8abf\u6574\u3059\u308b:Nginx\u306f\u30ef\u30fc\u30ab\u30fc\u30d7\u30ed\u30bb\u30b9\u3092\u4f7f\u7528\u3057\u3066\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u8981\u6c42\u3092\u51e6\u7406\u3057\u307e\u3059\u3002 \u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001Nginx\u306f1\u3064\u306e\u30ef\u30fc\u30ab\u30fc\u30d7\u30ed\u30bb\u30b9\u3092\u4f7f\u7528\u3057\u307e\u3059\u304c\u3001\u30ef\u30fc\u30ab\u30fc\u30d7\u30ed\u30bb\u30b9\u306e\u6570\u306fworker_processes\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3092\u4f7f\u7528\u3057\u3066\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u3002 Nginx\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306b\u3001\u6b21\u306e\u8a2d\u5b9a\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002 arduino\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc\u3059\u308b \u3053\u306e\u69cb\u6210\u3067\u306f\u3001\u30ef\u30fc\u30ab\u30fc \u30d7\u30ed\u30bb\u30b9\u306e\u6570\u304c\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6worker_processes\u8a2d\u5b9a\u3055\u308c\u3001CPU \u30a2\u30d5\u30a3\u30cb\u30c6\u30a3\u304c\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6worker_cpu_affinity\u6307\u5b9a\u3055\u308c\u307e\u3059\u3002<code>worker_processes 4; worker_cpu_affinity auto;<\/code><\/li>\n\n\n\n<li>\u63a5\u7d9a\u6570\u3092\u8abf\u6574\u3059\u308b:Nginx\u306f\u63a5\u7d9a\u30d7\u30fc\u30eb\u3092\u4f7f\u7528\u3057\u3066\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u63a5\u7d9a\u3092\u7ba1\u7406\u3057\u307e\u3059\u3002 \u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001Nginx\u306f512\u63a5\u7d9a\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002 \u63a5\u7d9a\u6570\u306f\u3001worker_connections\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3092\u4f7f\u7528\u3057\u3066\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u3002 Nginx\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u3067\u3001\u6b21\u306e\u69cb\u6210\u3092\u8ffd\u52a0\u3057\u307e\u3059:yaml\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc\u3059\u308b \u3053\u306e\u69cb\u6210\u3067\u306f\u3001worker_connections\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u63a5\u7d9a\u6570\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<code>worker_connections 1024;<\/code><\/li>\n\n\n\n<li>Nginx\u30b5\u30fc\u30d3\u30b9\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059:Nginx\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u3067\u5909\u66f4\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u65b0\u3057\u3044\u69cb\u6210\u3092\u6709\u52b9\u306b\u3059\u308b\u305f\u3081\u306b\u3001sudo systemctl restart nginx\u307e\u305f\u306fnginx -s reload\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066Nginx\u30b5\u30fc\u30d3\u30b9\u3092\u518d\u8d77\u52d5\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<p>\u30ef\u30fc\u30ab\u30fc \u30d7\u30ed\u30bb\u30b9\u3068\u63a5\u7d9a\u306e\u6570\u3092\u8abf\u6574\u3059\u308b\u3068\u3001Web \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u6700\u9069\u5316\u3067\u304d\u307e\u3059\u3002 Nginx\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3067\u306f\u3001worker_processes\u547d\u4ee4\u3092\u4f7f\u7528\u3057\u3066\u30ef\u30fc\u30ab\u30fc\u30d7\u30ed\u30bb\u30b9\u306e\u6570\u3092\u8a2d\u5b9a\u3057\u3001worker_cpu_affinity\u547d\u4ee4\u3092\u4f7f\u7528\u3057\u3066CPU\u30a2\u30d5\u30a3\u30cb\u30c6\u30a3\u3092\u6307\u5b9a\u3057\u3001worker_connections\u547d\u4ee4\u3092\u4f7f\u7528\u3057\u3066\u63a5\u7d9a\u6570\u3092\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u3002 \u30ef\u30fc\u30ab\u30fc\u30d7\u30ed\u30bb\u30b9\u3068\u63a5\u7d9a\u306e\u6570\u3092\u8abf\u6574\u3059\u308b\u3068\u304d\u306f\u3001\u30b7\u30b9\u30c6\u30e0\u30ea\u30bd\u30fc\u30b9\u3068Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5b9f\u969b\u306e\u30cb\u30fc\u30ba\u306b\u5fdc\u3058\u3066\u8abf\u6574\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002 \u30ef\u30fc\u30ab\u30fc\u30d7\u30ed\u30bb\u30b9\u3068\u63a5\u7d9a\u306e\u6570\u304c\u5c11\u306a\u3044\u3068\u3001\u30b7\u30b9\u30c6\u30e0\u30ea\u30bd\u30fc\u30b9\u3092\u7bc0\u7d04\u3067\u304d\u307e\u3059\u304c\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306b\u5f71\u97ff\u3092\u4e0e\u3048\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002 \u30ef\u30fc\u30ab\u30fc \u30d7\u30ed\u30bb\u30b9\u3068\u63a5\u7d9a\u306e\u6570\u304c\u591a\u3044\u307b\u3069\u3001Web \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30b9\u30eb\u30fc\u30d7\u30c3\u30c8\u306f\u5411\u4e0a\u3057\u307e\u3059\u304c\u3001\u3088\u308a\u591a\u304f\u306e\u30b7\u30b9\u30c6\u30e0 \u30ea\u30bd\u30fc\u30b9\u3092\u6d88\u8cbb\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002 \u3057\u305f\u304c\u3063\u3066\u3001\u30ef\u30fc\u30ab\u30fc\u30d7\u30ed\u30bb\u30b9\u3068\u63a5\u7d9a\u306e\u6570\u3092\u8abf\u6574\u3059\u308b\u3068\u304d\u306f\u3001\u30b7\u30b9\u30c6\u30e0\u30ea\u30bd\u30fc\u30b9\u3068Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5b9f\u969b\u306e\u30cb\u30fc\u30ba\u3092\u614e\u91cd\u306b\u8a55\u4fa1\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=2356\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"User\"\/><\/figure>\n\n\n\n<p>\u30ad\u30fc\u30d7\u30a2\u30e9\u30a4\u30d6\u63a5\u7d9a\u6700\u9069\u5316ChatGPT\u3092\u4f7f\u7528\u3057\u305f\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>\u30ad\u30fc\u30d7\u30a2\u30e9\u30a4\u30d6\u63a5\u7d9a\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001Web \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u6700\u9069\u5316\u3055\u308c\u3001TCP \u63a5\u7d9a\u306e\u78ba\u7acb\u3068\u7d42\u4e86\u306e\u30aa\u30fc\u30d0\u30fc\u30d8\u30c3\u30c9\u304c\u524a\u6e1b\u3055\u308c\u3001\u30c7\u30fc\u30bf\u8ee2\u9001\u52b9\u7387\u304c\u5411\u4e0a\u3057\u307e\u3059\u3002 \u30ad\u30fc\u30d7\u30a2\u30e9\u30a4\u30d6\u63a5\u7d9a\u3067\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u6700\u9069\u5316\u3059\u308b\u305f\u3081\u306e\u57fa\u672c\u7684\u306a\u624b\u9806\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u30ad\u30fc\u30d7\u30a2\u30e9\u30a4\u30d6\u63a5\u7d9a\u3092\u6709\u52b9\u306b\u3059\u308b: Nginx \u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u3067\u3001\u6b21\u306e\u69cb\u6210\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002 \u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc \u3053\u306e\u8a2d\u5b9a\u3067\u306f\u3001\u30ad\u30fc\u30d7\u30a2\u30e9\u30a4\u30d6\u63a5\u7d9a\u306e\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u671f\u9593\u3092\u8a2d\u5b9a\u3059\u308b keepalive_timeout\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3068\u3001\u30ad\u30fc\u30d7\u30a2\u30e9\u30a4\u30d6\u63a5\u7d9a\u3042\u305f\u308a\u306e\u8981\u6c42\u306e\u6700\u5927\u6570\u3092\u8a2d\u5b9a\u3059\u308b keepalive_requests \u30b3\u30de\u30f3\u30c9\u3002<code>keepalive_timeout 65; keepalive_requests 100;<\/code><\/li>\n\n\n\n<li>Nginx\u3068\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u671f\u9593\u3092\u8abf\u6574\u3059\u308b:\u63a5\u7d9a\u3092\u7dad\u6301\u3057\u3059\u304e\u3066\u591a\u304f\u306e\u30ea\u30bd\u30fc\u30b9\u3092\u4f7f\u7528\u3057\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u306b\u306f\u3001Nginx\u3068\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u671f\u9593\u3092\u8abf\u6574\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 Nginx\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306b\u3001\u6b21\u306e\u8a2d\u5b9a\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002 \u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc \u3053\u306e\u69cb\u6210\u3067\u306f\u3001\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6proxy_connect_timeout\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u63a5\u7d9a\u3059\u308b\u305f\u3081\u306e\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u671f\u9593\u3092\u8a2d\u5b9a\u3057\u3001proxy_send_timeout\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306f\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u30c7\u30fc\u30bf\u3092\u9001\u4fe1\u3059\u308b\u305f\u3081\u306e\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u671f\u9593\u3092\u8a2d\u5b9a\u3057\u3001proxy_read_timeout\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306f\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304b\u3089\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u53d6\u308b\u305f\u3081\u306e\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u671f\u9593\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<code>proxy_connect_timeout 30s; proxy_send_timeout 60s; proxy_read_timeout 60s;<\/code><\/li>\n\n\n\n<li>Nginx\u30b5\u30fc\u30d3\u30b9\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059:Nginx\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u3067\u5909\u66f4\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u65b0\u3057\u3044\u69cb\u6210\u3092\u6709\u52b9\u306b\u3059\u308b\u305f\u3081\u306b\u3001sudo systemctl restart nginx\u307e\u305f\u306fnginx -s reload\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066Nginx\u30b5\u30fc\u30d3\u30b9\u3092\u518d\u8d77\u52d5\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<p>\u30ad\u30fc\u30d7\u30a2\u30e9\u30a4\u30d6\u63a5\u7d9a\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001Web \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u6700\u9069\u5316\u3055\u308c\u3001TCP \u63a5\u7d9a\u306e\u78ba\u7acb\u3068\u7d42\u4e86\u306e\u30aa\u30fc\u30d0\u30fc\u30d8\u30c3\u30c9\u304c\u524a\u6e1b\u3055\u308c\u3001\u30c7\u30fc\u30bf\u8ee2\u9001\u52b9\u7387\u304c\u5411\u4e0a\u3057\u307e\u3059\u3002 Nginx\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3067\u306f\u3001keepalive_timeout\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3092\u4f7f\u7528\u3057\u3066\u30ad\u30fc\u30d7\u30a2\u30e9\u30a4\u30d6\u63a5\u7d9a\u306e\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u3092\u8a2d\u5b9a\u3057\u3001keepalive_requests\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3092\u4f7f\u7528\u3057\u3066\u30ad\u30fc\u30d7\u30a2\u30e9\u30a4\u30d6\u63a5\u7d9a\u3042\u305f\u308a\u306e\u8981\u6c42\u306e\u6700\u5927\u6570\u3092\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u3002 \u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u671f\u9593\u3092\u8abf\u6574\u3059\u308b\u3068\u304d\u306f\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5b9f\u969b\u306e\u30cb\u30fc\u30ba\u306b\u5fdc\u3058\u3066\u8abf\u6574\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002 \u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u671f\u9593\u3092\u77ed\u304f\u3059\u308b\u3068\u3001Web \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306f\u5411\u4e0a\u3057\u307e\u3059\u304c\u3001\u63a5\u7d9a\u306e\u30aa\u30fc\u30d0\u30fc\u30d8\u30c3\u30c9\u304c\u5897\u52a0\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002 \u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u671f\u9593\u3092\u9577\u304f\u3059\u308b\u3068\u3001\u63a5\u7d9a\u306e\u30aa\u30fc\u30d0\u30fc\u30d8\u30c3\u30c9\u3092\u6e1b\u3089\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u304c\u3001Web \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u4f4e\u4e0b\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002 \u3057\u305f\u304c\u3063\u3066\u3001\u30ad\u30fc\u30d7\u30a2\u30e9\u30a4\u30d6\u63a5\u7d9a\u3067\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u6700\u9069\u5316\u3059\u308b\u5834\u5408\u306f\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5b9f\u969b\u306e\u30cb\u30fc\u30ba\u3092\u614e\u91cd\u306b\u8a55\u4fa1\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=2356\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"User\"\/><\/figure>\n\n\n\n<p>Nginx\u30ed\u30b0\u7ba1\u7406\u30ed\u30b0\u306e\u5f62\u5f0f\u3068\u30ed\u30b0\u30ec\u30d9\u30eb\u3092\u8a73\u7d30\u306b\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044ChatGPT<\/p>\n\n\n\n<p>NGINX\u30ed\u30b0\u7ba1\u7406\u306f\u3001\u5206\u6790\u3068\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u305f\u3081\u306bWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u8981\u6c42\u3068\u5fdc\u7b54\u306e\u60c5\u5831\u3092\u8a18\u9332\u3067\u304d\u307e\u3059\u3002 Nginx\u30ed\u30b0\u7ba1\u7406\u306e2\u3064\u306e\u57fa\u672c\u7684\u306a\u6982\u5ff5\u306f\u3001\u30ed\u30b0\u5f62\u5f0f\u3068\u30ed\u30b0\u30ec\u30d9\u30eb\u3067\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u30ed\u30b0\u5f62\u5f0f: Nginx\u30ed\u30b0\u5f62\u5f0f\u306f\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u8981\u6c42\u3068\u5fdc\u7b54\u306e\u60c5\u5831\u304c\u8a18\u9332\u3055\u308c\u308b\u5f62\u5f0f\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002 Nginx\u306f\u3001combin\u3084main\u306a\u3069\u3001\u3044\u304f\u3064\u304b\u306e\u4e8b\u524d\u5b9a\u7fa9\u3055\u308c\u305f\u30ed\u30b0\u5f62\u5f0f\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002 \u5b9a\u7fa9\u6e08\u307f\u306e\u30ed\u30b0\u5f62\u5f0f\u306b\u306f\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8 IP \u30a2\u30c9\u30ec\u30b9\u3001\u8981\u6c42 URL\u3001\u5fdc\u7b54\u72b6\u614b\u30b3\u30fc\u30c9\u3001\u5fdc\u7b54\u6642\u9593\u306a\u3069\u3001\u4e00\u822c\u7684\u306a\u8981\u6c42\u3068\u5fdc\u7b54\u306e\u60c5\u5831\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002 \u4e8b\u524d\u5b9a\u7fa9\u3055\u308c\u305f\u30ed\u30b0\u5f62\u5f0f\u306b\u52a0\u3048\u3066\u3001Nginx\u306f\u30ab\u30b9\u30bf\u30e0\u30ed\u30b0\u5f62\u5f0f\u3082\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002 Nginx\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u3067\u306f\u3001log_format\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3092\u4f7f\u7528\u3057\u3066\u3001\u30ab\u30b9\u30bf\u30e0\u30ed\u30b0\u5f62\u5f0f\u3092\u5b9a\u7fa9\u3067\u304d\u307e\u3059\u3002 \u3053\u306e\u69cb\u6210\u3067\u306f\u3001\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6log_format\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8 IP \u30a2\u30c9\u30ec\u30b9\u3001\u30e6\u30fc\u30b6\u30fc\u540d\u3001\u8981\u6c42\u6642\u523b\u3001\u8981\u6c42 URL\u3001\u5fdc\u7b54\u72b6\u614b\u30b3\u30fc\u30c9\u3001\u5fdc\u7b54\u672c\u6587\u306e\u30b5\u30a4\u30ba\u3001\u30bd\u30fc\u30b9 URL\u3001\u30e6\u30fc\u30b6\u30fc \u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306a\u3069\u306e\u60c5\u5831\u3092\u542b\u3080 mylog \u3068\u547c\u3070\u308c\u308b\u30ab\u30b9\u30bf\u30e0 \u30ed\u30b0\u5f62\u5f0f\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002<code>log_format mylog '$remote_addr - $remote_user [$time_local] ' '\"$request\" $status $body_bytes_sent ' '\"$http_referer\" \"$http_user_agent\"';<\/code><\/li>\n\n\n\n<li>\u30ed\u30b0\u30ec\u30d9\u30eb: Nginx\u30ed\u30b0\u30ec\u30d9\u30eb\u306f\u3001\u30ed\u30b0\u306e\u8a73\u7d30\u5ea6\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002 Nginx\u306f\u3001\u30c7\u30d0\u30c3\u30b0\u3001\u60c5\u5831\u3001\u901a\u77e5\u3001\u8b66\u544a\u3001\u30a8\u30e9\u30fc\u306a\u3069\u306e\u8907\u6570\u306e\u30ed\u30b0\u30ec\u30d9\u30eb\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002 \u30ed\u30b0\u30ec\u30d9\u30eb\u304c\u7570\u306a\u308c\u3070\u60c5\u5831\u3082\u7570\u306a\u308a\u3001\u30ec\u30d9\u30eb\u304c\u9ad8\u3044\u307b\u3069\u3001\u8a18\u9332\u3055\u308c\u308b\u60c5\u5831\u306e\u8a73\u7d30\u5ea6\u304c\u9ad8\u304f\u306a\u308a\u307e\u3059\u3002 Nginx\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u3067\u306f\u3001error_log\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3092\u4f7f\u7528\u3057\u3066\u30ed\u30b0\u30ec\u30d9\u30eb\u3092\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u3002 \u3053\u306e\u69cb\u6210\u3067\u306f\u3001\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6error_log Nginx\u30a8\u30e9\u30fc\u30ed\u30b0\u306e\u30b9\u30c8\u30ec\u30fc\u30b8\u30d1\u30b9\u3068\u30ed\u30b0\u30ec\u30d9\u30eb\u3092\u6307\u5b9a\u3057\u3001\u30ec\u30d9\u30eb\u306fwarn\u3067\u3042\u308a\u3001\u8b66\u544a\u3068\u30a8\u30e9\u30fc\u60c5\u5831\u306e\u307f\u304c\u30ed\u30b0\u306b\u8a18\u9332\u3055\u308c\u308b\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002<code>error_log \/var\/log\/nginx\/error.log warn;<\/code><\/li>\n<\/ol>\n\n\n\n<p>NGINX\u30ed\u30b0\u7ba1\u7406\u306f\u3001\u5206\u6790\u3068\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u305f\u3081\u306bWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u8981\u6c42\u3068\u5fdc\u7b54\u306e\u60c5\u5831\u3092\u8a18\u9332\u3067\u304d\u307e\u3059\u3002 NGINX \u30ed\u30b0\u7ba1\u7406\u306b\u306f\u3001\u30ed\u30b0\u5f62\u5f0f\u3068\u30ed\u30b0 \u30ec\u30d9\u30eb\u306e 2 \u3064\u306e\u57fa\u672c\u6982\u5ff5\u304c\u3042\u308a\u307e\u3059\u3002 Nginx\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3067\u306f\u3001log_format\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3092\u4f7f\u7528\u3057\u3066\u30ab\u30b9\u30bf\u30e0\u30ed\u30b0\u5f62\u5f0f\u3092\u5b9a\u7fa9\u3057\u3001error_log\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3092\u4f7f\u7528\u3057\u3066\u30ed\u30b0\u30ec\u30d9\u30eb\u3092\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u3002 \u9069\u5207\u306a\u30ed\u30b0\u5f62\u5f0f\u3068\u30ed\u30b0\u30ec\u30d9\u30eb\u3092\u9078\u629e\u3059\u308b\u3068\u3001Nginx\u30ed\u30b0\u7ba1\u7406\u306e\u52b9\u7387\u3068\u7cbe\u5ea6\u304c\u5411\u4e0a\u3059\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002 \u30ed\u30b0 \u30ec\u30d9\u30eb\u3092\u4f4e\u304f\u3059\u308b\u3068\u3001\u30ed\u30b0\u8a18\u9332\u306e\u30aa\u30fc\u30d0\u30fc\u30d8\u30c3\u30c9\u3092\u524a\u6e1b\u3067\u304d\u307e\u3059\u304c\u3001\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u306b\u5f71\u97ff\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002 \u30ed\u30b0 \u30ec\u30d9\u30eb\u3092\u9ad8\u304f\u3059\u308b\u3068\u3001\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u7cbe\u5ea6\u306f\u5411\u4e0a\u3057\u307e\u3059\u304c\u3001\u30ed\u30b0\u8a18\u9332\u306e\u30aa\u30fc\u30d0\u30fc\u30d8\u30c3\u30c9\u304c\u5897\u52a0\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002 \u3057\u305f\u304c\u3063\u3066\u3001Nginx\u30ed\u30b0\u3092\u7ba1\u7406\u3059\u308b\u3068\u304d\u306f\u3001\u5b9f\u969b\u306e\u8981\u4ef6\u306b\u5f93\u3063\u3066\u69cb\u6210\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=2356\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"User\"\/><\/figure>\n\n\n\n<p>Nginx\u30ed\u30b0\u306e\u8a73\u7d30\u30ab\u30b9\u30bf\u30e0\u30ed\u30b0\u5f62\u5f0fChatGPT\u3092\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>NGINX\u30ed\u30b0\u306e\u30ab\u30b9\u30bf\u30e0\u30ed\u30b0\u5f62\u5f0f\u3067\u306f\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5b9f\u969b\u306e\u30cb\u30fc\u30ba\u306b\u5fdc\u3058\u3066\u3001\u3055\u307e\u3056\u307e\u306a\u8981\u6c42\u3068\u5fdc\u7b54\u306e\u60c5\u5831\u3092\u8a18\u9332\u3067\u304d\u307e\u3059\u3002 \u30ab\u30b9\u30bf\u30e0\u30ed\u30b0\u5f62\u5f0f\u3067\u306f\u3001$remote_addr\u3001$request_uri\u3001$http_user_agent\u306a\u3069\u306eNginx\u5909\u6570\u3092\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002 \u30ed\u30b0\u5f62\u5f0f\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3059\u308b\u57fa\u672c\u7684\u306a\u624b\u9806\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>log_format\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3092\u4f7f\u7528\u3057\u3066\u30ed\u30b0\u5f62\u5f0f\u3092\u5b9a\u7fa9\u3059\u308b:Nginx\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3067\u3001log_format\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3092\u4f7f\u7528\u3057\u3066\u30ed\u30b0\u5f62\u5f0f\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002 \u305f\u3068\u3048\u3070\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8 IP \u30a2\u30c9\u30ec\u30b9\u3001\u8981\u6c42\u6642\u523b\u3001\u8981\u6c42 URL\u3001\u5fdc\u7b54\u30b9\u30c6\u30fc\u30bf\u30b9 \u30b3\u30fc\u30c9\u3001\u5fdc\u7b54\u672c\u6587\u306e\u30b5\u30a4\u30ba\u3001\u30e6\u30fc\u30b6\u30fc \u30a8\u30fc\u30b8\u30a7\u30f3\u30c8: swiftCopy \u30b3\u30fc\u30c9<code>log_format mylog '$remote_addr - $remote_user [$time_local] ' '\"$request\" $status $body_bytes_sent ' '\"$http_referer\" \"$http_user_agent\"';<\/code><\/li>\n\n\n\n<li>access_log\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3067\u30ab\u30b9\u30bf\u30e0\u30ed\u30b0\u5f62\u5f0f\u3092\u4f7f\u7528\u3059\u308b:Nginx\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3067\u3001access_log\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3092\u4f7f\u7528\u3057\u3066\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u306e\u4fdd\u5b58\u30d1\u30b9\u3068\u30ed\u30b0\u5f62\u5f0f\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002 \u305f\u3068\u3048\u3070\u3001mylog \u3068\u547c\u3070\u308c\u308b\u30ab\u30b9\u30bf\u30e0\u30ed\u30b0\u5f62\u5f0f\u3092\u4f7f\u7528\u3057\u3066\u3001\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u3092 \/var\/log\/nginx\/access.log \u306b\u4fdd\u5b58\u3057\u307e\u3059\u3002<code>access_log \/var\/log\/nginx\/access.log mylog;<\/code><\/li>\n<\/ol>\n\n\n\n<p>\u30ab\u30b9\u30bf\u30e0\u30ed\u30b0\u5f62\u5f0f\u3092\u5b9a\u7fa9\u3059\u308b\u5834\u5408\u3001Nginx\u306e\u5909\u6570\u3092\u4f7f\u7528\u3057\u3066\u30ea\u30af\u30a8\u30b9\u30c8\u3068\u30ec\u30b9\u30dd\u30f3\u30b9\u306e\u60c5\u5831\u3092\u30ed\u30b0\u306b\u8a18\u9332\u3067\u304d\u307e\u3059\u3002 Nginx\u306e\u5909\u6570\u306b\u306f\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u95a2\u9023\u306e\u5909\u6570($request_uri\u3084$http_referer\u306a\u3069)\u3001\u63a5\u7d9a\u95a2\u9023\u306e\u5909\u6570($remote_addr\u3084$remote_port\u306a\u3069)\u3001\u5fdc\u7b54\u95a2\u9023\u306e\u5909\u6570($status\u3084$body bytes_sent\u306a\u3069)\u3001\u304a\u3088\u3073\u6642\u9593\u4f9d\u5b58\u5909\u6570($time_local\u3084$request_time\u306a\u3069)\u304c\u542b\u307e\u308c\u307e\u3059\u3002 \u30ab\u30b9\u30bf\u30e0 \u30ed\u30b0\u5f62\u5f0f\u3092\u4f7f\u7528\u3057\u3066\u3001\u5206\u6790\u3068\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u305f\u3081\u306b\u3001\u3088\u308a\u8a73\u7d30\u306a\u8981\u6c42\u3068\u5fdc\u7b54\u306e\u60c5\u5831\u3092\u8a18\u9332\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>Nginx\u30ed\u30b0\u7ba1\u7406\u3092\u884c\u3046\u5834\u5408\u306f\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5b9f\u969b\u306e\u30cb\u30fc\u30ba\u306b\u5fdc\u3058\u3066\u69cb\u6210\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002 \u9069\u5207\u306a\u30ed\u30b0\u5f62\u5f0f\u3068\u30ed\u30b0\u30ec\u30d9\u30eb\u3092\u9078\u629e\u3059\u308b\u3068\u3001Nginx\u30ed\u30b0\u7ba1\u7406\u306e\u52b9\u7387\u3068\u7cbe\u5ea6\u3092\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=2356\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"User\"\/><\/figure>\n\n\n\n<p>Nginx\u30ed\u30b0\u5206\u6790\u30c4\u30fc\u30ebChatGPT\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>NGINX\u30ed\u30b0\u5206\u6790\u30c4\u30fc\u30eb\u306f\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30a2\u30af\u30bb\u30b9\u3068\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u30dc\u30c8\u30eb\u30cd\u30c3\u30af\u3092\u7406\u89e3\u3059\u308b\u305f\u3081\u306b\u3001Nginx\u30ed\u30b0\u3092\u5206\u6790\u304a\u3088\u3073\u30ab\u30a6\u30f3\u30c8\u3067\u304d\u307e\u3059\u3002 \u4ee5\u4e0b\u306f\u3001\u4e00\u822c\u7684\u306b\u4f7f\u7528\u3055\u308c\u308bNginx\u30ed\u30b0\u5206\u6790\u30c4\u30fc\u30eb\u3067\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>GoAccess:GoAccess\u306f\u3001Nginx\u30ed\u30b0\u306e\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u5206\u6790\u3068\u7d71\u8a08\u3092\u5b9f\u884c\u3057\u3001\u5206\u6790\u7d50\u679c\u3092HTML\u3001JSON\u3001\u304a\u3088\u3073CSV\u5f62\u5f0f\u3067\u8868\u793a\u3067\u304d\u308b\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306e\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30c4\u30fc\u30eb\u3067\u3059\u3002 GoAccess \u306f\u3001Nginx\u3001Apache\u3001Amazon S3\u3001CloudFront \u306a\u3069\u3001\u3055\u307e\u3056\u307e\u306a\u30ed\u30b0\u5f62\u5f0f\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002 GoAccess\u306f\u3001\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3001\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3001IP\u30a2\u30c9\u30ec\u30b9\u3001URL\u3001\u5fdc\u7b54\u30b3\u30fc\u30c9\u3001\u5fdc\u7b54\u6642\u9593\u306a\u3069\u306e\u60c5\u5831\u3092\u5206\u6790\u3067\u304d\u3001\u30ab\u30b9\u30bf\u30e0\u30ed\u30b0\u5f62\u5f0f\u3082\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002<\/li>\n\n\n\n<li>AWStats:AWStats\u306f\u3001Nginx\u3001Apache\u3001IIS\u3001WebLogic\u306a\u3069\u306e\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u306e\u30ed\u30b0\u3092\u5206\u6790\u304a\u3088\u3073\u30ab\u30a6\u30f3\u30c8\u3059\u308b\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306e\u30a6\u30a7\u30d6\u30ed\u30b0\u5206\u6790\u30c4\u30fc\u30eb\u3067\u3059\u3002 AWS\u306f\u3001\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3001\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3001IP\u30a2\u30c9\u30ec\u30b9\u3001URL\u3001\u30ec\u30b9\u30dd\u30f3\u30b9\u30b3\u30fc\u30c9\u3001\u30ec\u30b9\u30dd\u30f3\u30b9\u30bf\u30a4\u30e0\u306a\u3069\u306e\u60c5\u5831\u3092\u5206\u6790\u3067\u304d\u3001\u30ab\u30b9\u30bf\u30e0\u30ec\u30dd\u30fc\u30c8\u3084\u30c1\u30e3\u30fc\u30c8\u3082\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002<\/li>\n\n\n\n<li>ELK\u30b9\u30bf\u30c3\u30af:ELK\u30b9\u30bf\u30c3\u30af\u306f\u3001Elasticsearch\u3001Logstash\u3001\u304a\u3088\u3073Kibana\u306b\u57fa\u3065\u304f\u30ed\u30b0\u7ba1\u7406\u304a\u3088\u3073\u5206\u6790\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3067\u3042\u308a\u3001Nginx\u30ed\u30b0\u306e\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u5206\u6790\u3068\u8996\u899a\u5316\u3092\u53ef\u80fd\u306b\u3057\u307e\u3059\u3002 Logstash\u306fNginx\u30ed\u30b0\u3092\u53ce\u96c6\u3057\u3066\u89e3\u6790\u3067\u304d\u3001Elasticsearch\u306f\u30ed\u30b0\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3057\u3066\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u4f5c\u6210\u3067\u304d\u3001Kibana\u306f\u30ed\u30b0\u30c7\u30fc\u30bf\u3068\u691c\u7d22\u30af\u30a8\u30ea\u3092\u8996\u899a\u5316\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30b0\u30ec\u30a4\u30ed\u30b0:\u30b0\u30ec\u30a4\u30ed\u30b0\u306f\u3001Elasticsearch\u306b\u57fa\u3065\u304f\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306e\u30ed\u30b0\u7ba1\u7406\u304a\u3088\u3073\u5206\u6790\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3067\u3042\u308a\u3001Nginx\u30ed\u30b0\u306e\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u5206\u6790\u3068\u8996\u899a\u5316\u3092\u53ef\u80fd\u306b\u3057\u307e\u3059\u3002 Graylog\u306f\u3001Nginx\u3001Apache\u3001Syslog\u3001GELF\u306a\u3069\u3001\u3055\u307e\u3056\u307e\u306a\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u3068\u30ed\u30b0\u5f62\u5f0f\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002 Graylog\u306f\u3001\u30ed\u30b0\u30c7\u30fc\u30bf\u306e\u691c\u7d22\u3001\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3001\u30ab\u30a6\u30f3\u30c8\u3001\u30a2\u30e9\u30fc\u30c8\u3092\u5b9f\u884c\u3067\u304d\u3001\u30ab\u30b9\u30bf\u30e0\u30ec\u30dd\u30fc\u30c8\u3068\u30c1\u30e3\u30fc\u30c8\u3082\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<p>\u4e0a\u8a18\u306f\u4e00\u822c\u7684\u306b\u4f7f\u7528\u3055\u308c\u308bNginx\u30ed\u30b0\u5206\u6790\u30c4\u30fc\u30eb\u3067\u3042\u308a\u3001\u30e6\u30fc\u30b6\u30fc\u304cWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30a2\u30af\u30bb\u30b9\u3068\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u30dc\u30c8\u30eb\u30cd\u30c3\u30af\u3092\u3088\u308a\u3088\u304f\u7406\u89e3\u3057\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5b89\u5b9a\u6027\u3068\u4fe1\u983c\u6027\u3092\u5411\u4e0a\u3055\u305b\u308b\u306e\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002 \u9069\u5207\u306aNginx\u30ed\u30b0\u5206\u6790\u30c4\u30fc\u30eb\u306e\u9078\u629e\u306f\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5b9f\u969b\u306e\u30cb\u30fc\u30ba\u3068\u30c7\u30fc\u30bf\u91cf\u306b\u57fa\u3065\u3044\u3066\u8a55\u4fa1\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=2356\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"User\"\/><\/figure>\n\n\n\n<p>Nginx\u306e\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u3068ChatGPT\u306e\u89e3\u6c7a\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>Nginx\u306e\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u3068\u89e3\u6c7a\u306f\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u958b\u767a\u3068\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u306e\u975e\u5e38\u306b\u91cd\u8981\u306a\u90e8\u5206\u3067\u3042\u308a\u3001Nginx\u306e\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u3068\u89e3\u6c7a\u306b\u95a2\u3059\u308b\u4e00\u822c\u7684\u306a\u554f\u984c\u3068\u89e3\u6c7a\u7b56\u3092\u6b21\u306b\u793a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Nginx\u304c\u8d77\u52d5\u3057\u306a\u3044:Nginx\u304c\u8d77\u52d5\u3057\u306a\u3044\u5834\u5408\u306f\u3001\u307e\u305aNginx\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u304c\u6b63\u3057\u3044\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3057\u3066\u304b\u3089\u3001Nginx\u306e\u30a8\u30e9\u30fc\u30ed\u30b0\u3067\u8a73\u7d30\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002 \u4e00\u822c\u7684\u306a\u539f\u56e0\u306b\u306f\u3001\u30dd\u30fc\u30c8\u306e\u5360\u6709\u3001\u4e0d\u5341\u5206\u306a\u30a2\u30af\u30bb\u30b9\u8a31\u53ef\u3001\u8aa4\u3063\u305f\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u306a\u3069\u304c\u3042\u308a\u307e\u3059\u3002 \u56de\u907f\u7b56\u306b\u306f\u3001\u30dd\u30fc\u30c8\u306e\u5909\u66f4\u3001\u30a2\u30af\u30bb\u30b9\u8a31\u53ef\u306e\u5909\u66f4\u3001\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u306e\u4fee\u5fa9\u306a\u3069\u304c\u542b\u307e\u308c\u307e\u3059\u3002<\/li>\n\n\n\n<li>Nginx\u304c\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u5fdc\u7b54\u3067\u304d\u306a\u3044:Nginx\u304c\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u5fdc\u7b54\u3067\u304d\u306a\u3044\u5834\u5408\u306f\u3001\u6700\u521d\u306bNginx\u306e\u64cd\u4f5c\u30b9\u30c6\u30fc\u30bf\u30b9\u3068\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u30dc\u30c8\u30eb\u30cd\u30c3\u30af\u3092\u78ba\u8a8d\u3057\u3066\u304b\u3089\u3001Nginx\u306e\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u3068\u30a8\u30e9\u30fc\u30ed\u30b0\u3092\u8868\u793a\u3057\u3066\u8a73\u7d30\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002 \u4e00\u822c\u7684\u306a\u539f\u56e0\u306b\u306f\u3001\u63a5\u7d9a\u6570\u306e\u591a\u3055\u3001\u904e\u5ea6\u306e\u8ca0\u8377\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u969c\u5bb3\u306a\u3069\u304c\u3042\u308a\u307e\u3059\u3002 \u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u306b\u306f\u3001Nginx\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u6700\u9069\u5316\u3001\u8ca0\u8377\u5206\u6563\u30dd\u30ea\u30b7\u30fc\u306e\u8abf\u6574\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u969c\u5bb3\u306e\u4fee\u6b63\u304c\u542b\u307e\u308c\u307e\u3059\u3002<\/li>\n\n\n\n<li>Nginx\u304c\u30a8\u30e9\u30fc\u30b3\u30fc\u30c9\u3092\u8fd4\u3059:Nginx\u304c\u30a8\u30e9\u30fc\u30b3\u30fc\u30c9\u3092\u8fd4\u3059\u5834\u5408\u306f\u3001\u307e\u305aNginx\u306e\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u3068\u30a8\u30e9\u30fc\u30ed\u30b0\u3067\u8a73\u7d30\u3092\u78ba\u8a8d\u3057\u3066\u304b\u3089\u3001\u5bfe\u5fdc\u3059\u308b\u30a8\u30e9\u30fc\u30b3\u30fc\u30c9\u306e\u610f\u5473\u3068\u89e3\u6c7a\u7b56\u3092\u898b\u3064\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u4e00\u822c\u7684\u306a\u30a8\u30e9\u30fc\u30b3\u30fc\u30c9\u306b\u306f\u3001400\u3001401\u3001403\u3001404\u3001500\u306a\u3069\u304c\u3042\u308a\u307e\u3059\u3002 \u89e3\u6c7a\u7b56\u306b\u306f\u3001URL\u30a8\u30e9\u30fc\u306e\u4fee\u6b63\u3001\u30a2\u30af\u30bb\u30b9\u8a31\u53ef\u306e\u5909\u66f4\u3001\u30b3\u30fc\u30c9\u30ed\u30b8\u30c3\u30af\u306e\u6700\u9069\u5316\u306a\u3069\u304c\u542b\u307e\u308c\u307e\u3059\u3002<\/li>\n\n\n\n<li>Nginx\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u8106\u5f31\u6027:Nginx\u306b\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u8106\u5f31\u6027\u304c\u3042\u308b\u5834\u5408\u306f\u3001\u307e\u305aNginx\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u60c5\u5831\u3068\u4fee\u6b63\u3092\u78ba\u8a8d\u3057\u3066\u304b\u3089\u3001\u3067\u304d\u308b\u3060\u3051\u65e9\u304fNginx\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u66f4\u65b0\u3057\u3066\u8106\u5f31\u6027\u3092\u4fee\u6b63\u3067\u304d\u307e\u3059\u3002 \u4e00\u822c\u7684\u306a\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u8106\u5f31\u6027\u306b\u306f\u3001\u30ea\u30e2\u30fc\u30c8\u3067\u30b3\u30fc\u30c9\u304c\u5b9f\u884c\u3055\u308c\u308b\u3001\u30b5\u30fc\u30d3\u30b9\u62d2\u5426\u653b\u6483\u3001\u30d5\u30a1\u30a4\u30eb \u30a4\u30f3\u30af\u30eb\u30fc\u30c9\u306e\u8106\u5f31\u6027\u306a\u3069\u304c\u3042\u308a\u307e\u3059\u3002 \u89e3\u6c7a\u7b56\u306b\u306f\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u66f4\u65b0\u3001\u4e0d\u8981\u306a\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u96fb\u6e90\u30aa\u30d5\u3001\u30a2\u30af\u30bb\u30b9\u5236\u5fa1\u306e\u5f37\u5316\u306a\u3069\u304c\u542b\u307e\u308c\u307e\u3059\u3002<\/li>\n\n\n\n<li>Nginx\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u554f\u984c:Nginx\u306b\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u554f\u984c\u304c\u3042\u308b\u5834\u5408\u306f\u3001\u6700\u521d\u306bNginx\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u3068\u5b9f\u884c\u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u78ba\u8a8d\u3057\u3066\u304b\u3089\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30c6\u30b9\u30c8\u30c4\u30fc\u30eb\u3092\u4f7f\u7528\u3057\u3066\u30c6\u30b9\u30c8\u3068\u6700\u9069\u5316\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u4e00\u822c\u7684\u306a\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u554f\u984c\u306b\u306f\u3001\u9577\u3044\u5fdc\u7b54\u6642\u9593\u3001\u4e0d\u5341\u5206\u306a\u30b9\u30eb\u30fc\u30d7\u30c3\u30c8\u3001\u9ad8\u3044 CPU \u8ca0\u8377\u306a\u3069\u304c\u3042\u308a\u307e\u3059\u3002 \u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u306b\u306f\u3001\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u306e\u6700\u9069\u5316\u3001\u30ad\u30e3\u30c3\u30b7\u30e5 \u30dd\u30ea\u30b7\u30fc\u306e\u8abf\u6574\u3001\u52b9\u7387\u7684\u306a\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306e\u4f7f\u7528\u306a\u3069\u304c\u542b\u307e\u308c\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<p>Nginx\u306e\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u3068\u89e3\u6c7a\u3092\u884c\u3046\u5834\u5408\u306f\u3001\u5b9f\u969b\u306e\u72b6\u6cc1\u306b\u5fdc\u3058\u3066\u5206\u6790\u304a\u3088\u3073\u51e6\u7406\u3057\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5b89\u5b9a\u6027\u3068\u4fe1\u983c\u6027\u3092\u5411\u4e0a\u3055\u305b\u308b\u305f\u3081\u306b\u9069\u5207\u306a\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u3092\u9078\u629e\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=2356\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"User\"\/><\/figure>\n\n\n\n<p>Nginx\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u304a\u3088\u3073\u76e3\u8996\u30c4\u30fc\u30ebChatGPT\u3092\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>Nginx\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u3068\u76e3\u8996\u306f\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u958b\u767a\u3068\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u306e\u975e\u5e38\u306b\u91cd\u8981\u306a\u90e8\u5206\u3067\u3042\u308a\u3001Nginx\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u3068\u76e3\u8996\u306b\u95a2\u3059\u308b\u4e00\u822c\u7684\u306a\u30d2\u30f3\u30c8\u3068\u30c4\u30fc\u30eb\u3092\u3044\u304f\u3064\u304b\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u30ef\u30fc\u30ab\u30fc\u30d7\u30ed\u30bb\u30b9\u3068\u63a5\u7d9a\u306e\u6570\u3092\u8abf\u6574\u3059\u308b:Nginx\u306f\u3001\u30ef\u30fc\u30ab\u30fc\u30d7\u30ed\u30bb\u30b9\u3068\u63a5\u7d9a\u306e\u6570\u3092\u8abf\u6574\u3059\u308b\u3053\u3068\u3067\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u6700\u9069\u5316\u3067\u304d\u307e\u3059\u3002 \u30b5\u30fc\u30d0\u30fc\u306eCPU\u3068\u30e1\u30e2\u30ea\u30ea\u30bd\u30fc\u30b9\u306b\u5fdc\u3058\u3066\u8a2d\u5b9a\u3057\u3066\u3001Nginx\u306e\u540c\u6642\u5b9f\u884c\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3068\u5fdc\u7b54\u6027\u3092\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li>gzip\u5727\u7e2e\u3092\u6709\u52b9\u306b\u3059\u308b:Nginx\u306f\u3001gzip\u5727\u7e2e\u3092\u6709\u52b9\u306b\u3057\u3066Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u3067\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u7d4c\u7531\u3067\u8ee2\u9001\u3055\u308c\u308b\u30c7\u30fc\u30bf\u306e\u91cf\u3092\u6e1b\u3089\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 gzip\u5727\u7e2e\u306e\u30ec\u30d9\u30eb\u3068\u30bf\u30a4\u30d7\u306f\u3001\u3055\u307e\u3056\u307e\u306a\u30cb\u30fc\u30ba\u3092\u6e80\u305f\u3059\u305f\u3081\u306bNginx\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3067\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30ad\u30fc\u30d7\u30a2\u30e9\u30a4\u30d6\u63a5\u7d9a\u306b\u3088\u308b\u6700\u9069\u5316:Nginx\u306f\u3001\u30ad\u30fc\u30d7\u30a2\u30e9\u30a4\u30d6\u63a5\u7d9a\u3092\u4f7f\u7528\u3057\u3066\u78ba\u7acb\u304a\u3088\u3073\u7d42\u4e86\u3059\u308bTCP\u63a5\u7d9a\u306e\u6570\u3092\u6e1b\u3089\u3059\u3053\u3068\u306b\u3088\u308a\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u3068\u30ad\u30fc\u30d7\u30a2\u30e9\u30a4\u30d6\u63a5\u7d9a\u306e\u6570\u306f\u3001\u3055\u307e\u3056\u307e\u306a\u540c\u6642\u5b9f\u884c\u30b7\u30ca\u30ea\u30aa\u306b\u5bfe\u5fdc\u3059\u308b\u305f\u3081\u306b\u3001Nginx\u306e\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u3067\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u9759\u7684\u30d5\u30a1\u30a4\u30eb\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u69cb\u6210\u3059\u308b:Nginx\u306f\u3001\u9759\u7684\u30d5\u30a1\u30a4\u30eb\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u69cb\u6210\u3057\u3066Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u306b\u3088\u308a\u3001\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u30b5\u30fc\u30d0\u30fc\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u6e1b\u3089\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u9759\u7684\u30d5\u30a1\u30a4\u30eb\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u30a8\u30fc\u30b8\u30f3\u30b0\u3068\u30b5\u30a4\u30ba\u306f\u3001\u3055\u307e\u3056\u307e\u306a\u30cb\u30fc\u30ba\u3092\u6e80\u305f\u3059\u305f\u3081\u306bNginx\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3067\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u76e3\u8996\u30c4\u30fc\u30eb\u306e\u4f7f\u7528:Nginx\u306f\u3001\u76e3\u8996\u30c4\u30fc\u30eb\u3092\u4f7f\u7528\u3057\u3066\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u3067\u76e3\u8996\u304a\u3088\u3073\u5206\u6790\u3067\u304d\u307e\u3059\u3002 \u4e00\u822c\u7684\u306a\u76e3\u8996\u30c4\u30fc\u30eb\u306b\u306f\u3001Zabbix\u3001Nagios\u3001Grafana\u306a\u3069\u304c\u3042\u308a\u3001Nginx\u306e\u63a5\u7d9a\u6570\u3001\u30b9\u30eb\u30fc\u30d7\u30c3\u30c8\u3001\u5fdc\u7b54\u6642\u9593\u3001\u305d\u306e\u4ed6\u306e\u30e1\u30c8\u30ea\u30c3\u30af\u3001\u304a\u3088\u3073\u30b7\u30b9\u30c6\u30e0\u306eCPU\u3001\u30e1\u30e2\u30ea\u3001\u30c7\u30a3\u30b9\u30af\u30ea\u30bd\u30fc\u30b9\u306e\u4f7f\u7528\u72b6\u6cc1\u3092\u76e3\u8996\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<p>Nginx\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u3068\u76e3\u8996\u3092\u5b9f\u884c\u3059\u308b\u5834\u5408\u3001\u5b9f\u969b\u306e\u72b6\u6cc1\u306b\u5fdc\u3058\u3066\u5206\u6790\u304a\u3088\u3073\u51e6\u7406\u3057\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5b89\u5b9a\u6027\u3068\u4fe1\u983c\u6027\u3092\u5411\u4e0a\u3055\u305b\u308b\u305f\u3081\u306e\u9069\u5207\u306a\u624b\u6cd5\u3068\u30c4\u30fc\u30eb\u3092\u9078\u629e\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002 \u540c\u6642\u306b\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u52b9\u7387\u7684\u306a\u904b\u7528\u3092\u4fdd\u8a3c\u3059\u308b\u305f\u3081\u306b\u3001\u5b9a\u671f\u7684\u306a\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30c6\u30b9\u30c8\u3068\u6700\u9069\u5316\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>IT\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306e\u30d3\u30c7\u30aa\u3092\u3084\u308a\u305f\u3044\u306e\u3067 &hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_mi_skip_tracking":false,"footnotes":""},"categories":[23],"tags":[],"class_list":["post-2443","post","type-post","status-publish","format-standard","hentry","category-material"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/edu.ujhb.org\/index.php?rest_route=\/wp\/v2\/posts\/2443","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/edu.ujhb.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/edu.ujhb.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/edu.ujhb.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/edu.ujhb.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2443"}],"version-history":[{"count":1,"href":"https:\/\/edu.ujhb.org\/index.php?rest_route=\/wp\/v2\/posts\/2443\/revisions"}],"predecessor-version":[{"id":2444,"href":"https:\/\/edu.ujhb.org\/index.php?rest_route=\/wp\/v2\/posts\/2443\/revisions\/2444"}],"wp:attachment":[{"href":"https:\/\/edu.ujhb.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2443"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/edu.ujhb.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2443"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/edu.ujhb.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2443"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}