{"id":128,"date":"2023-07-15T18:33:19","date_gmt":"2023-10-04T17:42:18","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/index.php\/2023\/11\/30\/rocky-linux-9%e3%81%a7nginx%e3%81%ae%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%83%96%e3%83%ad%e3%83%83%e3%82%af%ef%bc%88%e3%83%90%e3%83%bc%e3%83%81%e3%83%a3%e3%83%ab%e3%83%9b%e3%82%b9%e3%83%88%ef%bc%89\/"},"modified":"2025-07-31T20:58:21","modified_gmt":"2025-07-31T11:58:21","slug":"rocky-linux-9%e3%81%a7nginx%e3%81%ae%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%83%96%e3%83%ad%e3%83%83%e3%82%af%ef%bc%88%e3%83%90%e3%83%bc%e3%83%81%e3%83%a3%e3%83%ab%e3%83%9b%e3%82%b9%e3%83%88%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9%e3%81%a7nginx%e3%81%ae%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%83%96%e3%83%ad%e3%83%83%e3%82%af%ef%bc%88%e3%83%90%e3%83%bc%e3%83%81%e3%83%a3%e3%83%ab%e3%83%9b%e3%82%b9%e3%83%88%ef%bc%89\/","title":{"rendered":"Rocky Linux 9\u3067Nginx\u306e\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\uff08\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\uff09\u3092\u8a2d\u5b9a\u306e\u65b9\u6cd5"},"content":{"rendered":"<h3>\u306f\u3058\u3081\u306b<\/h3>\n<p>Nginx\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc\u3092\u4f7f\u7528\u3059\u308b\u969b\u306b\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\uff08Apache\u306e\u4eee\u60f3\u30db\u30b9\u30c8\u306b\u4f3c\u305f\u3082\u306e\uff09\u3092\u4f7f\u7528\u3057\u3066\u3001\u69cb\u6210\u8a73\u7d30\u3092\u30ab\u30d7\u30bb\u30eb\u5316\u3057\u30011\u3064\u306e\u30b5\u30fc\u30d0\u30fc\u3067\u8907\u6570\u306e\u30c9\u30e1\u30a4\u30f3\u3092\u30db\u30b9\u30c8\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30ac\u30a4\u30c9\u3067\u306f\u3001Rocky Linux 9 \u30b5\u30fc\u30d0\u30fc\u4e0a\u306e Nginx \u3067\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u5b66\u3073\u307e\u3059\u3002<\/p>\n<h3>\u524d\u63d0\u6761\u4ef6<\/h3>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001\u975e\u30eb\u30fc\u30c8\u30e6\u30fc\u30b6\u30fc\u3092\u4f7f\u7528\u3057\u3001sudo\u7279\u6a29\u3092\u6301\u3064\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u3001Rocky Linux 9\u306e\u521d\u671f\u30b5\u30fc\u30d0\u30fc\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u30ac\u30a4\u30c9\u306b\u5f93\u3063\u3066\u65b0\u3057\u3044\u30e6\u30fc\u30b6\u30fc\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3042\u306a\u305f\u306e\u30b5\u30fc\u30d0\u30fc\u306b\u306fNginx\u3082\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002Rocky Linux 9\u306bNginx\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u306b\u5f93\u3063\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u30b9\u30c6\u30c3\u30d71 \u2014 \u65b0\u3057\u3044\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u8a2d\u5b9a<\/h2>\n<p>\u30c7\u30e2\u306e\u305f\u3081\u306b\u3001\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306fNginx\u30b5\u30fc\u30d0\u30fc\u3092\u4f7f\u7528\u3057\u30662\u3064\u306e\u30c9\u30e1\u30a4\u30f3\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5\u3092\u30ab\u30d0\u30fc\u3057\u307e\u3059\u3002\u3053\u306e\u30ac\u30a4\u30c9\u3067\u4f7f\u7528\u3059\u308b\u30c9\u30e1\u30a4\u30f3\u540d\u306f example.com \u3068 test.com \u3067\u3059\u304c\u3001\u65e2\u306b\u81ea\u5206\u81ea\u8eab\u306e\u30c9\u30e1\u30a4\u30f3\u304c\u3042\u308b\u5834\u5408\u306f\u3001\u305d\u308c\u3089\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<div class=\"post-conf-note\">\n<p class=\"post-conf-desc\">Note<\/p>\n<div>\u6ce8\u610f\uff1aSilicon Cloud\u3067\u65b0\u3057\u3044\u30c9\u30e1\u30a4\u30f3\u306e\u767b\u9332\u306b\u95a2\u3059\u308b\u8a73\u7d30\u306f\u3001\u5f0a\u793e\u306e\u30c9\u30e1\u30a4\u30f3\u3068DNS\u306e\u30d7\u30ed\u30c0\u30af\u30c8\u30c9\u30ad\u30e5\u30e1\u30f3\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/div>\n<\/div>\n<p>\u3082\u30572\u3064\u306e\u30c9\u30e1\u30a4\u30f3\u540d\u3092\u8a2d\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u306a\u3044\u5834\u5408\u306f\u3001\u4eca\u306e\u3068\u3053\u308d\u30d7\u30ec\u30fc\u30b9\u30db\u30eb\u30c0\u30fc\u540d\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u305d\u308c\u3067\u3082\u8a2d\u5b9a\u3092\u30c6\u30b9\u30c8\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001Rocky Linux 9\u306eNginx\u306b\u306f1\u3064\u306e\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u30d6\u30ed\u30c3\u30af\u306f\u3001\/usr\/share\/nginx\/html\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u63d0\u4f9b\u3059\u308b\u3088\u3046\u306b\u69cb\u6210\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u8a2d\u5b9a\u306f\u30011\u3064\u306e\u30b5\u30a4\u30c8\u306b\u306f\u9069\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u8907\u6570\u306e\u30b5\u30a4\u30c8\u3092\u63d0\u4f9b\u3059\u308b\u305f\u3081\u306b\u306f\u8ffd\u52a0\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u5fc5\u8981\u3067\u3059\u3002\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u4ed6\u306e\u30b5\u30a4\u30c8\u3068\u4e00\u81f4\u3057\u306a\u3044\u5834\u5408\u3001\/usr\/share\/nginx\/html\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3068\u3057\u3066\u63d0\u4f9b\u3055\u308c\u308b\u3068\u8003\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u5404\u30b5\u30a4\u30c8\u306b\u5bfe\u3057\u3066\u3001\/usr\/share\/nginx\u5185\u306b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u69cb\u9020\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u5b9f\u969b\u306e\u30a6\u30a7\u30d6\u30b3\u30f3\u30c6\u30f3\u30c4\u306f\u3001\u3053\u308c\u3089\u306e\u30b5\u30a4\u30c8\u56fa\u6709\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306ehtml\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u914d\u7f6e\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u30b5\u30a4\u30c8\u306b\u95a2\u9023\u3059\u308b\u4ed6\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3059\u308b\u67d4\u8edf\u6027\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n<p>\u5404\u30b5\u30a4\u30c8\u3054\u3068\u306b\u3053\u308c\u3089\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002-p\u30d5\u30e9\u30b0\u306fmkdir\u306b\u5bfe\u3057\u3066\u5fc5\u8981\u306a\u89aa\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3059\u308b\u3088\u3046\u6307\u793a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">mkdir<\/span> <span class=\"token parameter variable\">-p<\/span> \/usr\/share\/nginx\/<mark>example.com<\/mark>\/html<\/li>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">mkdir<\/span> <span class=\"token parameter variable\">-p<\/span> \/usr\/share\/nginx\/<mark>test.com<\/mark>\/html<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30fc\u304c\u3067\u304d\u305f\u3089\u3001\u30a6\u30a7\u30d6\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30fc\u306e\u6240\u6709\u6a29\u3092\u901a\u5e38\u306e\u30e6\u30fc\u30b6\u30fc\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u518d\u5272\u308a\u5f53\u3066\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u3063\u3066\u3001sudo \u6a29\u9650\u306a\u3057\u3067\u66f8\u304d\u8fbc\u3080\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u73fe\u5728\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3044\u308b\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u6240\u6709\u6a29\u3092\u5272\u308a\u5f53\u3066\u308b\u305f\u3081\u306b\u3001$USER\u74b0\u5883\u5909\u6570\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\uff08root\u3068\u3057\u3066\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3044\u306a\u3044\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\uff09\u3002\u3053\u308c\u3089\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u30b0\u30eb\u30fc\u30d7\u6a29\u9650\u3092Nginx\u306b\u5272\u308a\u5f53\u3066\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002Nginx\u306fRocky Linux\u4e0a\u3067\u81ea\u52d5\u7684\u306b\u4f5c\u6210\u3055\u308c\u308b\u30a2\u30ab\u30a6\u30f3\u30c8\u3067\u3042\u308a\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u5fc5\u8981\u306a\u5834\u5408\u306b\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc\u81ea\u4f53\u304c\u65b0\u3057\u3044\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002chown\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u4e21\u65b9\u306e\u64cd\u4f5c\u3092\u4e00\u5ea6\u306b\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">chown<\/span> <span class=\"token parameter variable\">-R<\/span> <span class=\"token environment constant\">$USER<\/span>:nginx \/usr\/share\/nginx\/<mark>example.com<\/mark>\/html<\/li>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">chown<\/span> <span class=\"token parameter variable\">-R<\/span> <span class=\"token environment constant\">$USER<\/span>:nginx \/usr\/share\/nginx\/<mark>test.com<\/mark>\/html<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u6700\u5f8c\u306b\u3001chmod\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u30e6\u30fc\u30b6\u30fc\u3068nginx\u30b0\u30eb\u30fc\u30d7\u306e\u4e21\u65b9\u304c\u5b8c\u5168\u306a\uff087\uff09\u6a29\u9650\u3092\u6301\u3061\u3001\u4ed6\u306e\u30e6\u30fc\u30b6\u30fc\u306b\u306f\u8aad\u307f\u53d6\u308a\u5c02\u7528\uff085\uff09\u6a29\u9650\u304c\u3042\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002Linux\u306e\u6a29\u9650\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u306f\u3001Linux\u6a29\u9650\u306e\u57fa\u790e\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">chmod<\/span> <span class=\"token parameter variable\">-R<\/span> <span class=\"token number\">775<\/span> \/usr\/share\/nginx<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u69cb\u9020\u306f\u4eca\u8a2d\u5b9a\u3055\u308c\u3066\u304a\u308a\u3001\u6b21\u306b\u9032\u3080\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u30b9\u30c6\u30c3\u30d7\uff12\uff0d\u305d\u308c\u305e\u308c\u306e\u30b5\u30a4\u30c8\u306b\u30b5\u30f3\u30d7\u30eb\u30da\u30fc\u30b8\u3092\u4f5c\u6210\u3059\u308b<\/h2>\n<p>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u69cb\u9020\u304c\u6574\u3063\u305f\u3089\u3001\u5404\u30b5\u30a4\u30c8\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u30da\u30fc\u30b8\u3092\u4f5c\u6210\u3057\u3066\u3001\u8868\u793a\u3059\u308b\u5185\u5bb9\u304c\u3042\u308b\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>Nano\u307e\u305f\u306f\u304a\u6c17\u306b\u5165\u308a\u306e\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3092\u4f7f\u7528\u3057\u3066\u3001\u6700\u521d\u306e\u30c9\u30e1\u30a4\u30f3\u306bindex.html\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">nano<\/span> \/usr\/share\/nginx\/<mark>example.com<\/mark>\/html\/index.html<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u30d5\u30a1\u30a4\u30eb\u5185\u306b\u306f\u3001\u73fe\u5728\u30a2\u30af\u30bb\u30b9\u3057\u3066\u3044\u308b\u30b5\u30a4\u30c8\u3092\u793a\u3059\u30d9\u30a2\u30dc\u30fc\u30f3\u306e\u30a6\u30a7\u30d6\u30e9\u30f3\u30c7\u30a3\u30f3\u30b0\u30da\u30fc\u30b8\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u5916\u898b\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<div>\u4ee5\u4e0b\u306e\u82f1\u6587\u3092\u65e5\u672c\u8a9e\u3067\u66f8\u304d\u63db\u3048\u3066\u304f\u3060\u3055\u3044\uff08\u4e00\u3064\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u307f\uff09\uff1a<br \/>\n\/usr\/share\/nginx\/example.com\/html\/index.html\u300c\/usr\/share\/nginx\/example.com\/html\/index.html\u300d\u3068\u3044\u3046\u5834\u6240\u306b\u3042\u308b\u30d5\u30a1\u30a4\u30eb<\/p>\n<\/div>\n<pre class=\"post-pre\"><code>&lt;html&gt;\r\n    &lt;head&gt;\r\n        &lt;title&gt;Welcome to <mark>Example.com<\/mark>!&lt;\/title&gt;\r\n    &lt;\/head&gt;\r\n    &lt;body&gt;\r\n        &lt;h1&gt;Success! The <mark>example.com<\/mark> server block is working!&lt;\/h1&gt;\r\n    &lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/code><\/pre>\n<p>\u7d42\u4e86\u3057\u305f\u3089\u3001\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3057\u3066\u9589\u3058\u3066\u304f\u3060\u3055\u3044\u3002nano\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001Ctrl+X\u3092\u62bc\u3057\u3001\u6307\u793a\u304c\u8868\u793a\u3055\u308c\u305f\u3089Y\u3092\u62bc\u3057\u3066\u3001\u305d\u306e\u5f8c\u306bEnter\u3092\u62bc\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u7b2c\u4e8c\u306e\u30b5\u30a4\u30c8\u306e\u30d5\u30a1\u30a4\u30eb\u306f\u30c7\u30e2\u30f3\u30b9\u30c8\u30ec\u30fc\u30b7\u30e7\u30f3\u7528\u306b\u540c\u3058\u306b\u306a\u308b\u4e88\u5b9a\u306a\u306e\u3067\u3001\u6b21\u306e\u3088\u3046\u306b\u3057\u3066\u305d\u308c\u3092\u7b2c\u4e8c\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8\u306b\u30b3\u30d4\u30fc\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">cp<\/span> \/usr\/share\/nginx\/<mark>example.com<\/mark>\/html\/index.html \/usr\/share\/nginx\/<mark>test.com<\/mark>\/html\/<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4eca\u3001\u65b0\u3057\u3044\u30d5\u30a1\u30a4\u30eb\u3092nano\u307e\u305f\u306f\u304a\u6c17\u306b\u5165\u308a\u306e\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3067\u958b\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">nano<\/span> \/usr\/share\/nginx\/<mark>test.com<\/mark>\/html\/index.html<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3042\u306a\u305f\u306e2\u756a\u76ee\u306e\u30c9\u30e1\u30a4\u30f3\u306b\u8a00\u53ca\u3059\u308b\u3088\u3046\u306b\u305d\u308c\u3092\u4fee\u6b63\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\u4ee5\u4e0b\u306e\u6587\u3092\u65e5\u672c\u8a9e\u3067\u81ea\u7136\u306a\u8a00\u3044\u56de\u3057\u3067\u8a00\u3044\u63db\u3048\u3066\u304f\u3060\u3055\u3044\uff08\uff11\u3064\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u7d50\u69cb\u3067\u3059\uff09\uff1a<br \/>\n\/usr\/share\/nginx\/test.com\/html\/index.html<\/div>\n<pre class=\"post-pre\"><code>&lt;html&gt;\r\n    &lt;head&gt;\r\n        &lt;title&gt;Welcome to <mark>Test.com<\/mark>!&lt;\/title&gt;\r\n    &lt;\/head&gt;\r\n    &lt;body&gt;\r\n        &lt;h1&gt;Success!  The <mark>test.com<\/mark> server block is working!&lt;\/h1&gt;\r\n    &lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/code><\/pre>\n<p>\u7d42\u308f\u3063\u305f\u3089\u3001\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3057\u3066\u9589\u3058\u3066\u304f\u3060\u3055\u3044\u3002\u4eca\u3001\u3042\u306a\u305f\u306e2\u3064\u306e\u30c9\u30e1\u30a4\u30f3\u306e\u8a2a\u554f\u8005\u306b\u8868\u793a\u3059\u308b\u30da\u30fc\u30b8\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h2>\u30b9\u30c6\u30c3\u30d73 \u2014 \u5404\u30c9\u30e1\u30a4\u30f3\u306e\u305f\u3081\u306e\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210<\/h2>\n<p>\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u63d0\u4f9b\u3059\u308b\u305f\u3081\u306b\u306f\u3001Nginx\u306b\u3053\u308c\u3092\u3069\u306e\u3088\u3046\u306b\u884c\u3046\u304b\u3092\u4f1d\u3048\u308b\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\u3092\u4f5c\u6210\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001Rocky Linux\u4e0a\u306eNginx\u306b\u306f\u3001\u305d\u306e\u30e1\u30a4\u30f3\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3067\u3042\u308bnginx.conf\u5185\u306b1\u3064\u306e\u300c\u30c7\u30d5\u30a9\u30eb\u30c8\u300d\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002\u305d\u306e\u30d5\u30a1\u30a4\u30eb\u5185\u306e\u305d\u306e\u30d6\u30ed\u30c3\u30af\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<div>\/etc\/nginx\/nginx.conf \u3092\u65e5\u672c\u8a9e\u3067\u8a00\u3044\u63db\u3048\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\uff1a<br \/>\n\u300c\/etc\/nginx\/nginx.conf\u300d<\/div>\n<pre class=\"post-pre\"><code>\u2026\r\n   server {\r\n        listen       80 default_server;\r\n        listen       [::]:80 default_server;\r\n        server_name  _;\r\n        root         \/usr\/share\/nginx\/html;\r\n\r\n        # Load configuration files for the default server block.\r\n        include \/etc\/nginx\/default.d\/*.conf;\r\n\r\n        location \/ {\r\n        }\r\n\r\n        error_page 404 \/404.html;\r\n            location = \/40x.html {\r\n        }\r\n\r\n        error_page 500 502 503 504 \/50x.html;\r\n            location = \/50x.html {\r\n        }\r\n    }\r\n\u2026\r\n<\/code><\/pre>\n<p>\u3042\u306a\u305f\u306f\u3001\u72ec\u81ea\u306e\u8a2d\u5b9a\u3092\u5225\u306e\u30d5\u30a1\u30a4\u30eb\u3067\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u305f\u3081\u3001\u3053\u308c\u3092\u81ea\u8eab\u306e\u69cb\u6210\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3068\u3057\u3066\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u6700\u521d\u306e\u30c9\u30e1\u30a4\u30f3\u306e\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\u3092\u8a2d\u8a08\u3057\u3001\u305d\u308c\u3092\u4e8c\u756a\u76ee\u306e\u30c9\u30e1\u30a4\u30f3\u306b\u30b3\u30d4\u30fc\u3057\u3066\u5fc5\u8981\u306a\u5909\u66f4\u3092\u52a0\u3048\u308b\u3053\u3068\u3067\u59cb\u3081\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>\u6700\u521d\u306e\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b<\/h3>\n<p>\/etc\/nginx\/conf.d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306b\u6700\u521d\u306e\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u30e1\u30a4\u30f3\u306eNginx\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306b\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067include \/etc\/nginx\/conf.d\/*.conf;\u3068\u3044\u3046\u884c\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u8ffd\u52a0\u306e\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\u3092\u6301\u3064\u30d5\u30a1\u30a4\u30eb\u306f\u305d\u306e\u30d1\u30bf\u30fc\u30f3\u306b\u4e00\u81f4\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<p>\u304a\u6c17\u306b\u5165\u308a\u306e\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3092sudo\u6a29\u9650\u3067\u4f7f\u7528\u3057\u3066\u3001\u6700\u521d\u306e\u30c9\u30e1\u30a4\u30f3\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">nano<\/span> \/etc\/nginx\/conf.d\/<mark>example.com<\/mark>.conf<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4ee5\u4e0b\u306e\u30d9\u30a2\u30dc\u30fc\u30f3\u306a\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\u3092\u8cbc\u308a\u4ed8\u3051\u3066\u59cb\u3081\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\/example.com.conf\u306e\u30d1\u30b9\u306f\u3001\u300c\/etc\/nginx\/conf.d\/example.com.conf\u300d\u3068\u306a\u308a\u307e\u3059\u3002<\/div>\n<pre class=\"post-pre\"><code>server {\r\n        listen 80;\r\n        listen [::]:80;\r\n\r\n        root \/usr\/share\/nginx\/html;\r\n        index index.html index.htm index.nginx-debian.html;\r\n\r\n        server_name _;\r\n\r\n        location \/ {\r\n                try_files $uri $uri\/ =404;\r\n        }\r\n}\r\n<\/code><\/pre>\n<p>\u307e\u305a\u3001\u30ea\u30b9\u30f3\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3092\u898b\u76f4\u3059\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u30b5\u30fc\u30d0\u30fc\u5185\u306e\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\u306e\u4e2d\u3067\u3001default_server\u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u306f1\u3064\u3060\u3051\u3067\u3059\u3002\u3053\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\u306e\u3044\u305a\u308c\u306b\u3082\u4e00\u81f4\u3057\u306a\u3044\u5834\u5408\u306b\u3069\u306e\u30d6\u30ed\u30c3\u30af\u304c\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u51e6\u7406\u3059\u308b\u304b\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u5b9f\u969b\u306e\u4e16\u754c\u306e\u30b7\u30ca\u30ea\u30aa\u3067\u306f\u3001\u8a2a\u554f\u8005\u306f\u30c9\u30e1\u30a4\u30f3\u540d\u3092\u4ecb\u3057\u3066\u30b5\u30a4\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u305f\u3081\u3001\u3053\u308c\u306f\u3042\u307e\u308a\u983b\u7e41\u306b\u8d77\u3053\u308b\u3053\u3068\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>listen\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306bdefault_server\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u542b\u3081\u308b\u3053\u3068\u3067\u3001\u30b5\u30a4\u30c8\u306e\u4e2d\u304b\u3089\u300c\u30c7\u30d5\u30a9\u30eb\u30c8\u300d\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u307e\u305f\u306f\u3001nginx.conf\u3067\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\u3092\u6709\u52b9\u306b\u3057\u305f\u307e\u307e\u306b\u3057\u3066\u304a\u304f\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u305d\u306e\u5834\u5408\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u3055\u308c\u305f\u30db\u30b9\u30c8\u304c\u898b\u3064\u304b\u3089\u306a\u304b\u3063\u305f\u5834\u5408\u306b\u306f\u3001\/usr\/share\/nginx\/html\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u5185\u5bb9\u304c\u63d0\u4f9b\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30ac\u30a4\u30c9\u3067\u306f\u3001\u300c\u30c7\u30d5\u30a9\u30eb\u30c8\u300d\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\u3092\u305d\u306e\u307e\u307e\u306b\u3057\u3066\u3001\u4e00\u81f4\u3057\u306a\u3044\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u51e6\u7406\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u65b0\u3057\u3044example.com\u306e\u8a2d\u5b9a\u306b\u306fdefault_server\u306f\u542b\u307e\u308c\u307e\u305b\u3093\u3002<\/p>\n<div>\n<p>\u300c\/etc\/nginx\/conf.d\/example.com.conf\u300d\u3092\u65e5\u672c\u8a9e\u3067\u8a00\u3044\u63db\u3048\u3066\u304f\u3060\u3055\u3044\u30021\u3064\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3060\u3051\u3067\u7d50\u69cb\u3067\u3059\u3002<\/p>\n<p>\u300c\/etc\/nginx\/conf.d\/example.com.conf\u300d<\/p>\n<\/div>\n<pre class=\"post-pre\"><code>server {\r\n        <mark>listen 80;<\/mark>\r\n        <mark>listen [::]:80;<\/mark>\r\n\r\n        . . .\r\n}\r\n<\/code><\/pre>\n<p>\u6b21\u306b\u8abf\u6574\u3059\u308b\u9805\u76ee\u306f\u3001root\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3067\u6307\u5b9a\u3055\u308c\u308b\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8\u3067\u3059\u3002\u4f5c\u6210\u3057\u305f\u30b5\u30a4\u30c8\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8\u306b\u30dd\u30a4\u30f3\u30c8\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\u4ee5\u4e0b\u306e\u5185\u5bb9\u3092\u65e5\u672c\u8a9e\u3067\u81ea\u7136\u306a\u8868\u73fe\u306b\u8a00\u3044\u63db\u3048\u3066\u304f\u3060\u3055\u3044\u30021\u3064\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u69cb\u3044\u307e\u305b\u3093\uff1a<br \/>\n\/etc\/nginx\/conf.d\/example.com.conf<\/div>\n<pre class=\"post-pre\"><code>server {\r\n        listen 80;\r\n        listen [::]:80;\r\n\r\n        root \/usr\/share\/nginx\/<mark>example.com<\/mark>\/html;\r\n\r\n}\r\n<\/code><\/pre>\n<p>\u6b21\u306b\u3001\u6700\u521d\u306e\u30c9\u30e1\u30a4\u30f3\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u4e00\u81f4\u3059\u308b\u3088\u3046\u306bserver_name\u3092\u5909\u66f4\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u3001\u4e00\u81f4\u3055\u305b\u308b\u305f\u3081\u306e\u30a8\u30a4\u30ea\u30a2\u30b9\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001\u4f8b\u3068\u3057\u3066example.com\u3068www.example.com\u306e\u30a8\u30a4\u30ea\u30a2\u30b9\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<p>\u3042\u306a\u305f\u304c\u7d42\u308f\u3063\u305f\u6642\u306b\u306f\u3001\u3042\u306a\u305f\u306e\u30d5\u30a1\u30a4\u30eb\u306f\u3053\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<div>\u300c\/etc\/nginx\/conf.d\/example.com.conf\u300d<\/div>\n<pre class=\"post-pre\"><code>server {\r\n        listen 80;\r\n        listen [::]:80;\r\n\r\n        root \/usr\/share\/nginx\/<mark>example.com<\/mark>\/html;\r\n        index index.html index.htm index.nginx-debian.html;\r\n\r\n        server_name <mark>example.com<\/mark> www.<mark>example.com<\/mark>;\r\n\r\n        location \/ {\r\n                try_files $uri $uri\/ =404;\r\n        }\r\n}\r\n<\/code><\/pre>\n<p>\u305d\u306e\u8a2d\u5b9a\u306b\u306f\u305d\u308c\u304c\u5168\u3066\u5fc5\u8981\u3067\u3059\u3002\u7d42\u4e86\u3059\u308b\u305f\u3081\u306b\u3001\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3057\u3066\u9589\u3058\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3>\u7b2c\u4e8c\u306e\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210<\/h3>\n<p>\u6700\u521d\u306e\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\u8a2d\u5b9a\u304c\u3067\u304d\u305f\u306e\u3067\u3001\u305d\u308c\u3092\u57fa\u306b\u3057\u30662\u756a\u76ee\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002\u65b0\u3057\u3044\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u308b\u305f\u3081\u306b\u305d\u308c\u3092\u30b3\u30d4\u30fc\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">cp<\/span> \/etc\/nginx\/conf.d\/<mark>example.com<\/mark>.conf \/etc\/nginx\/conf.d\/<mark>test.com<\/mark>.conf<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>sudo\u6a29\u9650\u3092\u6301\u3063\u3066\u304a\u6c17\u306b\u5165\u308a\u306e\u30a8\u30c7\u30a3\u30bf\u3067\u65b0\u3057\u3044\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">nano<\/span> \/etc\/nginx\/conf.d\/<mark>test.com<\/mark>.conf<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3082\u3046\u3069\u3053\u304b\u3067default_server\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u305f\u5834\u5408\u3001\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306elisten\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306b\u306f\u4f7f\u7528\u3057\u306a\u3044\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002root\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3092\u8abf\u6574\u3057\u3066\u30012\u756a\u76ee\u306e\u30c9\u30e1\u30a4\u30f3\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8\u3092\u6307\u3059\u3088\u3046\u306b\u3057\u3001server_name\u30922\u756a\u76ee\u306e\u30b5\u30a4\u30c8\u306e\u30c9\u30e1\u30a4\u30f3\u540d\u306b\u5408\u308f\u305b\u3066\u8abf\u6574\u3057\u3066\u304f\u3060\u3055\u3044\uff08\u30a8\u30a4\u30ea\u30a2\u30b9\u3082\u542b\u3081\u308b\u3053\u3068\u3092\u5fd8\u308c\u305a\u306b\uff09\u3002<\/p>\n<p>\u4f5c\u696d\u304c\u7d42\u308f\u3063\u305f\u5f8c\u3001\u304a\u305d\u3089\u304f\u3042\u306a\u305f\u306e\u30d5\u30a1\u30a4\u30eb\u306f\u3053\u306e\u3088\u3046\u306b\u306a\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<div>\u300c\/etc\/nginx\/conf.d\/test.com.conf\u300d\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb<\/div>\n<pre class=\"post-pre\"><code>server {\r\n        listen 80;\r\n        listen [::]:80;\r\n\r\n        root \/usr\/share\/nginx\/<mark>test.com<\/mark>\/html;\r\n        index index.html index.htm index.nginx-debian.html;\r\n\r\n        server_name <mark>test.com<\/mark> www.<mark>test.com<\/mark>;\r\n\r\n        location \/ {\r\n                try_files $uri $uri\/ =404;\r\n        }\r\n}\r\n<\/code><\/pre>\n<p>\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3057\u3066\u9589\u3058\u3066\u304f\u3060\u3055\u3044\u3002\u6b21\u306e\u30b9\u30c6\u30c3\u30d7\u3067\u306f\u3001\u5909\u66f4\u3092\u53cd\u6620\u3059\u308b\u305f\u3081\u306bNginx\u3092\u518d\u8aad\u307f\u8fbc\u307f\u3057\u307e\u3059\u3002<\/p>\n<h2>\u30b9\u30c6\u30c3\u30d74 &#8211; \u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\u306e\u6709\u52b9\u5316\u3068Nginx\u306e\u518d\u8d77\u52d5<\/h2>\n<p>\u304a\u5ba2\u69d8\u306f\u73fe\u5728\u30013\u3064\u306e\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u304a\u308a\u3001\u305d\u308c\u305e\u308c\u306e\u30ea\u30b9\u30f3\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3068\u30b5\u30fc\u30d0\u30fc\u540d\u306b\u57fa\u3065\u3044\u3066\u5fdc\u7b54\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059\uff08Nginx\u304c\u3053\u308c\u3089\u306e\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3092\u51e6\u7406\u3059\u308b\u65b9\u6cd5\u306e\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u3053\u3061\u3089\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\uff09\u3002<\/p>\n<ul class=\"post-ul\">\n<li>example.com: Will respond to requests for example.com and www.example.com<\/li>\n<li>test.com: Will respond to requests for test.com and www.test.com<\/li>\n<li>default: Will respond to any requests on port 80 that do not match the other two blocks.<\/li>\n<\/ul>\n<p>\u4f5c\u696d\u304c\u7d42\u308f\u3063\u305f\u3089\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3057\u3001\u9589\u3058\u3066\u304f\u3060\u3055\u3044\u3002\u6b21\u306b\u3001Nginx\u30d5\u30a1\u30a4\u30eb\u306e\u3044\u305a\u308c\u306b\u3082\u69cb\u6587\u30a8\u30e9\u30fc\u304c\u306a\u3044\u3053\u3068\u3092\u30c6\u30b9\u30c8\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> nginx <span class=\"token parameter variable\">-t<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u554f\u984c\u304c\u898b\u3064\u304b\u3089\u306a\u304b\u3063\u305f\u5834\u5408\u3001\u5909\u66f4\u3092\u6709\u52b9\u306b\u3059\u308b\u305f\u3081\u306bNginx\u3092\u518d\u8d77\u52d5\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> systemctl restart nginx<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u73fe\u5728\u3001Nginx\u306f\u3042\u306a\u305f\u306e\u4e21\u65b9\u306e\u30c9\u30e1\u30a4\u30f3\u540d\u3092\u63d0\u4f9b\u3057\u3066\u3044\u307e\u3059\u3002 (Gennzai, Nginx wa anata no ry\u014dhou no d\u014dmein-mei o teiky\u014d shiteimasu.)<\/p>\n<h2>\u30b9\u30c6\u30c3\u30d75 &#8211; \u30c6\u30b9\u30c8\u306e\u305f\u3081\u306b\u30ed\u30fc\u30ab\u30eb\u30db\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3059\u308b\uff08\u30aa\u30d7\u30b7\u30e7\u30f3\uff09<\/h2>\n<p>\u3082\u3057\u3001\u6240\u6709\u3057\u3066\u3044\u308b\u30c9\u30e1\u30a4\u30f3\u540d\u3092\u4f7f\u3063\u3066\u304a\u3089\u305a\u3001\u5b9f\u969b\u306b\u3053\u306e\u30b5\u30fc\u30d0\u306eIP\u30a2\u30c9\u30ec\u30b9\u3092\u6307\u3059\u4ee3\u66ff\u5024\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u3001\u30ed\u30fc\u30ab\u30eb\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u306e\u30db\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u3067\u3001\u4e00\u6642\u7684\u306bNginx\u306e\u30b5\u30fc\u30d0\u30d6\u30ed\u30c3\u30af\u306e\u8a2d\u5b9a\u3092\u30c6\u30b9\u30c8\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4ed6\u306e\u8a2a\u554f\u8005\u304c\u6b63\u3057\u304f\u30b5\u30a4\u30c8\u3092\u8868\u793a\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u304c\u3001\u500b\u5225\u306b\u5404\u30b5\u30a4\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3001\u8a2d\u5b9a\u3092\u30c6\u30b9\u30c8\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u901a\u5e38\u306fDNS\u306b\u9001\u4fe1\u3055\u308c\u308b\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u508d\u53d7\u3057\u3001\u30c9\u30e1\u30a4\u30f3\u540d\u3092\u89e3\u6c7a\u3059\u308b\u4ee3\u308f\u308a\u306b\u3001\u30db\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u8a2d\u5b9a\u3057\u3066\u7279\u5b9a\u306e\u30c9\u30e1\u30a4\u30f3\u3092\u7279\u5b9a\u306e\u30ea\u30e2\u30fc\u30c8\u30a2\u30c9\u30ec\u30b9\u306b\u81ea\u52d5\u7684\u306b\u30cf\u30fc\u30c9\u30b3\u30fc\u30c9\u3059\u308b\u3053\u3068\u3067\u6a5f\u80fd\u3057\u307e\u3059\u3002<\/p>\n<div class=\"post-conf-note\">\n<p class=\"post-conf-desc\">Note<\/p>\n<div>\u6ce8\u610f\uff1a\u3053\u308c\u3089\u306e\u624b\u9806\u3092\u5b9f\u884c\u3059\u308b\u969b\u306b\u306f\u3001\u30ea\u30e2\u30fc\u30c8\u30b5\u30fc\u30d0\u30fc\u3067\u306f\u306a\u304f\u3001\u30ed\u30fc\u30ab\u30eb\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u4e0a\u3067\u4f5c\u696d\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u306e\u305f\u3081\u306b\u306f\u3001\u30eb\u30fc\u30c8\u30a2\u30af\u30bb\u30b9\u3092\u6301\u3063\u3066\u3044\u308b\u304b\u3001\u7ba1\u7406\u8005\u30b0\u30eb\u30fc\u30d7\u306e\u30e1\u30f3\u30d0\u30fc\u3067\u3042\u308b\u304b\u3001\u307e\u305f\u306f\u30b7\u30b9\u30c6\u30e0\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3067\u304d\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/div>\n<\/div>\n<p>Mac\u3084Linux\u306e\u74b0\u5883\u3067\u4f5c\u696d\u3092\u3057\u3066\u3044\u308b\u5834\u5408\u3001\u30db\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u306f\/etc\/hosts\u306b\u4f4d\u7f6e\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"local $\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">nano<\/span> \/etc\/hosts<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>Windows\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u3001\u30db\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u306fC:\\Windows\\System32\\drivers\\etc\\hosts\u306b\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u30b5\u30fc\u30d0\u30fc\u306e\u516c\u958bIP\u30a2\u30c9\u30ec\u30b9\u3068\u3001\u30b5\u30fc\u30d0\u30fc\u306b\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3057\u305f\u3044\u30c9\u30e1\u30a4\u30f3\u3092\u77e5\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u30b5\u30fc\u30d0\u30fc\u306e\u516c\u958bIP\u30a2\u30c9\u30ec\u30b9\u304c203.0.113.5\u3067\u3042\u308b\u3068\u4eee\u5b9a\u3059\u308b\u3068\u3001\u30d5\u30a1\u30a4\u30eb\u306b\u8ffd\u52a0\u3059\u308b\u884c\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<div>\/etc\/hosts\u3092\u65e5\u672c\u8a9e\u3067\u8a00\u3044\u63db\u3048\u308b\u3068\u3001\u300c\u30db\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u300d\u3068\u306a\u308a\u307e\u3059\u3002<\/div>\n<pre class=\"post-pre\"><code>127.0.0.1   localhost\r\n. . .\r\n\r\n<mark>203.0.113.5 example.com www.example.com<\/mark>\r\n<mark>203.0.113.5 test.com www.test.com<\/mark>\r\n<\/code><\/pre>\n<p>\u3053\u308c\u306b\u3088\u308a\u3001example.com\u3068test.com\u3078\u306e\u3059\u3079\u3066\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u30a4\u30f3\u30bf\u30fc\u30bb\u30d7\u30c8\u3057\u3001\u30b5\u30fc\u30d0\u30fc\u306b\u9001\u4fe1\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u5b9f\u969b\u306b\u6240\u6709\u3057\u3066\u3044\u306a\u3044\u30c9\u30e1\u30a4\u30f3\u3092\u30c6\u30b9\u30c8\u3059\u308b\u5834\u5408\u306b\u5fc5\u8981\u3068\u306a\u308b\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>\u7d42\u308f\u3063\u305f\u3089\u3001\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3057\u3066\u9589\u3058\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>\u30b9\u30c6\u30c3\u30d76\uff1a\u7d50\u679c\u306e\u30c6\u30b9\u30c8<\/h2>\n<p>\u8a2d\u5b9a\u304c\u5b8c\u4e86\u3057\u305f\u306e\u3067\u3001\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\u304c\u6b63\u5e38\u306b\u6a5f\u80fd\u3057\u3066\u3044\u308b\u304b\u30c6\u30b9\u30c8\u3057\u3066\u307f\u308b\u3079\u304d\u3067\u3059\u3002\u305d\u306e\u305f\u3081\u306b\u3001\u30a6\u30a7\u30d6\u30d6\u30e9\u30a6\u30b6\u3067\u30c9\u30e1\u30a4\u30f3\u3092\u8a2a\u308c\u308b\u3053\u3068\u3067\u30c6\u30b9\u30c8\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>http:\/\/<mark>example.com<\/mark>\r\n<\/code><\/pre>\n<p>\u3053\u308c\u306b\u4f3c\u305f\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/6564585fdaa94e2bdf7b14c5\/96-0.png\" alt=\"Nginx first server block\" \/><\/div>\n<p>\u3082\u3057\u3082\u3042\u306a\u305f\u304c\u81ea\u5206\u306e\u7b2c2\u306e\u30c9\u30e1\u30a4\u30f3\u540d\u3092\u8a2a\u308c\u308b\u306a\u3089\u3070\u3001\u5c11\u3057\u9055\u3063\u305f\u30b5\u30a4\u30c8\u304c\u898b\u3048\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>http:\/\/<mark>test.com<\/mark>\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/6564585fdaa94e2bdf7b14c5\/99-0.png\" alt=\"Nginx second server block\" \/><\/div>\n<p>\u3082\u3057\u3001\u3053\u308c\u3089\u306e\u30b5\u30a4\u30c8\u306e\u4e21\u65b9\u304c\u52d5\u4f5c\u3059\u308b\u306a\u3089\u3001\u3042\u306a\u305f\u306fNginx\u30672\u3064\u306e\u72ec\u7acb\u3057\u305f\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\u3092\u6b63\u5e38\u306b\u8a2d\u5b9a\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u73fe\u6642\u70b9\u3067\u306f\u3001\u30c6\u30b9\u30c8\u306e\u305f\u3081\u306b\u30ed\u30fc\u30ab\u30eb\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u306e\u30db\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u8abf\u6574\u3057\u305f\u5834\u5408\u3001\u8ffd\u52a0\u3057\u305f\u884c\u3092\u524a\u9664\u3059\u308b\u3053\u3068\u3092\u304a\u3059\u3059\u3081\u3057\u307e\u3059\u3002<\/p>\n<p>\u3082\u3057\u30d1\u30d6\u30ea\u30c3\u30af\u30b5\u30a4\u30c8\u3078\u306e\u30b5\u30fc\u30d0\u30fc\u3078\u306e\u30c9\u30e1\u30a4\u30f3\u540d\u30a2\u30af\u30bb\u30b9\u304c\u5fc5\u8981\u306a\u5834\u5408\u306f\u3001\u304a\u305d\u3089\u304f\u5404\u30b5\u30a4\u30c8\u306b\u5bfe\u3057\u3066\u30c9\u30e1\u30a4\u30f3\u540d\u3092\u8cfc\u5165\u3057\u305f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<h2>\u7d50\u8ad6<\/h2>\n<p>\u540c\u3058\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u30db\u30b9\u30c8\u3057\u305f\u3044\u5404\u30c9\u30e1\u30a4\u30f3\u306b\u5bfe\u3057\u3066\u3001\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\u3092\u4f5c\u6210\u3067\u304d\u308b\u80fd\u529b\u3092\u6301\u3063\u3066\u3044\u308b\u306f\u305a\u3067\u3059\u3002\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3092\u51e6\u7406\u3067\u304d\u308b\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u304c\u3042\u308b\u9650\u308a\u3001\u4f5c\u6210\u3067\u304d\u308b\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\u306e\u6570\u306b\u306f\u5b9f\u8cea\u7684\u306a\u5236\u9650\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u6b21\u306b\u3001Nginx\u3067\u30d1\u30b9\u30ef\u30fc\u30c9\u8a8d\u8a3c\u306e\u8a2d\u5b9a\u65b9\u6cd5\u3092\u5b66\u3076\u3053\u3068\u3092\u304a\u52e7\u3081\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b Nginx\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc\u3092\u4f7f\u7528\u3059\u308b\u969b\u306b\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\uff08Apache\u306e\u4eee\u60f3\u30db\u30b9\u30c8\u306b\u4f3c\u305f\u3082\u306e\uff09\u3092\u4f7f\u7528\u3057\u3066\u3001\u69cb\u6210\u8a73\u7d30\u3092\u30ab\u30d7\u30bb\u30eb\u5316\u3057\u30011\u3064\u306e\u30b5\u30fc\u30d0\u30fc\u3067\u8907\u6570\u306e\u30c9\u30e1\u30a4\u30f3\u3092\u30db\u30b9\u30c8\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u3053\u306e\u30ac\u30a4\u30c9\u3067\u306f\u3001R [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[58,18],"class_list":["post-128","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-linux","tag-18"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Rocky Linux 9\u3067Nginx\u306e\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\uff08\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\uff09\u3092\u8a2d\u5b9a\u306e\u65b9\u6cd5 - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"Rocky Linux 9\u3067Nginx\u306e\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\uff08\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\uff09\u3092\u8a2d\u5b9a\u306e\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9\u3067nginx\u306e\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\uff08\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\uff09\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Rocky Linux 9\u3067Nginx\u306e\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\uff08\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\uff09\u3092\u8a2d\u5b9a\u306e\u65b9\u6cd5\" \/>\n<meta property=\"og:description\" content=\"Rocky Linux 9\u3067Nginx\u306e\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\uff08\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\uff09\u3092\u8a2d\u5b9a\u306e\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9\u3067nginx\u306e\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\uff08\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\uff09\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-10-04T17:42:18+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-31T11:58:21+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/6564585fdaa94e2bdf7b14c5\/96-0.png\" \/>\n<meta name=\"author\" content=\"\u6d77\u6597, \u8475\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u6d77\u6597, \u8475\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"22\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9%e3%81%a7nginx%e3%81%ae%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%83%96%e3%83%ad%e3%83%83%e3%82%af%ef%bc%88%e3%83%90%e3%83%bc%e3%83%81%e3%83%a3%e3%83%ab%e3%83%9b%e3%82%b9%e3%83%88%ef%bc%89\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9%e3%81%a7nginx%e3%81%ae%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%83%96%e3%83%ad%e3%83%83%e3%82%af%ef%bc%88%e3%83%90%e3%83%bc%e3%83%81%e3%83%a3%e3%83%ab%e3%83%9b%e3%82%b9%e3%83%88%ef%bc%89\/\",\"name\":\"Rocky Linux 9\u3067Nginx\u306e\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\uff08\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\uff09\u3092\u8a2d\u5b9a\u306e\u65b9\u6cd5 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2023-10-04T17:42:18+00:00\",\"dateModified\":\"2025-07-31T11:58:21+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/20cfc053626f4d45c0fa7a4e7964b5b6\"},\"description\":\"Rocky Linux 9\u3067Nginx\u306e\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\uff08\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\uff09\u3092\u8a2d\u5b9a\u306e\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9%e3%81%a7nginx%e3%81%ae%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%83%96%e3%83%ad%e3%83%83%e3%82%af%ef%bc%88%e3%83%90%e3%83%bc%e3%83%81%e3%83%a3%e3%83%ab%e3%83%9b%e3%82%b9%e3%83%88%ef%bc%89\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9%e3%81%a7nginx%e3%81%ae%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%83%96%e3%83%ad%e3%83%83%e3%82%af%ef%bc%88%e3%83%90%e3%83%bc%e3%83%81%e3%83%a3%e3%83%ab%e3%83%9b%e3%82%b9%e3%83%88%ef%bc%89\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9%e3%81%a7nginx%e3%81%ae%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%83%96%e3%83%ad%e3%83%83%e3%82%af%ef%bc%88%e3%83%90%e3%83%bc%e3%83%81%e3%83%a3%e3%83%ab%e3%83%9b%e3%82%b9%e3%83%88%ef%bc%89\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Rocky Linux 9\u3067Nginx\u306e\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\uff08\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\uff09\u3092\u8a2d\u5b9a\u306e\u65b9\u6cd5\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/20cfc053626f4d45c0fa7a4e7964b5b6\",\"name\":\"\u6d77\u6597, \u8475\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/25aec9a18954b6bfb7e4f7219c2923d62c6f0c9f4d5c0171228fe41751c0ab7a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/25aec9a18954b6bfb7e4f7219c2923d62c6f0c9f4d5c0171228fe41751c0ab7a?s=96&d=mm&r=g\",\"caption\":\"\u6d77\u6597, \u8475\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/kaitoaoi\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9%e3%81%a7nginx%e3%81%ae%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%83%96%e3%83%ad%e3%83%83%e3%82%af%ef%bc%88%e3%83%90%e3%83%bc%e3%83%81%e3%83%a3%e3%83%ab%e3%83%9b%e3%82%b9%e3%83%88%ef%bc%89\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Rocky Linux 9\u3067Nginx\u306e\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\uff08\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\uff09\u3092\u8a2d\u5b9a\u306e\u65b9\u6cd5 - Blog - Silicon Cloud","description":"Rocky Linux 9\u3067Nginx\u306e\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\uff08\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\uff09\u3092\u8a2d\u5b9a\u306e\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9\u3067nginx\u306e\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\uff08\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\uff09\/","og_locale":"ja_JP","og_type":"article","og_title":"Rocky Linux 9\u3067Nginx\u306e\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\uff08\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\uff09\u3092\u8a2d\u5b9a\u306e\u65b9\u6cd5","og_description":"Rocky Linux 9\u3067Nginx\u306e\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\uff08\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\uff09\u3092\u8a2d\u5b9a\u306e\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9\u3067nginx\u306e\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\uff08\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\uff09\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-10-04T17:42:18+00:00","article_modified_time":"2025-07-31T11:58:21+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/6564585fdaa94e2bdf7b14c5\/96-0.png"}],"author":"\u6d77\u6597, \u8475","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u6d77\u6597, \u8475","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"22\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9%e3%81%a7nginx%e3%81%ae%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%83%96%e3%83%ad%e3%83%83%e3%82%af%ef%bc%88%e3%83%90%e3%83%bc%e3%83%81%e3%83%a3%e3%83%ab%e3%83%9b%e3%82%b9%e3%83%88%ef%bc%89\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9%e3%81%a7nginx%e3%81%ae%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%83%96%e3%83%ad%e3%83%83%e3%82%af%ef%bc%88%e3%83%90%e3%83%bc%e3%83%81%e3%83%a3%e3%83%ab%e3%83%9b%e3%82%b9%e3%83%88%ef%bc%89\/","name":"Rocky Linux 9\u3067Nginx\u306e\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\uff08\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\uff09\u3092\u8a2d\u5b9a\u306e\u65b9\u6cd5 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2023-10-04T17:42:18+00:00","dateModified":"2025-07-31T11:58:21+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/20cfc053626f4d45c0fa7a4e7964b5b6"},"description":"Rocky Linux 9\u3067Nginx\u306e\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\uff08\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\uff09\u3092\u8a2d\u5b9a\u306e\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9%e3%81%a7nginx%e3%81%ae%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%83%96%e3%83%ad%e3%83%83%e3%82%af%ef%bc%88%e3%83%90%e3%83%bc%e3%83%81%e3%83%a3%e3%83%ab%e3%83%9b%e3%82%b9%e3%83%88%ef%bc%89\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9%e3%81%a7nginx%e3%81%ae%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%83%96%e3%83%ad%e3%83%83%e3%82%af%ef%bc%88%e3%83%90%e3%83%bc%e3%83%81%e3%83%a3%e3%83%ab%e3%83%9b%e3%82%b9%e3%83%88%ef%bc%89\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9%e3%81%a7nginx%e3%81%ae%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%83%96%e3%83%ad%e3%83%83%e3%82%af%ef%bc%88%e3%83%90%e3%83%bc%e3%83%81%e3%83%a3%e3%83%ab%e3%83%9b%e3%82%b9%e3%83%88%ef%bc%89\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"Rocky Linux 9\u3067Nginx\u306e\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\uff08\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\uff09\u3092\u8a2d\u5b9a\u306e\u65b9\u6cd5"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website","url":"https:\/\/www.silicloud.com\/ja\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/20cfc053626f4d45c0fa7a4e7964b5b6","name":"\u6d77\u6597, \u8475","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/25aec9a18954b6bfb7e4f7219c2923d62c6f0c9f4d5c0171228fe41751c0ab7a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/25aec9a18954b6bfb7e4f7219c2923d62c6f0c9f4d5c0171228fe41751c0ab7a?s=96&d=mm&r=g","caption":"\u6d77\u6597, \u8475"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/kaitoaoi\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9%e3%81%a7nginx%e3%81%ae%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%83%96%e3%83%ad%e3%83%83%e3%82%af%ef%bc%88%e3%83%90%e3%83%bc%e3%83%81%e3%83%a3%e3%83%ab%e3%83%9b%e3%82%b9%e3%83%88%ef%bc%89\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/128","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=128"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/128\/revisions"}],"predecessor-version":[{"id":325707,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/128\/revisions\/325707"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=128"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=128"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=128"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}