{"id":5821,"date":"2020-01-05T09:40:13","date_gmt":"2020-01-05T00:40:13","guid":{"rendered":"https:\/\/pandanote.info\/?p=5821"},"modified":"2022-08-07T12:47:02","modified_gmt":"2022-08-07T03:47:02","slug":"apache-httpdphp-fpmwordpress%e3%81%aa%e3%82%b5%e3%83%bc%e3%83%90%e3%81%aeapache-httpd%e3%82%92nginx%e3%81%ab%e5%8f%96%e3%82%8a%e6%8f%9b%e3%81%88%e3%81%a6%e3%81%bf%e3%81%9f%e3%80%82","status":"publish","type":"post","link":"https:\/\/pandanote.info\/?p=5821","title":{"rendered":"Apache httpd+php-fpm+WordPress\u306a\u30b5\u30fc\u30d0\u306eApache httpd\u3092nginx\u306b\u53d6\u308a\u63db\u3048\u3066\u307f\u305f\u3002"},"content":{"rendered":"<h2>\u306f\u3058\u3081\u306b<\/h2>\n<p>\u3053\u306e\u8a18\u4e8b\u3092\u6700\u521d\u306b\u66f8\u3044\u305f\u6642\u70b9(2020\u5e741\u6708)\u3067\u306f\u3001\u672cWeb\u30b5\u30a4\u30c8\u7b49\u3067\u306fWeb\u30b5\u30fc\u30d0\u3068\u3057\u3066Apache httpd\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002Apache httpd\u306f\u3053\u308c\u307e\u3067\u4ed5\u4e8b\u3067\u3082\u9577\u3089\u304f\u304a\u4e16\u8a71\u306b\u306a\u3063\u3066\u304a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u672cWeb\u30b5\u30a4\u30c8\u306e\u7ba1\u7406\u4eba\u305f\u308bpanda\u3092\u53d6\u308a\u5dfb\u304f\u8af8\u60c5\u52e2\u306e\u5909\u5316\u306b\u9451\u307f\u3001nginx\u306e\u8a66\u3057\u6642\u304c\u3084\u3063\u3066\u6765\u305f\u3068\u601d\u3063\u305f\u306e\u3067\u3001\u307e\u305a\u306f\u30da\u30fc\u30b8\u30d3\u30e5\u30fc\u306e\u5c11\u306a\u3044Web\u30b5\u30a4\u30c8\u306eApache httpd\u3092nginx\u306b\u53d6\u308a\u63db\u3048\u3066\u307f\u3066\u3001nginx\u81ea\u4f53\u306e\u8a2d\u5b9a\u3084\u30d5\u30a1\u30a4\u30eb\u53ca\u3073\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u30e6\u30fc\u30b6\u6a29\u9650\u306a\u3069\u3067\u6ce8\u610f\u304c\u5fc5\u8981\u3068\u601d\u308f\u308c\u308b\u70b9\u3092$n$\u500b\u304f\u3089\u3044\u307e\u3068\u3081\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<h2>\u672c\u8a18\u4e8b\u306e\u524d\u63d0\u6761\u4ef6<\/h2>\n<p>Apache httpd\u53ca\u3073Wordpress\u306f\u8a2d\u5b9a\u7b49\u306b\u3088\u308a\u7a3c\u50cd\u72b6\u6cc1\u3092\u5927\u304d\u304f\u5909\u5316\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u304c\u3001\u3053\u306e\u8a18\u4e8b\u306f\u4ee5\u4e0b\u306e\u8a2d\u5b9a\u7b49\u304c\u884c\u308f\u308c\u3066\u3044\u308b\u3082\u306e\u3068\u3057\u3066\u66f8\u3044\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<ol>\n<li>\u3053\u306e\u8a18\u4e8b\u306e\u30bf\u30a4\u30c8\u30eb\u306b\u3042\u308a\u307e\u3059\u901a\u308a\u3001Apache httpd\u3060\u3051\u3067\u306f\u306a\u304fphp-fpm\u3082\u7a3c\u50cd\u3055\u305b\u3066\u3044\u307e\u3059\u3002\u3088\u3063\u3066php-fpm\u306e\u8a2d\u5b9a\u306e\u3046\u3061\u3001\u30d7\u30ed\u30bb\u30b9\u3084\u7a3c\u50cd\u3055\u305b\u308b\u30d7\u30ed\u30bb\u30b9\u6570\u306e\u8a2d\u5b9a\u306e\u6700\u9069\u5316\u306e\u305f\u3081\u306e\u8a2d\u5b9a\u306b\u3064\u3044\u3066\u306f\u3053\u306e\u8a18\u4e8b\u3067\u306f\u6271\u3044\u307e\u305b\u3093\u3002<\/li>\n<li>\u30d1\u30fc\u30de\u30ea\u30f3\u30af\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u3082\u306e(&#8220;https:\/\/pandanote.info\/?p=5821&#8243;\u306e\u3088\u3046\u306a\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3067\u3059\u3002)\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/li>\n<li>Web\u30b5\u30fc\u30d0\u306e\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u306fFedora(\u3053\u306e\u8a18\u4e8b\u3092\u6700\u521d\u306b\u66f8\u3044\u305f\u6642\u70b9(2020\u5e741\u6708)\u306fFedora 31)\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/li>\n<\/ol>\n<h2>nginx\u306e\u8a2d\u5b9a\u3067\u6ce8\u610f\u304c\u5fc5\u8981\u3060\u3063\u305f\u3068\u3053\u308d<\/h2>\n<p>\u3053\u306e\u7bc0\u3067\u306fnginx\u306e\u8a2d\u5b9a\u3067\u6ce8\u610f\u304c\u5fc5\u8981\u3060\u3063\u305f\u3068\u3053\u308d\u3092\u5217\u6319\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h3>HTTP\u30d7\u30ed\u30c8\u30b3\u30eb\u3092\u6271\u3046\u30dd\u30fc\u30c8\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092HTTPS\u30d7\u30ed\u30c8\u30b3\u30eb\u3092\u6271\u3046\u30dd\u30fc\u30c8\u3078\u8ee2\u9001\u3059\u308b<\/h3>\n<p>nginx.conf\u306ehttp\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u306e\u4e0b\u306eserver\u30bb\u30af\u30b7\u30e7\u30f3\u306eHTTP\u30d7\u30ed\u30c8\u30b3\u30eb\u3092\u6271\u3046\u30dd\u30fc\u30c8(\u4ee5\u4e0b\u3001\u300c80\u756a\u30dd\u30fc\u30c8\u300d\u3068\u66f8\u304d\u307e\u3059\u3002)\u306b\u3064\u3044\u3066\u306e\u5b9a\u7fa9\u4e2d\u306e\u9069\u5f53\u306a\u5834\u6240(\u6700\u521d\u306elocation\u306e\u5b9a\u7fa9\u306e\u524d\u3042\u305f\u308a)\u306b\u4ee5\u4e0b\u306e\u8a2d\u5b9a\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<br \/>\n<script src=\"https:\/\/gist.github.com\/pandanote-info\/1265ee51dc6e8f3ea279b622d78b4aeb.js\"><\/script><br \/>\nrewrite\u3092\u884c\u3046\u3053\u3068\u306a\u304f\u3001\u30b5\u30af\u30c3\u3068\u8ee2\u9001\u3067\u3059\u3002\ud83d\ude0e<\/p>\n<h3>HTTPS\u30d7\u30ed\u30c8\u30b3\u30eb\u3092\u6271\u3046\u30dd\u30fc\u30c8\u306b\u3064\u3044\u3066\u306e\u8a2d\u5b9a\u306e\u8ffd\u52a0<\/h3>\n<p>nginx.conf\u306e80\u756a\u30dd\u30fc\u30c8\u306b\u3064\u3044\u3066\u306e\u5b9a\u7fa9(\u524d\u7bc0\u53c2\u7167)\u306e\u76f4\u5f8c\u306b\u4ee5\u4e0b\u306e\u8a2d\u5b9a\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<br \/>\n<script src=\"https:\/\/gist.github.com\/pandanote-info\/956d4b14c909145c67ba525f5bb584bf.js\"><\/script><br \/>\nTLS\u306fv1.3\u53ca\u3073v1.2\u306e\u307f\u306e\u30b5\u30dd\u30fc\u30c8\u3068\u3057\u3066\u3044\u307e\u3059\u3002\u53e4\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u30d6\u30e9\u30a6\u30b6\u3092\u30b5\u30dd\u30fc\u30c8\u5bfe\u8c61\u3068\u3059\u308b\u3068\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u4e0a\u306e\u554f\u984c\u304c\u3042\u308b\u3053\u3068\u306e\u4ed6\u306b\u3001\u53e4\u3044\u4ed5\u69d8\u306eHTML\u306e\u8a18\u8ff0\u306b\u3064\u3044\u3066\u306e\u30b5\u30dd\u30fc\u30c8\u3082\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u306e\u3067\u3001\u305d\u308c\u3092\u4e0d\u8981\u3068\u3059\u308b\u3053\u3068\u3067\u3001\u30b5\u30fc\u30d0\u7ba1\u7406\u4e0a\u306e\u8ca0\u62c5\u3092\u524a\u6e1b\u3059\u308b\u3053\u3068\u3082\u76ee\u7684\u3067\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001client_max_body_size\u306e\u5024\u3092\u8abf\u6574\u3059\u308b\u3053\u3068\u3067\u3001\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3067\u304d\u308b\u30d5\u30a1\u30a4\u30eb\u306e\u5927\u304d\u3055\u3092\u5927\u304d\u304f\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>WordPress\u306e\u7ba1\u7406\u30da\u30fc\u30b8\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092IP\u30a2\u30c9\u30ec\u30b9\u3067\u5236\u9650\u3059\u308b\u305f\u3081\u306e\u8a2d\u5b9a\u306e\u5225\u89e3<\/h3>\n<p>\u307f\u3093\u306a\u5927\u597d\u304dIP\u30a2\u30c9\u30ec\u30b9\u3092\u4f7f\u3063\u305f\u30a2\u30af\u30bb\u30b9\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3067\u3059\u304c\u3001\u4ed6\u306e\u6761\u4ef6\u3068\u7d44\u307f\u5408\u308f\u305b\u308b(e.g.\u7279\u5b9a\u306e\u6a5f\u7a2e\u306e\u7aef\u672b\u3067\u3001\u304b\u3064\u7279\u5b9a\u306eIP\u30a2\u30c9\u30ec\u30b9\u304b\u3089\u306e\u30a2\u30af\u30bb\u30b9\u306e\u307f\u8a31\u53ef\u3059\u308b\u5834\u5408\u3002)\u5834\u5408\u306b\u306f\u3001<\/p>\n<div class=\"code\">allow ab.cd.ef.ghi;<br \/>\nallow 2abc:defg:hijk:lmop::64;<br \/>\ndeny all;<\/div>\n<p>&nbsp;<\/p>\n<p>\u2026\u306e\u3088\u3046\u306a\u8a31\u53ef\u30ea\u30b9\u30c8\u3092\u4e26\u3079\u308b\u65b9\u6cd5\u304c\u4f7f\u3048\u307e\u305b\u3093\u3002(\u00b4\u30fb\u03c9\u30fb`)<\/p>\n<p>\u305d\u3053\u3067\u3001map\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<p>\u3042\u308a\u304c\u305f\u3044\u3053\u3068\u306b\u3001Fedora 31\u3067\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\ud83d\ude4f<\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001http\u30bb\u30af\u30b7\u30e7\u30f3\u306e\u4e0b\u306b\u4ee5\u4e0b\u306e\u8a2d\u5b9a\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002\u306a\u304a\u3001\u4ee5\u4e0b\u306e\u4f8b\u306e\u5909\u6570allowed\u53ca\u3073\u305d\u308c\u306b\u683c\u7d0d\u3059\u308b\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u5b9a\u7fa9\u306e\u65b9\u6cd5\u306b\u3064\u3044\u3066\u306f\u7279\u5225\u306a\u30eb\u30fc\u30eb\u306f\u3042\u308a\u307e\u305b\u3093\u306e\u3067\u3001\u4ed6\u306e\u4e88\u7d04\u3055\u308c\u3066\u3044\u308b\u5909\u6570\u7b49\u3068\u91cd\u8907\u3057\u306a\u3044\u9650\u308a\u81ea\u7531\u306b\u5b9a\u7fa9\u3067\u304d\u307e\u3059\u3002<\/p>\n<ol>\n<li>http\u30bb\u30af\u30b7\u30e7\u30f3\u306e\u76f4\u4e0b\u306b\u4ee5\u4e0b\u306e\u8a2d\u5b9a\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002\u3053\u306e\u4f8b\u3067\u306f\u3001\u30a2\u30af\u30bb\u30b9\u5143\u306eIP\u30a2\u30c9\u30ec\u30b9\u304cab.cd.ef.ghi\u3068\u4e00\u81f4\u3059\u308b\u304b\u3001\u5148\u982d\u304c2abc:defg:hijk:lmop:\u3068\u4e00\u81f4\u3059\u308b\u5834\u5408\u306b\u9650\u308a\u5909\u6570allowed\u306ballow\u3092\u30bb\u30c3\u30c8\u3057\u3001\u305d\u308c\u4ee5\u5916\u306e\u5834\u5408\u306b\u306fdeny\u3092\u30bb\u30c3\u30c8\u3057\u307e\u3059\u3002<br \/>\n<script src=\"https:\/\/gist.github.com\/pandanote-info\/f83432edfc76784120638f367bed67ad.js\"><\/script><br \/>\n\u306a\u304a\u3001IP\u30a2\u30c9\u30ec\u30b9\u30ea\u30b9\u30c8\u306f\u6587\u5b57\u5217\u3068\u3057\u3066\u6271\u308f\u308c\u307e\u3059\u306e\u3067\u30b5\u30d6\u30cd\u30c3\u30c8\u30de\u30b9\u30af\u306f\u4f7f\u3048\u307e\u305b\u3093\u3002IPv4\u30a2\u30c9\u30ec\u30b9\u306e\u5834\u5408\u306b\u306f\u524d\u65b9\u4e00\u81f4\u3068\u7d44\u307f\u5408\u308f\u305b\u3066\u3001<\/p>\n<div class=\"code\">aa.bb.cc. allow;<\/div>\n<p>&nbsp;<br \/>\n\u7b49\u306e\u3088\u3046\u306b\u8a2d\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u307e\u305f\u3001default\u306b\u3064\u3044\u3066\u3082\u5fd8\u308c\u305a\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002\ud83d\ude01<\/li>\n<li>server\u30bb\u30af\u30b7\u30e7\u30f3\u306e\u3046\u3061\u306e\u5fc5\u8981\u306a\u5834\u6240\u3067allowed\u5909\u6570\u3092\u53c2\u7167\u3057\u3001deny\u3067\u3042\u308b\u5834\u5408\u306b\u306f404\u3092\u8fd4\u3059\u305f\u3081\u306e\u8a2d\u5b9a\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002\u5177\u4f53\u7684\u306b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u8a2d\u5b9a\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n<script src=\"https:\/\/gist.github.com\/pandanote-info\/972c38e8742a24bdcb2a25adff3b0ea8.js\"><\/script><\/li>\n<\/ol>\n<h3>\u7279\u5b9a\u306e\u5c5e\u6027\u5024\u3092\u6301\u3064\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u8a31\u53ef\u3059\u308b\u305f\u3081\u306e\u8a2d\u5b9a\u4f8b<\/h3>\n<p>\u4f8b\u3048\u3070\u3001\u524d\u7bc0\u306e\u624b\u98062\u306e\u8a55\u4fa1\u3092\u884c\u3046\u524d\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306ballowed\u5909\u6570\u3092\u4e0a\u66f8\u304d\u3059\u308b\u3053\u3068\u3067\u3001\u7279\u5b9a\u306ehttp_user_agent\u3092\u9001\u4fe1\u3059\u308b\u7aef\u672b\u304b\u3089\u306e\u30a2\u30af\u30bb\u30b9\u3092\u7121\u6761\u4ef6\u306b\u8a31\u53ef\u3059\u308b\u8a2d\u5b9a\u3068\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n<script src=\"https:\/\/gist.github.com\/pandanote-info\/b157fe9595d667908e206b7c17e8f4e5.js\"><\/script><\/p>\n<h3>WordPress\u5074\u3067\u7528\u610f\u3057\u305f404.php\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u306e\u8a2d\u5b9a<\/h3>\n<p>Apache httpd+Wordpress\u3067\u306f\u30c6\u30fc\u30de\u7528\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u76f4\u4e0b\u306b&#8221;404.php&#8221;\u3068\u3044\u3046\u540d\u524d\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3001\u305d\u3053\u306b404\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u305f\u5834\u5408\u306b\u8868\u793a\u3055\u308c\u308b\u30e1\u30c3\u30bb\u30fc\u30b8\u7b49\u3092\u8a18\u8ff0\u3057\u3066\u304a\u3044\u3066\u3001\u304b\u3064Apache httpd\u5074\u3067\u4ee5\u4e0b\u306e\u8a2d\u5b9a\u3092\u884c\u3046\u3068\u3001404.php\u3067\u8a18\u8ff0\u3055\u308c\u305f\u30a8\u30e9\u30fc\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u308b\u4ed5\u7d44\u307f\u306b\u306a\u3063\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<div class=\"code\">ErrorDocument 404 \/index.php?error=404<\/div>\n<p>&nbsp;<\/p>\n<p>nginx\u306b\u306f\u4e0a\u8a18\u306e\u3088\u3046\u306a\u4ed5\u7d44\u307f\u304c\u3042\u308a\u307e\u305b\u3093\u306e\u3067\u3001\u8a2d\u5b9a\u3067\u4f55\u3068\u304b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u5177\u4f53\u7684\u306b\u306f404\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u305f\u969b\u306b\u306fFastCGI\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3092forward\u3059\u308b\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002\u305d\u306e\u969b\u306b\u3001FastCGI\u306b\u9069\u5207\u306aURL\u304c\u6e21\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u3066\u307f\u307e\u3057\u305f\u3002<br \/>\n<script src=\"https:\/\/gist.github.com\/pandanote-info\/880db164b584cdb37629a4053ea88376.js\"><\/script><\/p>\n<p>FastCGI\u306b\u5bfe\u3057\u3066\u306f\u74b0\u5883\u5909\u6570\u3092\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u304c\u3001\u547c\u3073\u51fa\u3059\u30d5\u30a1\u30a4\u30eb\u540d(\u3053\u3053\u3067\u306findex.php)\u3068\u30af\u30a8\u30ea\u6587\u5b57\u5217(error=404)\u3092\u5225\u3005\u306e\u74b0\u5883\u5909\u6570\u306b\u30bb\u30c3\u30c8\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<h3>gzip\u5727\u7e2e\u306e\u8a2d\u5b9a<\/h3>\n<p>gzip\u5727\u7e2e\u3082http\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u8a2d\u5b9a\u4e2d\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<div class=\"code\">gzip nginx.conf<br \/>\n    gzip on;<br \/>\n    gzip_disable &#8220;MSIE [1-6]\\.(?!.*SV1)&#8221;;<br \/>\n    gzip_vary on;<br \/>\n    gzip_types text\/plain text\/css text\/javascript image\/svg+xml image\/x-icon application\/javascript application\/x-javascript;<\/div>\n<p>&nbsp;<br \/>\nTLSv1.2\u4ee5\u964d\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u308b\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u306e\u63a5\u7d9a\u306e\u307f\u53d7\u3051\u4ed8\u3051\u308b\u8a2d\u5b9a\u3068\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u4e0a\u8a18\u306e\u8a2d\u5b9a\u306e\u3046\u3061\u53e4\u3044IE\u5bfe\u7b56\u306e2\u884c\u76ee\u306e\u8a18\u8ff0\u306f\u4e0d\u8981\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u5ff5\u306e\u305f\u3081\u8a2d\u5b9a\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<h2>nginx\u4ee5\u5916\u306e\u8a2d\u5b9a\u5909\u66f4<\/h2>\n<h3>php-fpm\u306e\u8a2d\u5b9a\u5909\u66f4<\/h3>\n<p>Fedora 31\u3067\u306fphp-fpm\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306f\/etc\/php-fpm.d\u306e\u4e0b\u306b\u3042\u308a\u307e\u3059\u304c\u3001\/etc\/php-fpm.d\/www.conf\u306e\u8a2d\u5b9a\u306e\u3046\u3061\u4ee5\u4e0b\u306e\u8a2d\u5b9a\u3092\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<div class=\"code\">user = nginx<br \/>\ngroup = nginx<br \/>\nlisten.owner = nginx<br \/>\nlisten.group = nginx<\/div>\n<p>&nbsp;<\/p>\n<h3>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u7b49\u306eowner\u306e\u5909\u66f4<\/h3>\n<p>Apache httpd,php-fpm\u307e\u305f\u306fwordpress.conf\u304c\u4f7f\u7528\u3057\u3066\u3044\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u7b49\u306e\u3046\u3061nginx\u304c\u4f7f\u7528\u3059\u308b\u3082\u306e\u306b\u3064\u3044\u3066\u306fowner\u3092nginx\u306b\u5909\u66f4\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>Fedora 31\u3067\u306f\u4ee5\u4e0b\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u7b49\u306eowner\u3092nginx\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<ol>\n<li>\/etc\/wordpress\u53ca\u3073\u305d\u306e\u76f4\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb<\/li>\n<li>\/var\/lib\/php\/session\u53ca\u3073\u305d\u306e\u76f4\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb<\/li>\n<li>\/var\/lib\/php\/wsdlcache\u53ca\u3073\u305d\u306e\u76f4\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb<\/li>\n<li>\/var\/lib\/php\/opcache\u53ca\u3073\u305d\u306e\u76f4\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb<\/li>\n<li>\/usr\/share\/wordpress\/wp-content\/uploads\u53ca\u3073\u305d\u306e\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb<\/li>\n<\/ol>\n<p>\u307e\u305f\u3001\/etc\/wordpress\u306epermission\u3092755\u306b\u5909\u66f4\u3057\u307e\u3057\u305f\u3002<\/p>\n<h2>\u8ffd\u52a0\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<h3>Let&#8217;s encrypt\u7528\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3001certbox-nginx\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<div class=\"code\">$ sudo dnf install certbot-nginx<\/div>\n<p>&nbsp;<\/p>\n<h2>\u5b9a\u6027\u7684\u306a\u8a55\u4fa1\u306e\u3088\u3046\u306a\u3082\u306e<\/h2>\n<p>Apache httpd\u3092\u7a3c\u50cd\u3055\u305b\u305f\u72b6\u614b\u3067\u30a2\u30af\u30bb\u30b9\u3057\u305f\u3068\u304d\u306b\u306f\u4e00\u547c\u5438\u304a\u3044\u3066\u304b\u3089\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u305f\u3088\u3046\u306b\u611f\u3058\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001nginx\u306b\u5207\u308a\u66ff\u3048\u305f\u5f8c\u306f\u305d\u306e\u4e00\u547c\u5438\u304c\u306a\u304f\u306a\u3063\u305f\u3088\u3046\u306b\u611f\u3058\u307e\u3057\u305f\u3002<\/p>\n<p>\u5207\u308a\u66ff\u3048\u306e\u305f\u3081\u306e\u8a2d\u5b9a\u306b\u30df\u30b9\u304c\u3042\u308b\u3068\u4ed6\u306eWeb\u30b5\u30a4\u30c8\u69d8\u3067\u3082\u6307\u6458\u306e\u3042\u308b\u901a\u308a404\u30a8\u30e9\u30fc\u3092\u9023\u767a\u3057\u3066\u3057\u307e\u3046\u305f\u3081\u3001\u305d\u306e\u89e3\u6c7a\u306e\u305f\u3081\u306b\u306f\u305d\u308c\u306a\u308a\u306e\u624b\u9593\u3092\u8981\u3057\u307e\u3059\u304c\u3001\u5207\u308a\u66ff\u3048\u3066\u307f\u308b\u4fa1\u5024\u306f\u3042\u308a\u305d\u3046\u3067\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>Apache httpd\u3067\u904b\u7528\u3057\u3066\u3044\u308b\u671f\u9593\u304c\u9577\u304f\u306a\u3063\u3066\u304f\u308b\u3068\u3001\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u304c\u300c\u79d8\u4f1d\u306e\u30bf\u30ec\u300d\u5316\u3057\u304c\u3061\u3067\u3059\u304c\u3001\u305f\u307e\u306b\u306f\u30ea\u30d5\u30a1\u30af\u30bf\u30ea\u30f3\u30b0\u3057\u3066\u307f\u308b\u306e\u3082\u60aa\u304f\u306f\u306a\u3044\u306a\u3041\u3068\u601d\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u53e4\u3044\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u306e\u30a2\u30af\u30bb\u30b9\u5bfe\u7b56\u306b\u3064\u3044\u3066\u306e\u8a2d\u5b9a\u306f\u30d0\u30c3\u30b5\u30ea\u524a\u9664\u3067\u304d\u307e\u3059\u306e\u3067\u3001\u5272\u3068\u304a\u3059\u3059\u3081\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u306f\u4ee5\u4e0a\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b \u3053\u306e\u8a18\u4e8b\u3092\u6700\u521d\u306b\u66f8\u3044\u305f\u6642\u70b9(2020\u5e741\u6708)\u3067\u306f\u3001\u672cWeb\u30b5\u30a4\u30c8\u7b49\u3067\u306fWeb\u30b5\u30fc\u30d0\u3068\u3057\u3066Apache httpd\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002Apache httpd\u306f\u3053\u308c\u307e\u3067\u4ed5\u4e8b\u3067\u3082\u9577\u3089\u304f\u304a\u4e16\u8a71\u306b\u306a\u3063\u3066\u304a\u308a\u307e\u3059\u3002 \u3057\u304b\u3057\u3001\u672cWeb\u30b5\u30a4\u30c8\u306e\u7ba1\u7406\u4eba\u305f\u308bpanda\u3092\u53d6\u308a\u5dfb\u304f\u8af8\u60c5\u52e2\u306e\u5909\u5316\u306b\u9451\u307f\u3001nginx\u306e\u8a66\u3057\u6642\u304c\u3084\u3063\u3066\u6765\u305f\u3068\u601d\u3063\u305f\u306e\u3067\u3001\u307e\u305a\u306f\u30da\u30fc\u30b8\u30d3\u30e5\u30fc\u306e\u5c11\u306a\u3044Web\u30b5\u30a4\u30c8\u306eApache httpd\u3092n\u2026 <span class=\"read-more\"><a href=\"https:\/\/pandanote.info\/?p=5821\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":5964,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,3],"tags":[],"class_list":["post-5821","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-n","category-website-2"],"_links":{"self":[{"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/posts\/5821","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pandanote.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5821"}],"version-history":[{"count":22,"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/posts\/5821\/revisions"}],"predecessor-version":[{"id":9387,"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/posts\/5821\/revisions\/9387"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/media\/5964"}],"wp:attachment":[{"href":"https:\/\/pandanote.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5821"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pandanote.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5821"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pandanote.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5821"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}