{"id":193795,"date":"2015-09-30T11:40:21","date_gmt":"2015-09-30T02:40:21","guid":{"rendered":"https:\/\/ja.wordpress.org\/support\/2015\/09\/30\/apache%e3%81%8b%e3%82%89nginx%e3%81%ab%e3%81%86%e3%81%be%e3%81%8f%e7%a7%bb%e8%a1%8c%e3%81%a7%e3%81%8d%e3%81%aa%e3%81%84%e3%80%82\/"},"modified":"2016-09-15T22:15:15","modified_gmt":"2016-09-15T13:15:15","slug":"apache%e3%81%8b%e3%82%89nginx%e3%81%ab%e3%81%86%e3%81%be%e3%81%8f%e7%a7%bb%e8%a1%8c%e3%81%a7%e3%81%8d%e3%81%aa%e3%81%84%e3%80%82","status":"closed","type":"topic","link":"https:\/\/ja.wordpress.org\/support\/topic\/apache%e3%81%8b%e3%82%89nginx%e3%81%ab%e3%81%86%e3%81%be%e3%81%8f%e7%a7%bb%e8%a1%8c%e3%81%a7%e3%81%8d%e3%81%aa%e3%81%84%e3%80%82\/","title":{"rendered":"Apache\u304b\u3089nginx\u306b\u3046\u307e\u304f\u79fb\u884c\u3067\u304d\u306a\u3044\u3002"},"content":{"rendered":"<p>\u3010\u306f\u3058\u3081\u306b\u3011<br \/>\n\u9577\u5e74 lolipop \u306e\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0(Apach http server)\u3067\u904b\u7528\u3057\u3066\u304d\u305fwordpress\u3092 \u3055\u304f\u3089VPS(nginx)\u306b\u79fb\u884c\u3057\u307e\u3057\u305f\u3002URL\u3092\u5909\u66f4\u305b\u305a\u306e\u5f15\u3063\u8d8a\u3057\u3060\u3063\u305f\u305f\u3081\u3001wordpress\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u5165\u3063\u305f\u30d5\u30a9\u30eb\u30c0\u3068DB\u306e\u5185\u5bb9\u3092\u3054\u3063\u305d\u308a\u30b3\u30d4\u30fc\u3057\u307e\u3057\u305f\u3002<br \/>\n\u3000\u7d50\u679c\u3001\u73fe\u5728\u30d6\u30ed\u30b0\u306e\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u3001\u7ba1\u7406\u30da\u30fc\u30b8\u306f\u6b63\u5e38\u306b\u8868\u793a\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<br \/>\nhttp:\/\/popcosorn.com\/blog\/<\/p>\n<p>\u3010\u73fe\u72b6\u306e\u554f\u984c\u3011<br \/>\n&#8211; \u500b\u5225\u6295\u7a3f\u304c\u8868\u793a\u3055\u308c\u306a\u3044<br \/>\n&#8212; \u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u304b\u3089\u500b\u5225\u30da\u30fc\u30b8\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068nginx\u306e\u5410\u304d\u51fa\u3059\u300cpage not found\u300d\u304c\u51fa\u529b\u3055\u308c\u308b\u3002<br \/>\n&#8212; \u76f4\u63a5\u3001\u500b\u5225\u6295\u7a3f\u3092\u8868\u793a\u3057\u3066\u3082\u540c\u69d8<br \/>\n&#8211; \u56fa\u5b9a\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u306a\u3044<br \/>\n&#8212; \u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u304b\u3089\u56fa\u5b9a\u30da\u30fc\u30b8\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068nginx\u306e\u5410\u304d\u51fa\u3059\u300cpage not found\u300d\u304c\u51fa\u529b\u3055\u308c\u308b\u3002<br \/>\n&#8212; \u76f4\u63a5\u3001\u56fa\u5b9a\u30da\u30fc\u30b8\u3092\u8868\u793a\u3057\u3066\u3082\u540c\u69d8<\/p>\n<p>\u3010\u554f\u984c\u304c\u767a\u751f\u3057\u305f\u969b\u306e\u30ed\u30b0\u306e\u5185\u5bb9\uff08\u4f8b\uff09\u3011<\/p>\n<pre><code>2015\/09\/30 11:38:38 [error] 4747#4747: *168 FastCGI sent in stderr: &quot;Primary script unknown&quot; while reading response header from upstream, client: 58.98.179.137, server: popcosorn.com, request: &quot;GET \/blog\/2015\/09\/american-underground-hiphop.html HTTP\/1.1&quot;, upstream: &quot;fastcgi:\/\/127.0.0.1:9000&quot;, host: &quot;popcosorn.com&quot;, referrer: &quot;http:\/\/popcosorn.com\/blog\/&quot;<\/code><\/pre>\n<p>\u30a8\u30e9\u30fc\u306e\u5185\u5bb9\u3067\u8abf\u67fb\u4e2d\u3067\u3059\u304c\u3001\u89e3\u6c7a\u7b56\u306f\u3064\u304b\u3081\u3066\u304a\u308a\u307e\u305b\u3093\u3002\uff08\u5f15\u304d\u7d9a\u304d\u8abf\u67fb\u4e2d\u3067\u3059\uff09<\/p>\n<p>\u3010\u6539\u5584\u304c\u5fc5\u8981\u3068\u601d\u308f\u308c\u308b\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3011<br \/>\n\/etc\/nginx\/conf.d\/wordpress.conf<br \/>\n\u2014\u2028<\/p>\n<pre><code>server {\n    listen       80;\n    server_name  popcosorn.com;\n\n    #charset koi8-r;\n    charset utf-8;\n    access_log  \/var\/log\/nginx\/log\/host.access.log  main;\n\n    location \/ {\n        root   \/home\/acchon;\n        index  index.html index.htm index.php;\n\n        # wordpress custom perm link\n        try_files $uri $uri\/ \/index.php?q=$uri&amp;$args;\n    }\n\n    #error_page  404              \/404.html;\n\n    # redirect server error pages to the static page \/50x.html\n    #\n    error_page   500 502 503 504  \/50x.html;\n    location = \/50x.html {\n        root   \/usr\/share\/nginx\/html;\n    }\n\n    # proxy the PHP scripts to Apache listening on 127.0.0.1:80\n    #\n    #location ~ \\.php$ {\n    #    proxy_pass   http:\/\/127.0.0.1;\n    #}\n\n    # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000\n    location ~ \\.php$ {\n        root           \/home\/acchon;\n        fastcgi_pass   127.0.0.1:9000;\n        fastcgi_index  index.php;\n        fastcgi_param  SCRIPT_FILENAME  \/home\/acchon$fastcgi_script_name;\n        include        fastcgi_params;\n    }\n\n    # deny access to .htaccess files, if Apache&#039;s document root\n    # concurs with nginx&#039;s one\n    #\n    #location ~ \/\\.ht {\n    #    deny  all;\n    #}\n}<\/code><\/pre>\n<p>\u4ee5\u4e0a\u3001\u5206\u304b\u308b\u65b9\u304c\u304a\u308a\u307e\u3057\u305f\u3089\u304a\u52a9\u3051\u9802\u3051\u308c\u3070\u5e78\u3044\u3067\u3059\u3002<br \/>\n\u56de\u7b54\u306b\u3042\u305f\u308a\u5fc5\u8981\u306a\u60c5\u5831\u304c\u8db3\u308a\u306a\u3044\u5834\u5408\u306f\u3054\u6559\u6388\u9802\u3051\u308c\u3070\u5e78\u3044\u3067\u3059\u3002<\/p>\n","protected":false},"template":"","class_list":["post-193795","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/193795","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/193795\/revisions"}],"wp:attachment":[{"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=193795"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}