{"id":93,"date":"2022-10-31T10:30:35","date_gmt":"2022-12-14T03:01:38","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/index.php\/2023\/11\/30\/ubuntu-14-04%e3%81%a7nginx%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6www%e3%82%92%e9%9d%9ewww%e3%81%ab%e3%83%aa%e3%83%80%e3%82%a4%e3%83%ac%e3%82%af%e3%83%88%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/"},"modified":"2025-07-31T13:57:57","modified_gmt":"2025-07-31T04:57:57","slug":"ubuntu-14-04%e3%81%a7nginx%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6www%e3%82%92%e9%9d%9ewww%e3%81%ab%e3%83%aa%e3%83%80%e3%82%a4%e3%83%ac%e3%82%af%e3%83%88%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-14-04%e3%81%a7nginx%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6www%e3%82%92%e9%9d%9ewww%e3%81%ab%e3%83%aa%e3%83%80%e3%82%a4%e3%83%ac%e3%82%af%e3%83%88%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/","title":{"rendered":"Ubuntu 14.04\u3067Nginx\u3092\u4f7f\u7528\u3057\u3066www\u3092\u975ewww\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306e\u65b9\u6cd5"},"content":{"rendered":"<h3>\u3053\u306e\u6587\u7ae0\u3067\u306f\u3001\u30a4\u30f3\u30c8\u30ed\u30c0\u30af\u30b7\u30e7\u30f3\u306b\u3064\u3044\u3066\u8a71\u3057\u307e\u3059\u3002<\/h3>\n<p>\u591a\u304f\u306e\u30a6\u30a7\u30d6\u958b\u767a\u8005\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u3084\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306bwww\u30b5\u30d6\u30c9\u30e1\u30a4\u30f3\u3068\u30eb\u30fc\u30c8\uff08\u975ewww\uff09\u30c9\u30e1\u30a4\u30f3\u306e\u4e21\u65b9\u3067\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3064\u307e\u308a\u3001www.my-website.com\u3068my-website.com\u3092\u8a2a\u308c\u308b\u30e6\u30fc\u30b6\u30fc\u306f\u540c\u3058\u4f53\u9a13\u3092\u3059\u308b\u3079\u304d\u3067\u3059\u3002\u8a2d\u5b9a\u65b9\u6cd5\u306f\u69d8\u3005\u3042\u308a\u307e\u3059\u304c\u3001\u6700\u3082SEO\u306b\u512a\u3057\u3044\u89e3\u6c7a\u7b56\u306f\u3001\u597d\u307f\u306e\u30c9\u30e1\u30a4\u30f3\uff08\u30b5\u30d6\u30c9\u30e1\u30a4\u30f3\u307e\u305f\u306f\u30eb\u30fc\u30c8\u30c9\u30e1\u30a4\u30f3\uff09\u3092\u9078\u629e\u3057\u3001\u4ed6\u65b9\u3092\u8a2a\u308c\u308b\u30e6\u30fc\u30b6\u30fc\u3092\u597d\u307e\u3057\u3044\u30c9\u30e1\u30a4\u30f3\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3055\u305b\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>HTTP\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306b\u306f\u3055\u307e\u3056\u307e\u306a\u7a2e\u985e\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u3053\u306e\u30b7\u30ca\u30ea\u30aa\u3067\u306f\u3001301\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3092\u4f7f\u7528\u3059\u308b\u306e\u304c\u6700\u9069\u3067\u3059\u3002301\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306f\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306b\u5bfe\u3057\u3066\u300c\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u305f\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306f\u6c38\u4e45\u7684\u306b\u5225\u306eURL\u306b\u79fb\u52d5\u3057\u307e\u3057\u305f\u3002\u305d\u3061\u3089\u306b\u79fb\u52d5\u3057\u3066\u304f\u3060\u3055\u3044\u300d\u3068\u4f1d\u3048\u307e\u3059\u3002\u30d6\u30e9\u30a6\u30b6\u306f\u30b5\u30fc\u30d0\u30fc\u304b\u3089HTTP 301\u306e\u5fdc\u7b54\u30b3\u30fc\u30c9\u3092\u53d7\u3051\u53d6\u308b\u3068\u3001\u65b0\u3057\u3044URL\u306b\u5bfe\u3057\u3066\u7b2c\u4e8c\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1\u3057\u3001\u30e6\u30fc\u30b6\u30fc\u306f\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u3092\u8868\u793a\u3055\u308c\u307e\u3059\u304c\u3001\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3055\u308c\u3066\u3044\u305f\u3053\u3068\u306b\u6c17\u3065\u304b\u306a\u3044\u5834\u5408\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3069\u3046\u3057\u3066\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc\u306e\u8a2d\u5b9a\u3092\u5909\u66f4\u3057\u3066\u3001\u4e21\u65b9\u306e\u30c9\u30e1\u30a4\u30f3\u540d\u306b\u5bfe\u3057\u3066\u540c\u3058\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u3092\u63d0\u4f9b\u3057\u306a\u3044\u306e\u3067\u3057\u3087\u3046\u304b\uff1f\u305d\u308c\u306f\u7c21\u5358\u305d\u3046\u306b\u601d\u3048\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001301\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306eSEO\u306e\u5229\u70b9\u306f\u5f97\u3089\u308c\u307e\u305b\u3093\u3002\u6c38\u4e45\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306f\u691c\u7d22\u30a8\u30f3\u30b8\u30f3\u306e\u30af\u30ed\u30fc\u30e9\u30fc\u306b\u5bfe\u3057\u3066\u3001\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306e\u6b63\u898f\u306e\u5834\u6240\u304c1\u3064\u3042\u308b\u3053\u3068\u3092\u4f1d\u3048\u308b\u305f\u3081\u3001\u305d\u306eURL\u306e\u691c\u7d22\u30e9\u30f3\u30ad\u30f3\u30b0\u304c\u5411\u4e0a\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001Ubuntu 14.04\u4e0a\u3067Nginx\u3092\u4f7f\u7528\u3057\u3066301\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002Nginx\u3067\u306f\u306a\u304fApache\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u4ee3\u308f\u308a\u306b\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\uff1aUbuntu 14.04\u3067Apache\u3092\u4f7f\u7528\u3057\u3066www\u304b\u3089Non-www\u3078\u306e\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3092\u884c\u3046\u65b9\u6cd5\u3002<\/p>\n<h2>\u524d\u63d0\u6761\u4ef6 (Zentei jouken)<\/h2>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u5b8c\u4e86\u3059\u308b\u305f\u3081\u306b\u3001\u6700\u521d\u306b\u5fc5\u8981\u306a\u3082\u306e\u306f\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>Superuser privileges (a user in the sudo group) on the server that is running Nginx. If you don\u2019t already have that set up, follow this tutorial: Initial Server Setup with Ubuntu 14.04.<\/li>\n<li>Nginx installed and configured to serve your website. Follow this tutorial to do that: How to Install Nginx on Ubuntu 14.04. Also read: How To Set Up Nginx Server Blocks (Virtual Hosts) On Ubuntu 14.04 LTS.<\/li>\n<li>A registered domain name. If you don\u2019t have one yet, you can get a free one from Freenom. You may use whatever DNS provider you like (including your registrar) to host your domain\u2019s records\u2014just make sure to point your registrar to your provider\u2019s nameservers. If you opt to use Silicon Cloud DNS, this article from our documentation shows how to do that.<\/li>\n<\/ul>\n<p>\u3067\u306f\u3001\u3042\u306a\u305f\u306eDNS\u30ec\u30b3\u30fc\u30c9\u306e\u8a2d\u5b9a\u304b\u3089\u59cb\u3081\u307e\u3057\u3087\u3046\u3002 (De wa, anata no DNS rek\u014ddo no settei kara hajimemashou.)<\/p>\n<h2>\u30b9\u30c6\u30c3\u30d71 \u2014 DNS\u30ec\u30b3\u30fc\u30c9\u306e\u8a2d\u5b9a<\/h2>\n<p>\u6700\u521d\u306b\u3001www.my-website.com \u3068 my-website.com \u306e\u4e21\u65b9\u3092\u3001Nginx\u3092\u5b9f\u884c\u3057\u3066\u3044\u308b\u30b5\u30fc\u30d0\u30fc\u306b\u5411\u3051\u3066\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 (\u4ee5\u4e0b\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001\u30c9\u30e1\u30a4\u30f3\u304c my-website.com \u3067\u3042\u308b\u3053\u3068\u3092\u524d\u63d0\u3068\u3057\u3066\u3044\u307e\u3059\u3002\u305d\u308c\u3092\u898b\u304b\u3051\u308b\u5834\u6240\u3054\u3068\u306b\u3001\u72ec\u81ea\u306e\u30c9\u30e1\u30a4\u30f3\u306b\u7f6e\u304d\u63db\u3048\u3066\u304f\u3060\u3055\u3044\u3002) \u3053\u308c\u306f\u3001\u305d\u308c\u305e\u308c\u306e\u540d\u524d\u306b\u5bfe\u3057\u3066\u3001Nginx\u30b5\u30fc\u30d0\u30fc\u306eIP\u30a2\u30c9\u30ec\u30b9\u3092\u6307\u3059DNS\u306eA\u30ec\u30b3\u30fc\u30c9\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u884c\u3044\u307e\u3059\u3002<\/p>\n<p>\u3042\u306a\u305f\u306eDNS\u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u306e\u30a6\u30a7\u30d6\u30b3\u30f3\u30bd\u30fc\u30eb\u3092\u958b\u3044\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306fSilicon Cloud DNS\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>\u300c\u30c9\u30e1\u30a4\u30f3\u306e\u8ffd\u52a0\u300d\u30d5\u30a9\u30fc\u30e0\u306b\u3001\u767b\u9332\u3055\u308c\u305f\u30c9\u30e1\u30a4\u30f3\u540d\u3092\u30c6\u30ad\u30b9\u30c8\u30d5\u30a3\u30fc\u30eb\u30c9\u306b\u5165\u529b\u3057\u3001\u300c\u30c9\u30e1\u30a4\u30f3\u3092\u8ffd\u52a0\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u65b0\u3057\u3044\u30c9\u30e1\u30a4\u30f3\u306e\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u3001\u30c9\u30e1\u30a4\u30f3\u306e\u30ec\u30b3\u30fc\u30c9\u3092\u8868\u793a\u30fb\u8ffd\u52a0\u30fb\u524a\u9664\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u65b0\u3057\u3044\u30ec\u30b3\u30fc\u30c9\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001\u30db\u30b9\u30c8\u540d\u306e\u30c6\u30ad\u30b9\u30c8\u30d5\u30a3\u30fc\u30eb\u30c9\u306b\u300c@\u300d\u3068\u5165\u529b\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u30eb\u30fc\u30c8\u30c9\u30e1\u30a4\u30f3\u540d\u3067\u3042\u308bmy-website.com\u306e\u5358\u7d14\u306a\u30ec\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u793a\u3059\u7279\u5225\u306a\u6587\u5b57\u3067\u3059\u3002[WILL DIRECT TO]\u306e\u30c6\u30ad\u30b9\u30c8\u30d5\u30a3\u30fc\u30eb\u30c9\u306b\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u306e\u516c\u958bIPv4\u30a2\u30c9\u30ec\u30b9\u3092\u5165\u529b\u3057\u3001\u300c\u30ec\u30b3\u30fc\u30c9\u3092\u4f5c\u6210\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002\uff08TTL\u3092\u5909\u66f4\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002\uff09<\/p>\n<p>\u7b2c\u4e8c\u306eDNS\u30ec\u30b3\u30fc\u30c9\u3067\u306f\u3001A\u30ec\u30b3\u30fc\u30c9\u306e\u4ee3\u308f\u308a\u306bCNAME\u30ec\u30b3\u30fc\u30c9\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002CNAME\u30ec\u30b3\u30fc\u30c9\u306fIP\u30a2\u30c9\u30ec\u30b9\u306e\u4ee3\u308f\u308a\u306b\u5225\u306e\u540d\u524d\u3092\u6307\u3059\u30a8\u30a4\u30ea\u30a2\u30b9\u3067\u3059\u3002www.my-website.com\u3092my-website.com\u306b\u5411\u3051\u308bCNAME\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u3001www\u30b5\u30d6\u30c9\u30e1\u30a4\u30f3\u3078\u306eHTTP\u30ea\u30af\u30a8\u30b9\u30c8\u306f\u30eb\u30fc\u30c8\u30c9\u30e1\u30a4\u30f3\u306eA\u30ec\u30b3\u30fc\u30c9\u304c\u4f5c\u6210\u3055\u308c\u305f\u305f\u3081\u3001\u30b5\u30fc\u30d0\u30fc\u306b\u5c4a\u304f\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u7c21\u5358\u306b\u3059\u308b\u305f\u3081\u306b\u3001\u6700\u521d\u306eA\u30ec\u30b3\u30fc\u30c9\u3068\u540c\u69d8\u306b\u3082\u30461\u3064\u306eA\u30ec\u30b3\u30fc\u30c9\u3092\u4f5c\u6210\u3057\u3001HOSTNAME\u30d5\u30a3\u30fc\u30eb\u30c9\u306b\u300cwww\u300d\u3092\u5165\u529b\u3057\u3001WILL DIRECT TO\u30d5\u30a3\u30fc\u30eb\u30c9\u306b\u30b5\u30fc\u30d0\u30fc\u306e\u516c\u958bIP\u30a2\u30c9\u30ec\u30b9\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u30ec\u30b3\u30fc\u30c9\u3092\u4e21\u65b9\u4f5c\u6210\u3057\u305f\u3089\u3001\u3053\u3093\u306a\u611f\u3058\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/656454e2daa94e2bdf7b072e\/16-0.png\" alt=\"Required A records\" \/><\/div>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u65e5\u672c\u8a9e\u3067\u8a00\u3044\u63db\u3048\u307e\u3059\uff081\u3064\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3060\u3051\uff09\uff1a<br \/>\n2\u3064\u306e\u30ec\u30b3\u30fc\u30c9\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001my-website.com\u3068www.my-website.com\u306e\u4e21\u65b9\u306e\u30a6\u30a7\u30d6\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u304a\u4f7f\u3044\u306eNginx\u30b5\u30fc\u30d0\u30fc\u306b\u5230\u9054\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u3067\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u3092\u8a2d\u5b9a\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>\u30b9\u30c6\u30c3\u30d72 \u2014 Nginx\u3067\u306e\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306e\u8a2d\u5b9a<\/h2>\n<p>\u300c\u524d\u63d0\u6761\u4ef6\u300d\u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u308b\u901a\u308a\u3001Nginx\u3067\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306e\u8a2d\u5b9a\u3092\u6e08\u307e\u305b\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306e\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\u304c\u30e1\u30a4\u30f3\u306e\u300c\/etc\/nginx\/sites-enabled\/default\u300d\u30d5\u30a1\u30a4\u30eb\u306b\u3042\u308b\u304b\u3001\u307e\u305f\u306f\u72ec\u81ea\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u3042\u308b\u304b\u306f\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3002\u91cd\u8981\u306a\u306e\u306f\u3001server_name\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u304c\u300cmy-website.com\u300d\u3068\/\u307e\u305f\u306f\u300cwww.my-website.com\u300d\u3068\u8a2d\u5b9a\u3055\u308c\u305f\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\u304c\u3044\u304f\u3064\u304b\u3042\u308b\u3053\u3068\u3067\u3059\u3002server_name\u306b1\u3064\u307e\u305f\u306f\u4e21\u65b9\u306e\u540d\u524d\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u304b\u306f\u554f\u984c\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u4eca\u306f\u3001\u30b5\u30a4\u30c8\u3092\u30db\u30b9\u30c8\u3059\u308b\u969b\u306b\u4f7f\u7528\u3059\u308b\u540d\u524d\u3092\u6c7a\u3081\u308b\u6642\u3067\u3059\u3002<\/p>\n<p>\u304a\u6c17\u306b\u5165\u308a\u306e\u30a8\u30c7\u30a3\u30bf\u3001\u3082\u3057\u304f\u306fnano\u3067\u3001\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306e\u8a2d\u5b9a\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u30d5\u30a1\u30a4\u30eb\uff08\u4f8b\uff1a\/etc\/nginx\/sites-available\/my-website.com.conf\uff09\u3092\u958b\u3044\u3066\u304f\u3060\u3055\u3044\u3002\u305d\u3057\u3066\u3001server_name\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3092\u898b\u3064\u3051\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\/sites-available\/<mark>my-website.com.conf<\/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<div>\n<p>\u4ee5\u4e0b\u306e\u6587\u3092\u65e5\u672c\u8a9e\u3067\u81ea\u7136\u306b\u8a00\u3044\u63db\u3048\u3066\u304f\u3060\u3055\u3044\u3002\u4e00\u3064\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u3059\u3002<\/p>\n<p>\u300c\/etc\/nginx\/sites-available\/my-website.com.conf\u300d<\/p>\n<\/div>\n<pre class=\"post-pre\"><code>server {\r\n    . . .\r\n    server_name <mark>my-website.com<\/mark> <mark>www.my-website.com<\/mark>\r\n    . . .\r\n}\r\n<\/code><\/pre>\n<p>\u3082\u3057www.my-website.com\u3092my-website.com\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3057\u305f\u3044\u5834\u5408\u306f\u3001server_name\u306e\u884c\u304b\u3089www.my-website.com\u3092\u524a\u9664\u3057\u3001\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3057\u3066\u7d42\u4e86\u3057\u3066\u304f\u3060\u3055\u3044\u3002\uff08my-website.com\u3092www.my-website.com\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u305d\u306e\u4ee3\u308f\u308a\u306bmy-website.com\u3092\u524a\u9664\u3057\u3066\u304f\u3060\u3055\u3044\u3002\uff09<\/p>\n<p>\u305d\u306e\u5f8c\u3001\u65b0\u3057\u3044Nginx\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u30d5\u30a1\u30a4\u30eb\u306e\u5834\u6240\u306f\/etc\/nginx\/sites-available\/www.my-website.com.conf\u3068\u3057\u307e\u3059\uff08\u3082\u3057\u304f\u306f\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3057\u3066\u3044\u308b\u30b5\u30a4\u30c8\u540d\u306b\u5408\u308f\u305b\u3066\/etc\/nginx\/sites-available\/my-website.com.conf\u3068\u3057\u3066\u304f\u3060\u3055\u3044\uff09\u3002\u30d5\u30a1\u30a4\u30eb\u540d\u306f\u306a\u3093\u3067\u3082\u69cb\u3044\u307e\u305b\u3093\u304c\u3001Nginx\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306f\u5e38\u306b.conf\u3067\u7d42\u308f\u308b\u3088\u3046\u306b\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\/sites-available\/www.<mark>my-website.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>\u81ea\u5206\u306e\u30c9\u30e1\u30a4\u30f3\u540d\u3067\u3042\u308b\u300cmy-website.com\u300d\u3092\u4f7f\u3063\u3066\u3001\u4ee5\u4e0b\u306e\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\u3092\u30d5\u30a1\u30a4\u30eb\u306b\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\u4ee5\u4e0b\u306e\u6587\u3092\u65e5\u672c\u8a9e\u3067\u8a00\u3044\u63db\u3048\u308b\uff08\u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u4e00\u3064\u3060\u3051\u5fc5\u8981\u3067\u3059\uff09\uff1a<br \/>\n\u300c\/etc\/nginx\/sites-available\/www.my-website.com.conf\u300d<\/div>\n<pre class=\"post-pre\"><code>server {\r\n    server_name www.<mark>my-website.com<\/mark>;\r\n    return 301 $scheme:\/\/<mark>my-website.com<\/mark>$request_uri;\r\n}\r\n<\/code><\/pre>\n<p>\u3082\u3057\u3001my-website.com\u3092www\u30b5\u30d6\u30c9\u30e1\u30a4\u30f3\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3059\u308b\u5834\u5408\u306f\u3001server_name\u306b\u306fmy-website.com\u306e\u307f\u3092\u3001\u6b21\u306e\u884c\u306eURL\u306b\u306fwww.my-website.com\u3092\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u7d42\u308f\u3063\u305f\u3089\u4fdd\u5b58\u3057\u3066\u7d42\u4e86\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u305d\u306e\u5f8c\u3001\u65b0\u3057\u3044\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u3092\/etc\/nginx\/sites-enabled\u306b\u4f5c\u6210\u3057\u3001Nginx\u3092\u518d\u8d77\u52d5\u5f8c\u306b\u8a8d\u8b58\u3055\u305b\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\">ln<\/span> <span class=\"token parameter variable\">-s<\/span> \/etc\/nginx\/sites-available\/www.<mark>my-website.com<\/mark>.conf \/etc\/nginx\/sites-enabled\/<\/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\u3088\u3046\u306b nginx \u306e\u8a2d\u5b9a\u3092\u5909\u66f4\u3057\u3001www.my-website.com \u3092\u30ea\u30af\u30a8\u30b9\u30c8\u3059\u308b\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306b\u5bfe\u3057\u3066301\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3092\u9001\u308a\u3001\u4ee3\u308f\u308a\u306bmy-website.com \u3092\u8a2a\u308c\u308b\u3088\u3046\u306b\u6307\u793a\u3057\u307e\u3059\u3002\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306f\u30ea\u30af\u30a8\u30b9\u30c8 URI \u3092\u4fdd\u6301\u3059\u308b\u305f\u3081\u3001http:\/\/www.my-website.com\/login.php \u3078\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u306f http:\/\/my-website.com\/login.php \u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3055\u308c\u307e\u3059\u3002<\/p>\n<div class=\"post-conf-note\">\n<p class=\"post-conf-desc\">Note<\/p>\n<div>\u6ce8\u610f: \u4e0a\u8a18\u306e\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\u306b\u306f\u3001listen\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u305b\u3093\u3002\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u8aac\u660e\u3055\u308c\u3066\u3044\u308b\u3088\u3046\u306b\u3001listen\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u304c\u306a\u3044\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\u306f0.0.0.0:80\uff08\u3059\u3079\u3066\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306e\u30dd\u30fc\u30c880\uff09\u3067\u30ea\u30c3\u30b9\u30f3\u3055\u308c\u307e\u3059\u306e\u3067\u3001\u3053\u308c\u306f\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3002\u305f\u3060\u3057\u3001Nginx\u30b5\u30fc\u30d0\u30fc\u304c\u8907\u6570\u306eIP\u30a2\u30c9\u30ec\u30b9\u3092\u6301\u3063\u3066\u3044\u308b\u5834\u5408\u3084\u3001\u30b5\u30a4\u30c8\u304c80\u4ee5\u5916\u306e\u30dd\u30fc\u30c8\u3067\u30ea\u30c3\u30b9\u30f3\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u7279\u5b9a\u306eIP\u30a2\u30c9\u30ec\u30b9\u3068\u30dd\u30fc\u30c8\u3092\u660e\u793a\u3059\u308b\u305f\u3081\u306blisten\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3092\u8ffd\u52a0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002\u30b5\u30a4\u30c8\u306e\u30e1\u30a4\u30f3\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\u3067\u4f7f\u7528\u3057\u3066\u3044\u308blisten\u306e\u5024\u3068\u540c\u3058\u5024\u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/div>\n<\/div>\n<p>\u5909\u66f4\u3092\u9069\u7528\u3059\u308b\u524d\u306b\u3001Nginx\u306e\u8a2d\u5b9a\u306b\u30a8\u30e9\u30fc\u304c\u306a\u3044\u3053\u3068\u3092\u78ba\u8a8d\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>\u3082\u3057\u69cb\u6587\u30a8\u30e9\u30fc\u3092\u8d77\u3053\u3057\u3066\u3044\u306a\u3051\u308c\u3070\uff08\u30bb\u30df\u30b3\u30ed\u30f3\u3092\u5fd8\u308c\u305f\u306a\u3069\uff09\u3001\u8a2d\u5b9a\u306f\u554f\u984c\u306a\u3044\u306f\u305a\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>nginx: the configuration file \/etc\/nginx\/nginx.conf syntax is ok nginx: configuration file \/etc\/nginx\/nginx.conf test is successful<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u65b0\u3057\u3044\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u30eb\u30fc\u30eb\u3092\u9069\u7528\u3059\u308b\u305f\u3081\u306b\u3001Nginx\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> <span class=\"token function\">service<\/span> nginx restart<\/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>\u30d6\u30e9\u30a6\u30b6\u3067www.my-website.com\u3092\u8a2a\u308c\u308b\u524d\u306b\u3001\u30b5\u30fc\u30d0\u30fc\u307e\u305f\u306f\u30ed\u30fc\u30ab\u30eb\u30de\u30b7\u30f3\uff08\u30ed\u30fc\u30ab\u30eb\u306bcurl\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u5834\u5408\uff09\u3067curl\u3092\u4f7f\u7528\u3057\u3066\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3063\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\">curl<\/span> <span class=\"token parameter variable\">-IL<\/span> http:\/\/www.<mark>my-website.com<\/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>-I\u30d5\u30e9\u30b0\u306f\u3001curl\u306b\u5bfe\u3057\u3066\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u30dd\u30f3\u30b9\u304b\u3089\u30d8\u30c3\u30c0\u30fc\u306e\u307f\u3092\u8868\u793a\u3059\u308b\u3088\u3046\u306b\u6307\u793a\u3057\u307e\u3059\u3002-L\u30d5\u30e9\u30b0\u306f\u3001curl\u306b\u5bfe\u3057\u3066\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u306e\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306b\u5f93\u3046\u3088\u3046\u306b\u6307\u793a\u3057\u3001\u81ea\u52d5\u7684\u306b2\u56de\u76ee\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092URL\u3067\u6307\u5b9a\u3055\u308c\u305f\u5834\u6240\u3078\u884c\u3046\u3088\u3046\u306b\u3057\u307e\u3059\uff08\u30a6\u30a7\u30d6\u30d6\u30e9\u30a6\u30b6\u3068\u540c\u69d8\u306e\u52d5\u4f5c\u3067\u3059\uff09\u3002301\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001curl\u306f2\u56de\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3044\u30012\u3064\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u306e\u30d8\u30c3\u30c0\u30fc\u306e\u307f\u304c\u8868\u793a\u3055\u308c\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>HTTP\/1.1 301 Moved Permanently Server: nginx\/1.20.1 Date: Thu, 08 Dec 2022 19:24:44 GMT Content-Type: text\/html Content-Length: 169 Connection: keep-alive Location: http:\/\/my-website.com HTTP\/1.1 200 OK Server: nginx\/1.20.1 Date: Thu, 08 Dec 2022 19:24:44 GMT Content-Type: text\/html Content-Length: 57 Last-Modified: Thu, 01 Dec 2022 22:10:57 GMT Connection: keep-alive ETag: &#8220;63892671-39&#8221; Accept-Ranges: bytes<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u6700\u521d\u306e\u8981\u6c42\u306b\u5bfe\u3059\u308b301\uff08\u6c38\u4e45\u306b\u79fb\u52d5\u3057\u307e\u3057\u305f\uff09\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u306b\u304a\u3044\u3066\u3001 http:\/\/www.my-website.com\u3078\u306e\u6700\u5f8c\u306e\u30d8\u30c3\u30c0\u30fc\u300cLocation: http:\/\/my-website.com\u300d\u306b\u6ce8\u76ee\u3057\u3066\u304f\u3060\u3055\u3044\u30022\u756a\u76ee\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u306fcurl\u306b\u3088\u308bhttp:\/\/my-website.com\u3078\u306e\u8ffd\u52a0\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u304b\u3089\u6765\u3066\u304a\u308a\u3001\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u304c\u6b63\u5e38\u3067\u3042\u308c\u3070\u3001\u30b5\u30fc\u30d0\u30fc\u306f200\uff08OK\uff09\u3067\u5fdc\u7b54\u3057\u3066\u304f\u308c\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<p>\u6700\u5f8c\u306b\u3001\u30a6\u30a7\u30d6\u30d6\u30e9\u30a6\u30b6\u3067http:\/\/www.my-website.com\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3061\u3089\u3063\u3068\u76ee\u3092\u96e2\u3057\u3066\u3057\u307e\u3046\u3068\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u304c\u898b\u9003\u3055\u308c\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u901a\u5e38\u901a\u308a\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u304c\u3001\u30a2\u30c9\u30ec\u30b9\u30d0\u30fc\u3092\u518d\u5ea6\u78ba\u8a8d\u3059\u308b\u3068URL\u306b\u300cwww\u300d\u304c\u542b\u307e\u308c\u3066\u3044\u306a\u3044\u3053\u3068\u306b\u6c17\u3065\u304f\u3067\u3057\u3087\u3046\u3002\u307b\u3068\u3093\u3069\u306e\u30e6\u30fc\u30b6\u30fc\u306f\u6c17\u3065\u304b\u306a\u3044\u3067\u3057\u3087\u3046\u3057\u3001\u305d\u306e\u305f\u3081http:\/\/my-website.com\u3092\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u305f\u306e\u3068\u540c\u3058\u4f53\u9a13\u3092\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>\u7d50\u8ad6<\/h2>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306e\u305f\u3081\u306b2\u3064\u306eDNS\u30ec\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3057\u3001Nginx\u3092\u8a2d\u5b9a\u3057\u3066\u30b5\u30d6\u30c9\u30e1\u30a4\u30f3\u3092\u512a\u5148\u30c9\u30e1\u30a4\u30f3\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3057\u307e\u3057\u305f\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306f\u4e21\u65b9\u306e\u30c9\u30e1\u30a4\u30f3\u7d4c\u7531\u3067\u30a2\u30af\u30bb\u30b9\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002\u304a\u305d\u3089\u304f\u3001\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u8aad\u3080\u524d\u304b\u3089\u3059\u3067\u306b\u4e21\u65b9\u306e\u30c9\u30e1\u30a4\u30f3\u3092\u4f7f\u7528\u3057\u3066\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u3066\u3044\u305f\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u3057\u304b\u3057\u3001Nginx\u306e\u8a2d\u5b9a\u306b\u8ffd\u52a0\u3057\u305f\u308f\u305a\u304b4\u884c\u306e\u30b3\u30fc\u30c9\u3067\u3001\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306e\u691c\u7d22\u30a8\u30f3\u30b8\u30f3\u306b\u304a\u3051\u308b\u8a55\u4fa1\u3092\u5411\u4e0a\u3055\u305b\u3001\u3088\u308a\u591a\u304f\u306e\u30e6\u30fc\u30b6\u30fc\u306b\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u4e0a\u3067\u516c\u958b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u3069\u306e\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\u304c\u7279\u5b9a\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u51e6\u7406\u3059\u308b\u304bNginx\u304c\u3069\u306e\u3088\u3046\u306b\u6c7a\u5b9a\u3059\u308b\u304b\u306b\u3064\u3044\u3066\u3001\u3055\u3089\u306b\u8a73\u3057\u3044\u60c5\u5831\u304c\u6b32\u3057\u3044\u3067\u3059\u304b\uff1f\u3053\u306e\u30ac\u30a4\u30c9\u3092\u898b\u3066\u304f\u3060\u3055\u3044\uff1a\u300cNginx\u306e\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\u3068\u30ed\u30b1\u30fc\u30b7\u30e7\u30f3\u30d6\u30ed\u30c3\u30af\u306e\u9078\u629e\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3092\u7406\u89e3\u3059\u308b\u300d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u306e\u6587\u7ae0\u3067\u306f\u3001\u30a4\u30f3\u30c8\u30ed\u30c0\u30af\u30b7\u30e7\u30f3\u306b\u3064\u3044\u3066\u8a71\u3057\u307e\u3059\u3002 \u591a\u304f\u306e\u30a6\u30a7\u30d6\u958b\u767a\u8005\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u3084\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306bwww\u30b5\u30d6\u30c9\u30e1\u30a4\u30f3\u3068\u30eb\u30fc\u30c8\uff08\u975ewww\uff09\u30c9\u30e1\u30a4\u30f3\u306e\u4e21\u65b9\u3067\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3064\u307e\u308a\u3001w [&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,26],"class_list":["post-93","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-linux","tag-26"],"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 14.04\u3067Nginx\u3092\u4f7f\u7528\u3057\u3066www\u3092\u975ewww\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306e\u65b9\u6cd5 - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"Ubuntu 14.04\u3067Nginx\u3092\u4f7f\u7528\u3057\u3066www\u3092\u975ewww\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\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\/ubuntu-14-04\u3067nginx\u3092\u4f7f\u7528\u3057\u3066www\u3092\u975ewww\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3059\u308b\u65b9\u6cd5\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Ubuntu 14.04\u3067Nginx\u3092\u4f7f\u7528\u3057\u3066www\u3092\u975ewww\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306e\u65b9\u6cd5\" \/>\n<meta property=\"og:description\" content=\"Ubuntu 14.04\u3067Nginx\u3092\u4f7f\u7528\u3057\u3066www\u3092\u975ewww\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\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\/ubuntu-14-04\u3067nginx\u3092\u4f7f\u7528\u3057\u3066www\u3092\u975ewww\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3059\u308b\u65b9\u6cd5\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2022-12-14T03:01:38+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-31T04:57:57+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/656454e2daa94e2bdf7b072e\/16-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=\"17\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-14-04%e3%81%a7nginx%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6www%e3%82%92%e9%9d%9ewww%e3%81%ab%e3%83%aa%e3%83%80%e3%82%a4%e3%83%ac%e3%82%af%e3%83%88%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-14-04%e3%81%a7nginx%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6www%e3%82%92%e9%9d%9ewww%e3%81%ab%e3%83%aa%e3%83%80%e3%82%a4%e3%83%ac%e3%82%af%e3%83%88%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/\",\"name\":\"Ubuntu 14.04\u3067Nginx\u3092\u4f7f\u7528\u3057\u3066www\u3092\u975ewww\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306e\u65b9\u6cd5 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2022-12-14T03:01:38+00:00\",\"dateModified\":\"2025-07-31T04:57:57+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/20cfc053626f4d45c0fa7a4e7964b5b6\"},\"description\":\"Ubuntu 14.04\u3067Nginx\u3092\u4f7f\u7528\u3057\u3066www\u3092\u975ewww\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\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\/ubuntu-14-04%e3%81%a7nginx%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6www%e3%82%92%e9%9d%9ewww%e3%81%ab%e3%83%aa%e3%83%80%e3%82%a4%e3%83%ac%e3%82%af%e3%83%88%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-14-04%e3%81%a7nginx%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6www%e3%82%92%e9%9d%9ewww%e3%81%ab%e3%83%aa%e3%83%80%e3%82%a4%e3%83%ac%e3%82%af%e3%83%88%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-14-04%e3%81%a7nginx%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6www%e3%82%92%e9%9d%9ewww%e3%81%ab%e3%83%aa%e3%83%80%e3%82%a4%e3%83%ac%e3%82%af%e3%83%88%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Ubuntu 14.04\u3067Nginx\u3092\u4f7f\u7528\u3057\u3066www\u3092\u975ewww\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\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\/ubuntu-14-04%e3%81%a7nginx%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6www%e3%82%92%e9%9d%9ewww%e3%81%ab%e3%83%aa%e3%83%80%e3%82%a4%e3%83%ac%e3%82%af%e3%83%88%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Ubuntu 14.04\u3067Nginx\u3092\u4f7f\u7528\u3057\u3066www\u3092\u975ewww\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306e\u65b9\u6cd5 - Blog - Silicon Cloud","description":"Ubuntu 14.04\u3067Nginx\u3092\u4f7f\u7528\u3057\u3066www\u3092\u975ewww\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\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\/ubuntu-14-04\u3067nginx\u3092\u4f7f\u7528\u3057\u3066www\u3092\u975ewww\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3059\u308b\u65b9\u6cd5\/","og_locale":"ja_JP","og_type":"article","og_title":"Ubuntu 14.04\u3067Nginx\u3092\u4f7f\u7528\u3057\u3066www\u3092\u975ewww\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306e\u65b9\u6cd5","og_description":"Ubuntu 14.04\u3067Nginx\u3092\u4f7f\u7528\u3057\u3066www\u3092\u975ewww\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\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\/ubuntu-14-04\u3067nginx\u3092\u4f7f\u7528\u3057\u3066www\u3092\u975ewww\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3059\u308b\u65b9\u6cd5\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2022-12-14T03:01:38+00:00","article_modified_time":"2025-07-31T04:57:57+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/656454e2daa94e2bdf7b072e\/16-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":"17\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-14-04%e3%81%a7nginx%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6www%e3%82%92%e9%9d%9ewww%e3%81%ab%e3%83%aa%e3%83%80%e3%82%a4%e3%83%ac%e3%82%af%e3%83%88%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-14-04%e3%81%a7nginx%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6www%e3%82%92%e9%9d%9ewww%e3%81%ab%e3%83%aa%e3%83%80%e3%82%a4%e3%83%ac%e3%82%af%e3%83%88%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/","name":"Ubuntu 14.04\u3067Nginx\u3092\u4f7f\u7528\u3057\u3066www\u3092\u975ewww\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306e\u65b9\u6cd5 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2022-12-14T03:01:38+00:00","dateModified":"2025-07-31T04:57:57+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/20cfc053626f4d45c0fa7a4e7964b5b6"},"description":"Ubuntu 14.04\u3067Nginx\u3092\u4f7f\u7528\u3057\u3066www\u3092\u975ewww\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\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\/ubuntu-14-04%e3%81%a7nginx%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6www%e3%82%92%e9%9d%9ewww%e3%81%ab%e3%83%aa%e3%83%80%e3%82%a4%e3%83%ac%e3%82%af%e3%83%88%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-14-04%e3%81%a7nginx%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6www%e3%82%92%e9%9d%9ewww%e3%81%ab%e3%83%aa%e3%83%80%e3%82%a4%e3%83%ac%e3%82%af%e3%83%88%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-14-04%e3%81%a7nginx%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6www%e3%82%92%e9%9d%9ewww%e3%81%ab%e3%83%aa%e3%83%80%e3%82%a4%e3%83%ac%e3%82%af%e3%83%88%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"Ubuntu 14.04\u3067Nginx\u3092\u4f7f\u7528\u3057\u3066www\u3092\u975ewww\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\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\/ubuntu-14-04%e3%81%a7nginx%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6www%e3%82%92%e9%9d%9ewww%e3%81%ab%e3%83%aa%e3%83%80%e3%82%a4%e3%83%ac%e3%82%af%e3%83%88%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/93","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=93"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/93\/revisions"}],"predecessor-version":[{"id":325691,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/93\/revisions\/325691"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=93"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=93"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=93"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}