{"id":37,"date":"2023-08-15T12:46:28","date_gmt":"2023-01-02T05:07:44","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/index.php\/2023\/11\/30\/ubuntu-vps%e4%b8%8a%e3%81%a7%e3%81%aenginx%e3%81%ae%e3%83%ad%e3%82%b0%e3%81%a8%e3%83%ad%e3%82%b0%e3%83%ad%e3%83%bc%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%81%ae%e8%a8%ad%e5%ae%9a%e6%96%b9\/"},"modified":"2025-07-31T13:34:49","modified_gmt":"2025-07-31T04:34:49","slug":"ubuntu-vps%e4%b8%8a%e3%81%a7%e3%81%aenginx%e3%81%ae%e3%83%ad%e3%82%b0%e3%81%a8%e3%83%ad%e3%82%b0%e3%83%ad%e3%83%bc%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%81%ae%e8%a8%ad%e5%ae%9a%e6%96%b9","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-vps%e4%b8%8a%e3%81%a7%e3%81%aenginx%e3%81%ae%e3%83%ad%e3%82%b0%e3%81%a8%e3%83%ad%e3%82%b0%e3%83%ad%e3%83%bc%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%81%ae%e8%a8%ad%e5%ae%9a%e6%96%b9\/","title":{"rendered":"Ubuntu VPS\u4e0a\u3067\u306eNginx\u306e\u30ed\u30b0\u3068\u30ed\u30b0\u30ed\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u8a2d\u5b9a\u65b9\u6cd5"},"content":{"rendered":"<h3>\u30a4\u30f3\u30c8\u30ed\u30c0\u30af\u30b7\u30e7\u30f3<\/h3>\n<p>\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc\u306e\u30c8\u30e9\u30d6\u30eb\u3092\u56de\u907f\u3059\u308b\u305f\u3081\u306b\u3001\u30ed\u30b0\u306e\u8a2d\u5b9a\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30b5\u30fc\u30d0\u30fc\u306e\u30ed\u30b0\u60c5\u5831\u3092\u8a18\u9332\u3059\u308b\u3053\u3068\u3067\u3001\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u3084\u72b6\u6cc1\u306e\u8a55\u4fa1\u306b\u5f79\u7acb\u3064\u30c7\u30fc\u30bf\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001Nginx\u306e\u30ed\u30b0\u6a5f\u80fd\u3092\u8abf\u67fb\u3057\u3001\u3053\u308c\u3089\u306e\u30c4\u30fc\u30eb\u3092\u6700\u9069\u306a\u8a2d\u5b9a\u3067\u4f7f\u7528\u3059\u308b\u65b9\u6cd5\u3092\u898b\u3064\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002Ubuntu 22.04\u306e\u4eee\u60f3\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30b5\u30fc\u30d0\u30fc\u3092\u4f8b\u306b\u4f7f\u7528\u3057\u307e\u3059\u304c\u3001\u4ed6\u306e\u30e2\u30c0\u30f3\u306a\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u3067\u3082\u540c\u69d8\u306e\u6a5f\u80fd\u304c\u5229\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u524d\u63d0\u6761\u4ef6<\/h2>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306b\u5f93\u3046\u305f\u3081\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u3082\u306e\u304c\u5fc5\u8981\u3067\u3059\uff1a<\/p>\n<ul class=\"post-ul\">\n<li>One Ubuntu 22.04 server with a non-root sudo-enabled user with a firewall. Follow our Initial Server Setup to get started.<\/li>\n<li>Nginx installed on the server. Follow our How to Install Nginx on Ubuntu 22.04 tutorial to get it installed.<\/li>\n<\/ul>\n<p>\u3042\u306a\u305f\u306eUbuntu 22.04\u30b5\u30fc\u30d0\u30fc\u3067Nginx\u3092\u5b9f\u884c\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u6e96\u5099\u304c\u6574\u3044\u307e\u3057\u305f\u3002<\/p>\n<h2>\u30a8\u30e9\u30fc\u30ed\u30b0\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306e\u7406\u89e3<\/h2>\n<p>Nginx\u306f\u30b7\u30b9\u30c6\u30e0\u30ed\u30b0\u3092\u5236\u5fa1\u3059\u308b\u305f\u3081\u306b\u3044\u304f\u3064\u304b\u306e\u7570\u306a\u308b\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002\u30b3\u30a2\u30e2\u30b8\u30e5\u30fc\u30eb\u306b\u542b\u307e\u308c\u308b\u3082\u306e\u306ferror_log\u3068\u547c\u3070\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>\u30a8\u30e9\u30fc\u30ed\u30b0\u306e\u69cb\u6587<\/h3>\n<p>error_log\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306f\u3001\u4e00\u822c\u7684\u306a\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u30ed\u30b0\u3092\u51e6\u7406\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u3082\u3057\u3042\u306a\u305f\u304cApache\u306b\u8a73\u3057\u3044\u306e\u3067\u3042\u308c\u3070\u3001\u3053\u308c\u306fApache\u306eErrorLog\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306b\u975e\u5e38\u306b\u4f3c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>error_log \u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306f\u6b21\u306e\u69cb\u6587\u3092\u9069\u7528\u3057\u307e\u3059\u3002<\/p>\n<div>\u300c\/etc\/nginx\/nginx.conf\u300d\u3068\u306f\u3001\u65e5\u672c\u8a9e\u3067\u306f\u300c\/etc\/nginx\/nginx.conf\u300d\u3068\u8a18\u8ff0\u3055\u308c\u307e\u3059\u3002<\/div>\n<pre class=\"post-pre\"><code>error_log <mark>log_file<\/mark> <mark>log_level<\/mark>\r\n<\/code><\/pre>\n<p>\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u306f\u3001\u30ed\u30b0\u304c\u8a18\u9332\u3055\u308c\u308b\u30d5\u30a1\u30a4\u30eb\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u30ed\u30b0\u30ec\u30d9\u30eb\u306f\u3001\u8a18\u9332\u3057\u305f\u3044\u6700\u4f4e\u30ec\u30d9\u30eb\u306e\u30ed\u30b0\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<h3>\u30ed\u30ae\u30f3\u30b0\u30ec\u30d9\u30eb<\/h3>\n<p>\u30a8\u30e9\u30fc\u30ed\u30b0\u306e\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306f\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u3088\u308a\u591a\u304f\u307e\u305f\u306f\u5c11\u306a\u3044\u60c5\u5831\u3092\u8a18\u9332\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30ed\u30b0\u306e\u30ec\u30d9\u30eb\u306f\u4ee5\u4e0b\u306e\u3044\u305a\u308c\u304b\u306b\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>emerg: Emergency situations where the system is in an unusable state.<\/li>\n<li>alert: Severe situations where action is needed promptly.<\/li>\n<li>crit: Important problems that need to be addressed.<\/li>\n<li>error: An error has occurred and something was unsuccessful.<\/li>\n<li>warn: Something out of the ordinary happened, but is not a cause for concern.<\/li>\n<li>notice: Something normal, but worth noting what has happened.<\/li>\n<li>info: An informational message that might be nice to know.<\/li>\n<li>debug: Debugging information that can be useful to pinpoint where a problem is occurring.<\/li>\n<\/ul>\n<p>\u30ea\u30b9\u30c8\u306e\u4e0a\u4f4d\u306b\u3042\u308b\u30ec\u30d9\u30eb\u306f\u3001\u512a\u5148\u5ea6\u304c\u9ad8\u3044\u3068\u8003\u3048\u3089\u308c\u3066\u3044\u307e\u3059\u3002\u3082\u3057\u30ec\u30d9\u30eb\u3092\u6307\u5b9a\u3059\u308b\u5834\u5408\u3001\u30ed\u30b0\u306f\u6307\u5b9a\u3057\u305f\u30ec\u30d9\u30eb\u3068\u305d\u308c\u3088\u308a\u3082\u9ad8\u3044\u30ec\u30d9\u30eb\u3092\u30ad\u30e3\u30d7\u30c1\u30e3\u3057\u307e\u3059\u3002<\/p>\n<p>\u305f\u3068\u3048\u3070\u3001\u30a8\u30e9\u30fc\u3092\u6307\u5b9a\u3059\u308b\u3068\u3001\u30ed\u30b0\u306f\u30a8\u30e9\u30fc\u3001\u91cd\u8981\u3001\u8b66\u544a\u3001\u7dca\u6025\u306e\u30e9\u30d9\u30eb\u4ed8\u3051\u3055\u308c\u305f\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u8a18\u9332\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306e\u4f7f\u7528\u4f8b\u306f\u3001\u30e1\u30a4\u30f3\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u4e2d\u306b\u3042\u308a\u307e\u3059\u3002\u304a\u597d\u307f\u306e\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3092\u4f7f\u7528\u3057\u3066\u3001\u6b21\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u306e\u4f8b\u3067\u306fnano\u3092\u4f7f\u7528\u3057\u3066\u3044\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\">nano<\/span> \/etc\/nginx\/nginx.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>\u30d5\u30a1\u30a4\u30eb\u3092\u30b9\u30af\u30ed\u30fc\u30eb\u3057\u3066\u3001# \u30ed\u30ae\u30f3\u30b0\u8a2d\u5b9a\u30bb\u30af\u30b7\u30e7\u30f3\u307e\u3067\u9032\u307f\u3001\u4ee5\u4e0b\u306e\u6307\u793a\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\u300c\/etc\/nginx\/nginx.conf\u300d\u306f\u3001\u6b21\u306e\u3088\u3046\u306b\u8a00\u3044\u63db\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\uff1a<\/div>\n<pre class=\"post-pre\"><code>. . .\r\n##\r\n# Logging Settings\r\n##\r\n\r\naccess_log \/var\/log\/nginx\/access.log;\r\nerror_log \/var\/log\/nginx\/error.log;\r\n. . .\r\n<\/code><\/pre>\n<p>\u30a8\u30e9\u30fc\u30ed\u30b0\u306b\u4f55\u3082\u8a18\u9332\u3057\u305f\u304f\u306a\u3044\u5834\u5408\u306f\u3001\u51fa\u529b\u3092\/dev\/null\u306b\u9001\u4fe1\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<div>\/etc\/nginx\/nginx.conf \u306e\u5185\u5bb9\u3092\u65e5\u672c\u8a9e\u3067\u8ff0\u3079\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/div>\n<pre class=\"post-pre\"><code>. . .\r\nerror_log <mark>\/dev\/null crit<\/mark>;\r\n. . .\r\n<\/code><\/pre>\n<p>\u4ed6\u306e\u30ed\u30b0\u8a18\u8ff0\u5b50\u3067\u3042\u308baccess_log\u306b\u3064\u3044\u3066\u306f\u3001\u6b21\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<h2>HttpLogModule\u306e\u30ed\u30b0\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306e\u7406\u89e3<\/h2>\n<p>error_log\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306f\u30b3\u30a2\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u4e00\u90e8\u3067\u3059\u304c\u3001access_log\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306fHttpLogModule\u306e\u4e00\u90e8\u3067\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30ed\u30b0\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u306b\u306f\u3001\u30ab\u30b9\u30bf\u30e0\u30ed\u30b0\u306e\u8a2d\u5b9a\u3092\u88dc\u52a9\u3059\u308b\u3044\u304f\u3064\u304b\u306e\u4ed6\u306e\u6307\u793a\u3082\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>log_format\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6<\/h3>\n<p>log_format\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306f\u3001\u30d7\u30ec\u30fc\u30f3\u30c6\u30ad\u30b9\u30c8\u3068\u5909\u6570\u3092\u4f7f\u3063\u3066\u30ed\u30b0\u30a8\u30f3\u30c8\u30ea\u306e\u66f8\u5f0f\u3092\u8ff0\u3079\u308b\u305f\u3081\u306b\u4f7f\u308f\u308c\u307e\u3059\u3002<\/p>\n<p>Nginx\u306b\u306f\u4e8b\u524d\u5b9a\u7fa9\u3055\u308c\u305fcombined\u3068\u3044\u30461\u3064\u306e\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u306f\u591a\u304f\u306e\u30b5\u30fc\u30d0\u30fc\u3067\u3088\u304f\u4f7f\u7528\u3055\u308c\u308b\u4e00\u822c\u7684\u306a\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3067\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306f\u3001log_format\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3067\u660e\u793a\u7684\u306b\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u3001\u5185\u90e8\u3067\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u306e\u7d50\u5408\u5f62\u5f0f\u306e\u4f8b\u3067\u3059\u3002<\/p>\n<div>\/etc\/nginx\/nginx.conf\u306e\u65e5\u672c\u8a9e\u3067\u306e\u8a00\u3044\u63db\u3048\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\uff1a<br \/>\n\u300c\/etc\/nginx\/nginx.conf\u300d<\/div>\n<pre class=\"post-pre\"><code>log_format combined '$remote_addr - $remote_user [$time_local]  '\r\n\t\t    '\"$request\" $status $body_bytes_sent '\r\n\t\t    '\"$http_referer\" \"$http_user_agent\"';\r\n<\/code><\/pre>\n<p>\u3053\u306e\u5b9a\u7fa9\u306f\u3001\u30bb\u30df\u30b3\u30ed\u30f3\uff08;\uff09\u304c\u898b\u3064\u304b\u308b\u307e\u3067\u8907\u6570\u884c\u306b\u308f\u305f\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>$\uff08\u30c9\u30eb\u30de\u30fc\u30af\uff09\u3067\u59cb\u307e\u308b\u884c\u306f\u5909\u6570\u3092\u793a\u3057\u3001-\u3084[\u3001]\u306a\u3069\u306e\u6587\u5b57\u306f\u305d\u306e\u307e\u307e\u89e3\u91c8\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u6307\u793a\u306e\u4e00\u822c\u7684\u306a\u69cb\u6587\u306f\u6b21\u306e\u3088\u3046\u3067\u3059\u3002<\/p>\n<div>\n<p>\/etc\/nginx\/nginx.conf\u3092\u65e5\u672c\u8a9e\u3067\u8a00\u3044\u63db\u3048\u308b\u3068 :<\/p>\n<p>\u300c\/etc\/nginx\/nginx.conf\u300d<\/p>\n<\/div>\n<pre class=\"post-pre\"><code>log_format <mark>format_name<\/mark> <mark>string_describing_formatting<\/mark>;\r\n<\/code><\/pre>\n<p>\u30b3\u30a2\u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u308b\u5909\u6570\u3092\u4f7f\u7528\u3057\u3066\u3001\u30ed\u30b0\u306e\u6587\u5b57\u5217\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306e\u7406\u89e3<\/h2>\n<p>\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306f\u3001\u30a8\u30e9\u30fc\u30ed\u30b0\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3068\u4f3c\u305f\u69cb\u6587\u3092\u4f7f\u3044\u307e\u3059\u304c\u3001\u3088\u308a\u67d4\u8edf\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u306f\u30ab\u30b9\u30bf\u30e0\u30ed\u30ae\u30f3\u30b0\u3092\u8a2d\u5b9a\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306f\u6b21\u306e\u69cb\u6587\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<div>\/etc\/nginx\/nginx.conf\u3092\u65e5\u672c\u8a9e\u306b\u76f4\u8a33\u3059\u308b\u3068\u3001\u300c\u4ee5\u4e0b\u306e\u30d1\u30b9\u306b\u3042\u308bnginx.conf\u300d\u3068\u306a\u308a\u307e\u3059\u3002<\/div>\n<pre class=\"post-pre\"><code>access_log <mark>\/path\/to\/log\/location<\/mark> [ <mark>format_of_log<\/mark> <mark>buffer_size<\/mark> ];\r\n<\/code><\/pre>\n<p>access_log\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u306f\u3001log_format\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u8a00\u53ca\u3055\u308c\u305fcombined\u5f62\u5f0f\u3067\u3059\u3002log_format\u5b9a\u7fa9\u306b\u3088\u3063\u3066\u5b9a\u7fa9\u3055\u308c\u305f\u4efb\u610f\u306e\u5f62\u5f0f\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30d0\u30c3\u30d5\u30a1\u30b5\u30a4\u30ba\u306f\u3001Nginx\u304c\u30ed\u30b0\u306b\u66f8\u304d\u8fbc\u3080\u524d\u306b\u4fdd\u6301\u3059\u308b\u30c7\u30fc\u30bf\u306e\u6700\u5927\u30b5\u30a4\u30ba\u3067\u3059\u3002gzip\u3092\u5b9a\u7fa9\u306b\u8ffd\u52a0\u3059\u308b\u3053\u3068\u3067\u3001\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u306e\u5727\u7e2e\u3082\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002<\/p>\n<div>\u4ee5\u4e0b\u306e\u5185\u5bb9\u3092\u65e5\u672c\u8a9e\u3067\u81ea\u7136\u306b\u8868\u73fe\u3057\u305f\u3082\u306e\u3092\u4e00\u3064\u63d0\u793a\u3057\u307e\u3059\uff1a<br \/>\n\u300c\/etc\/nginx\/nginx.conf\u300d<\/div>\n<pre class=\"post-pre\"><code>access_log <mark>\/path\/to\/log\/location<\/mark> <mark>format_of_log<\/mark> <mark>gzip<\/mark>;\r\n<\/code><\/pre>\n<p>\u30a8\u30e9\u30fc\u30ed\u30b0\u306e\u6307\u4ee4\u3068\u306f\u7570\u306a\u308a\u3001\u30ed\u30b0\u3092\u4e0d\u8981\u3068\u3059\u308b\u5834\u5408\u306f\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u66f4\u65b0\u3057\u3066\u30aa\u30d5\u306b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<div>\u300c\/etc\/nginx\/nginx.conf\u300d\u3068\u306f\u3001nginx\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3067\u3059\u3002<\/div>\n<pre class=\"post-pre\"><code>. . .\r\n##\r\n# Logging Settings\r\n##\r\n\r\naccess_log <mark>off<\/mark>;\r\nerror_log \/var\/log\/nginx\/error.log;\r\n\r\n. . .\r\n<\/code><\/pre>\n<p>\u3053\u306e\u5834\u5408\u3001\/dev\/null \u306b\u66f8\u304d\u8fbc\u3080\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<h2>\u30ed\u30b0\u306e\u30ed\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u7ba1\u7406\u3059\u308b<\/h2>\n<p>\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u304c\u5897\u3048\u308b\u3068\u3001\u30c7\u30a3\u30b9\u30af\u5bb9\u91cf\u3092\u4f7f\u3044\u5c3d\u304f\u3055\u306a\u3044\u3088\u3046\u306b\u30ed\u30b0\u30e1\u30ab\u30cb\u30ba\u30e0\u306e\u7ba1\u7406\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002\u30ed\u30b0\u30ed\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u3068\u306f\u3001\u4e00\u5b9a\u671f\u9593\u306e\u9593\u3001\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u3092\u5207\u308a\u66ff\u3048\u308b\u3053\u3068\u304a\u3088\u3073\u53e4\u3044\u30d5\u30a1\u30a4\u30eb\u3092\u30a2\u30fc\u30ab\u30a4\u30d6\u3059\u308b\u30d7\u30ed\u30bb\u30b9\u3067\u3059\u3002<\/p>\n<p>Nginx\u306f\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u3092\u7ba1\u7406\u3059\u308b\u305f\u3081\u306e\u30c4\u30fc\u30eb\u3092\u63d0\u4f9b\u3057\u3066\u3044\u307e\u305b\u3093\u304c\u3001\u30ed\u30b0\u30ed\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u88dc\u52a9\u3059\u308b\u4ed5\u7d44\u307f\u306f\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>\u30de\u30cb\u30e5\u30a2\u30eb\u3067\u30ed\u30b0\u3092\u56de\u8ee2\u3055\u305b\u308b<\/h3>\n<p>\u30ed\u30b0\u3092\u624b\u52d5\u3067\u56de\u8ee2\u3055\u305b\u308b\u306b\u306f\u3001\u56de\u8ee2\u7528\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u73fe\u5728\u306e\u30ed\u30b0\u3092\u30a2\u30fc\u30ab\u30a4\u30d6\u7528\u306e\u65b0\u3057\u3044\u30d5\u30a1\u30a4\u30eb\u306b\u79fb\u52d5\u3057\u307e\u3059\u3002\u4e00\u822c\u7684\u306a\u65b9\u6cd5\u306f\u3001\u6700\u65b0\u306e\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u306b\u306f .0 \u3068\u3044\u3046\u63a5\u5c3e\u8f9e\u3092\u4ed8\u3051\u3001\u305d\u308c\u4ee5\u524d\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u306f .1 \u306a\u3069\u306e\u756a\u53f7\u3092\u4ed8\u3051\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">mv<\/span> <mark>\/path\/to\/access.log<\/mark> <mark>\/path\/to\/access.log.0<\/mark><\/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>\u5b9f\u969b\u306b\u30ed\u30b0\u3092\u56de\u8ee2\u3055\u305b\u308b\u30b3\u30de\u30f3\u30c9\u306f\u3001kill -USR1 \/var\/run\/nginx.pid \u3067\u3059\u3002\u3053\u308c\u306b\u3088\u3063\u3066\u3001Nginx\u30d7\u30ed\u30bb\u30b9\u81ea\u4f53\u304c\u7d42\u4e86\u3059\u308b\u308f\u3051\u3067\u306f\u306a\u304f\u3001\u4ee3\u308f\u308a\u306b\u30b7\u30b0\u30ca\u30eb\u3092\u9001\u308a\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u3092\u30ea\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u65b0\u3057\u3044\u30ea\u30af\u30a8\u30b9\u30c8\u306f\u66f4\u65b0\u3055\u308c\u305f\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u306b\u8a18\u9332\u3055\u308c\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">kill<\/span> <span class=\"token parameter variable\">-USR1<\/span> <span class=\"token variable\"><span class=\"token variable\">`<\/span><span class=\"token function\">cat<\/span> <mark>\/var\/run\/nginx.pid<\/mark><span class=\"token variable\">`<\/span><\/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>\/var\/run\/nginx.pid \u30d5\u30a1\u30a4\u30eb\u306f\u3001Nginx\u304c\u30de\u30b9\u30bf\u30fc\u30d7\u30ed\u30bb\u30b9\u306ePID\u3092\u4fdd\u5b58\u3059\u308b\u5834\u6240\u3067\u3059\u3002\/etc\/nginx\/nginx.conf \u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u5148\u982d\u306b\u3042\u308b pid: \u3067\u59cb\u307e\u308b\u884c\u3067\u6307\u5b9a\u3055\u308c\u3066\u3044\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\">nano<\/span> \/etc\/nginx\/nginx.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<div>\/etc\/nginx\/nginx.conf \u306e\u5185\u5bb9\u3092\u65e5\u672c\u8a9e\u3067\u8ff0\u3079\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/div>\n<pre class=\"post-pre\"><code>user www-data;\r\nworker_processes auto;\r\n<mark>pid \/run\/nginx.pid;<\/mark>\r\ninclude \/etc\/nginx\/modules-enabled\/*.conf;\r\n...\r\n<\/code><\/pre>\n<p>\u56de\u8ee2\u5f8c\u3001\u30d7\u30ed\u30bb\u30b9\u306e\u8ee2\u9001\u304c\u5b8c\u4e86\u3059\u308b\u307e\u3067\u306b sleep 1 \u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u305d\u306e\u5f8c\u3001\u53e4\u3044\u30d5\u30a1\u30a4\u30eb\u3092\u5727\u7e2e\u3057\u305f\u308a\u3001\u56de\u8ee2\u5f8c\u306e\u51e6\u7406\u3092\u884c\u3063\u305f\u308a\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\">sleep<\/span> <span class=\"token number\">1<\/span><\/li>\n<li data-prefix=\"$\"><span class=\"token punctuation\">[<\/span> post-rotation processing of old log <span class=\"token function\">file<\/span> <span class=\"token punctuation\">]<\/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<h3>\u30ed\u30b0\u30ed\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u3092logrotate\u3067\u884c\u3046\u3002<\/h3>\n<p>logrotate\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f\u3001\u30ed\u30b0\u3092\u30ed\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u3059\u308b\u305f\u3081\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u3059\u3002\u305d\u308c\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067Ubuntu\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u304a\u308a\u3001Ubuntu\u4e0a\u306eNginx\u306b\u306f\u30ab\u30b9\u30bf\u30e0\u306elogrotate\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u4ed8\u5c5e\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u597d\u304d\u306a\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3092\u4f7f\u7528\u3057\u3066\u3001\u56de\u8ee2\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u306e\u4f8b\u3067\u306f\u3001nano\u3092\u4f7f\u7528\u3057\u3066\u3044\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\">nano<\/span> \/etc\/logrotate.d\/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>\u30d5\u30a1\u30a4\u30eb\u306e\u6700\u521d\u306e\u884c\u306f\u3001\u305d\u306e\u5f8c\u306e\u884c\u304c\u9069\u7528\u3055\u308c\u308b\u5834\u6240\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002Nginx\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3067\u30ed\u30b0\u306e\u5834\u6240\u3092\u5909\u66f4\u3059\u308b\u5834\u5408\u3001\u3053\u308c\u3092\u5fd8\u308c\u306a\u3044\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u30d5\u30a1\u30a4\u30eb\u306e\u6b8b\u308a\u306e\u90e8\u5206\u3067\u306f\u3001\u30ed\u30b0\u304c\u6bce\u65e5\u30ed\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u3055\u308c\u300152\u500b\u306e\u904e\u53bb\u306e\u30b3\u30d4\u30fc\u304c\u4fdd\u6301\u3055\u308c\u308b\u3053\u3068\u304c\u6307\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u524d\u8ff0\u306e\u624b\u52d5\u56de\u8ee2\u6a5f\u69cb\u306b\u985e\u4f3c\u3057\u305f\u30b3\u30de\u30f3\u30c9\u304c\u3001postrotate\u30bb\u30af\u30b7\u30e7\u30f3\u306b\u542b\u307e\u308c\u3066\u3044\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\/etc\/logrotate.d\/nginx\u3092\u65e5\u672c\u8a9e\u3067\u8a00\u3044\u63db\u3048\u308b\u3068\u3001\u300c\/etc\/logrotate.d\/nginx\u300d\u3067\u3059\u3002<\/div>\n<pre class=\"post-pre\"><code>. . .\r\npostrotate\r\n\t[ ! -f \/var\/run\/nginx.pid ] || kill -USR1 `cat \/var\/run\/nginx.pid`\r\nendscript\r\n. . .\r\n<\/code><\/pre>\n<p>\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001\u30ed\u30b0\u306e\u30ed\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u304c\u5b8c\u4e86\u3057\u305f\u3089Nginx\u306b\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u3092\u518d\u8aad\u307f\u8fbc\u307f\u3055\u305b\u308b\u3088\u3046\u306b\u6307\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>\u7d50\u8ad6<\/h2>\n<p>\u30b5\u30fc\u30d0\u30fc\u306b\u554f\u984c\u304c\u767a\u751f\u3057\u305f\u969b\u3001\u9069\u5207\u306a\u30ed\u30b0\u306e\u8a2d\u5b9a\u3068\u7ba1\u7406\u306f\u6642\u9593\u3068\u30a8\u30cd\u30eb\u30ae\u30fc\u3092\u7bc0\u7d04\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u554f\u984c\u306e\u8a3a\u65ad\u306b\u5f79\u7acb\u3064\u60c5\u5831\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308c\u3070\u3001\u4e9b\u7d30\u306a\u4fee\u6b63\u3068\u6c38\u7d9a\u7684\u306a\u982d\u75db\u306e\u9055\u3044\u3092\u751f\u3080\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30b5\u30a4\u30c8\u3092\u6a5f\u80fd\u7684\u306b\u4fdd\u3064\u305f\u3081\u306b\u3001\u30b5\u30fc\u30d0\u30fc\u30ed\u30b0\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3053\u3068\u306f\u91cd\u8981\u3067\u3059\u3002\u307e\u305f\u3001\u6a5f\u5bc6\u60c5\u5831\u3092\u516c\u958b\u3057\u3066\u3044\u306a\u3044\u3053\u3068\u3082\u78ba\u8a8d\u3057\u307e\u3059\u3002\u3053\u306e\u30ac\u30a4\u30c9\u306f\u30ed\u30b0\u306e\u7d4c\u9a13\u306b\u3064\u3044\u3066\u306e\u7d39\u4ecb\u3067\u3059\u3002\u4e00\u822c\u7684\u306a\u30d2\u30f3\u30c8\u306b\u3064\u3044\u3066\u306f\u3001\u300c\u3088\u304f\u3042\u308bNginx\u30a8\u30e9\u30fc\u306e\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u65b9\u6cd5\u300d\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u3055\u3089\u306b\u5b66\u3076\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30a4\u30f3\u30c8\u30ed\u30c0\u30af\u30b7\u30e7\u30f3 \u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc\u306e\u30c8\u30e9\u30d6\u30eb\u3092\u56de\u907f\u3059\u308b\u305f\u3081\u306b\u3001\u30ed\u30b0\u306e\u8a2d\u5b9a\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30b5\u30fc\u30d0\u30fc\u306e\u30ed\u30b0\u60c5\u5831\u3092\u8a18\u9332\u3059\u308b\u3053\u3068\u3067\u3001\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u3084\u72b6\u6cc1\u306e\u8a55\u4fa1\u306b\u5f79\u7acb\u3064\u30c7\u30fc\u30bf\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u3059\u3002 \u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067 [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[58,18],"class_list":["post-37","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>Ubuntu VPS\u4e0a\u3067\u306eNginx\u306e\u30ed\u30b0\u3068\u30ed\u30b0\u30ed\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u8a2d\u5b9a\u65b9\u6cd5 - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"Ubuntu VPS\u4e0a\u3067\u306eNginx\u306e\u30ed\u30b0\u3068\u30ed\u30b0\u30ed\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u8a2d\u5b9a\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\/ubuntu-vps\u4e0a\u3067\u306enginx\u306e\u30ed\u30b0\u3068\u30ed\u30b0\u30ed\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u8a2d\u5b9a\u65b9\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Ubuntu VPS\u4e0a\u3067\u306eNginx\u306e\u30ed\u30b0\u3068\u30ed\u30b0\u30ed\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u8a2d\u5b9a\u65b9\u6cd5\" \/>\n<meta property=\"og:description\" content=\"Ubuntu VPS\u4e0a\u3067\u306eNginx\u306e\u30ed\u30b0\u3068\u30ed\u30b0\u30ed\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u8a2d\u5b9a\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\/ubuntu-vps\u4e0a\u3067\u306enginx\u306e\u30ed\u30b0\u3068\u30ed\u30b0\u30ed\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u8a2d\u5b9a\u65b9\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-01-02T05:07:44+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-31T04:34:49+00:00\" \/>\n<meta name=\"author\" content=\"\u967d, \u5411\u5b87\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u967d, \u5411\u5b87\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"14\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\/ubuntu-vps%e4%b8%8a%e3%81%a7%e3%81%aenginx%e3%81%ae%e3%83%ad%e3%82%b0%e3%81%a8%e3%83%ad%e3%82%b0%e3%83%ad%e3%83%bc%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%81%ae%e8%a8%ad%e5%ae%9a%e6%96%b9\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-vps%e4%b8%8a%e3%81%a7%e3%81%aenginx%e3%81%ae%e3%83%ad%e3%82%b0%e3%81%a8%e3%83%ad%e3%82%b0%e3%83%ad%e3%83%bc%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%81%ae%e8%a8%ad%e5%ae%9a%e6%96%b9\/\",\"name\":\"Ubuntu VPS\u4e0a\u3067\u306eNginx\u306e\u30ed\u30b0\u3068\u30ed\u30b0\u30ed\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u8a2d\u5b9a\u65b9\u6cd5 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2023-01-02T05:07:44+00:00\",\"dateModified\":\"2025-07-31T04:34:49+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4aef6196128551a0f5d66db46c42866c\"},\"description\":\"Ubuntu VPS\u4e0a\u3067\u306eNginx\u306e\u30ed\u30b0\u3068\u30ed\u30b0\u30ed\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u8a2d\u5b9a\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\/ubuntu-vps%e4%b8%8a%e3%81%a7%e3%81%aenginx%e3%81%ae%e3%83%ad%e3%82%b0%e3%81%a8%e3%83%ad%e3%82%b0%e3%83%ad%e3%83%bc%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%81%ae%e8%a8%ad%e5%ae%9a%e6%96%b9\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-vps%e4%b8%8a%e3%81%a7%e3%81%aenginx%e3%81%ae%e3%83%ad%e3%82%b0%e3%81%a8%e3%83%ad%e3%82%b0%e3%83%ad%e3%83%bc%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%81%ae%e8%a8%ad%e5%ae%9a%e6%96%b9\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-vps%e4%b8%8a%e3%81%a7%e3%81%aenginx%e3%81%ae%e3%83%ad%e3%82%b0%e3%81%a8%e3%83%ad%e3%82%b0%e3%83%ad%e3%83%bc%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%81%ae%e8%a8%ad%e5%ae%9a%e6%96%b9\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Ubuntu VPS\u4e0a\u3067\u306eNginx\u306e\u30ed\u30b0\u3068\u30ed\u30b0\u30ed\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u8a2d\u5b9a\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\/4aef6196128551a0f5d66db46c42866c\",\"name\":\"\u967d, \u5411\u5b87\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ad96b120e219751fa368cbd7d2c48ca01b59185e6ed394449bac72614a760bf3?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ad96b120e219751fa368cbd7d2c48ca01b59185e6ed394449bac72614a760bf3?s=96&d=mm&r=g\",\"caption\":\"\u967d, \u5411\u5b87\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/hinatasora\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-vps%e4%b8%8a%e3%81%a7%e3%81%aenginx%e3%81%ae%e3%83%ad%e3%82%b0%e3%81%a8%e3%83%ad%e3%82%b0%e3%83%ad%e3%83%bc%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%81%ae%e8%a8%ad%e5%ae%9a%e6%96%b9\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Ubuntu VPS\u4e0a\u3067\u306eNginx\u306e\u30ed\u30b0\u3068\u30ed\u30b0\u30ed\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u8a2d\u5b9a\u65b9\u6cd5 - Blog - Silicon Cloud","description":"Ubuntu VPS\u4e0a\u3067\u306eNginx\u306e\u30ed\u30b0\u3068\u30ed\u30b0\u30ed\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u8a2d\u5b9a\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\/ubuntu-vps\u4e0a\u3067\u306enginx\u306e\u30ed\u30b0\u3068\u30ed\u30b0\u30ed\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u8a2d\u5b9a\u65b9\/","og_locale":"ja_JP","og_type":"article","og_title":"Ubuntu VPS\u4e0a\u3067\u306eNginx\u306e\u30ed\u30b0\u3068\u30ed\u30b0\u30ed\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u8a2d\u5b9a\u65b9\u6cd5","og_description":"Ubuntu VPS\u4e0a\u3067\u306eNginx\u306e\u30ed\u30b0\u3068\u30ed\u30b0\u30ed\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u8a2d\u5b9a\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\/ubuntu-vps\u4e0a\u3067\u306enginx\u306e\u30ed\u30b0\u3068\u30ed\u30b0\u30ed\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u8a2d\u5b9a\u65b9\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-01-02T05:07:44+00:00","article_modified_time":"2025-07-31T04:34:49+00:00","author":"\u967d, \u5411\u5b87","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u967d, \u5411\u5b87","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"14\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-vps%e4%b8%8a%e3%81%a7%e3%81%aenginx%e3%81%ae%e3%83%ad%e3%82%b0%e3%81%a8%e3%83%ad%e3%82%b0%e3%83%ad%e3%83%bc%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%81%ae%e8%a8%ad%e5%ae%9a%e6%96%b9\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-vps%e4%b8%8a%e3%81%a7%e3%81%aenginx%e3%81%ae%e3%83%ad%e3%82%b0%e3%81%a8%e3%83%ad%e3%82%b0%e3%83%ad%e3%83%bc%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%81%ae%e8%a8%ad%e5%ae%9a%e6%96%b9\/","name":"Ubuntu VPS\u4e0a\u3067\u306eNginx\u306e\u30ed\u30b0\u3068\u30ed\u30b0\u30ed\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u8a2d\u5b9a\u65b9\u6cd5 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2023-01-02T05:07:44+00:00","dateModified":"2025-07-31T04:34:49+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4aef6196128551a0f5d66db46c42866c"},"description":"Ubuntu VPS\u4e0a\u3067\u306eNginx\u306e\u30ed\u30b0\u3068\u30ed\u30b0\u30ed\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u8a2d\u5b9a\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\/ubuntu-vps%e4%b8%8a%e3%81%a7%e3%81%aenginx%e3%81%ae%e3%83%ad%e3%82%b0%e3%81%a8%e3%83%ad%e3%82%b0%e3%83%ad%e3%83%bc%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%81%ae%e8%a8%ad%e5%ae%9a%e6%96%b9\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-vps%e4%b8%8a%e3%81%a7%e3%81%aenginx%e3%81%ae%e3%83%ad%e3%82%b0%e3%81%a8%e3%83%ad%e3%82%b0%e3%83%ad%e3%83%bc%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%81%ae%e8%a8%ad%e5%ae%9a%e6%96%b9\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-vps%e4%b8%8a%e3%81%a7%e3%81%aenginx%e3%81%ae%e3%83%ad%e3%82%b0%e3%81%a8%e3%83%ad%e3%82%b0%e3%83%ad%e3%83%bc%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%81%ae%e8%a8%ad%e5%ae%9a%e6%96%b9\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"Ubuntu VPS\u4e0a\u3067\u306eNginx\u306e\u30ed\u30b0\u3068\u30ed\u30b0\u30ed\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u8a2d\u5b9a\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\/4aef6196128551a0f5d66db46c42866c","name":"\u967d, \u5411\u5b87","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ad96b120e219751fa368cbd7d2c48ca01b59185e6ed394449bac72614a760bf3?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ad96b120e219751fa368cbd7d2c48ca01b59185e6ed394449bac72614a760bf3?s=96&d=mm&r=g","caption":"\u967d, \u5411\u5b87"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/hinatasora\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-vps%e4%b8%8a%e3%81%a7%e3%81%aenginx%e3%81%ae%e3%83%ad%e3%82%b0%e3%81%a8%e3%83%ad%e3%82%b0%e3%83%ad%e3%83%bc%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%81%ae%e8%a8%ad%e5%ae%9a%e6%96%b9\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/37","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=37"}],"version-history":[{"count":1,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/37\/revisions"}],"predecessor-version":[{"id":35638,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/37\/revisions\/35638"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=37"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=37"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=37"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}