{"id":623,"date":"2012-09-24T07:00:40","date_gmt":"2012-09-23T22:00:40","guid":{"rendered":"http:\/\/ts-engine.net\/?p=623"},"modified":"2012-09-24T07:00:40","modified_gmt":"2012-09-23T22:00:40","slug":"%e5%90%8d%e5%89%8d%e3%83%99%e3%83%bc%e3%82%b9%e3%81%ae%e3%83%90%e3%83%bc%e3%83%81%e3%83%a3%e3%83%ab%e3%83%9b%e3%82%b9%e3%83%88%e3%82%92nginx%e3%81%ab%e5%ae%9f%e8%a3%85%e3%81%97%e3%81%a6%e3%81%bf","status":"publish","type":"post","link":"http:\/\/ts-engine.net\/?p=623","title":{"rendered":"\u540d\u524d\u30d9\u30fc\u30b9\u306e\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\u3092nginx\u306b\u5b9f\u88c5\u3057\u3066\u307f\u305f\uff01\uff01"},"content":{"rendered":"<p>\n\u79c1\u306f\u4e00\u90e8\u306e\u30b5\u30a4\u30c8\u3067\u306fweb\u30b5\u30fc\u30d0\u306bapache\u3067\u306f\u306a\u304f\u3001nginx\u3092\u5229\u7528\u3057\u3066\u3044\u308b\u3002<br \/>\n\u69cb\u7bc9\u65b9\u6cd5\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3002\n<\/p>\n<p><a href=\"http:\/\/ts-engine.net\/wp\/archives\/528\">\u3055\u304f\u3089VPS\u306bnginx\u3068fast-cgi\u30d9\u30fc\u30b9\u306bwordpress\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\uff01\uff01<\/a><\/p>\n<p>\napache\u306a\u3089\u6163\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u7c21\u5358\u306b\u540d\u524d\u30d9\u30fc\u30b9\u306e\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\u304c\u4f5c\u308c\u308b\u306e\u3060\u304c\u3001<br \/>\nnginx\u3067\u3069\u3046\u3059\u308b\u306e\u304b\u8a66\u3057\u306b\u69cb\u7bc9\u3057\u3066\u898b\u308b\u3053\u3068\u306b\u3057\u305f\u3002<\/p>\n<p>\u30cd\u30c3\u30c8\u4e0a\u306b\u610f\u5916\u3068\u60c5\u5831\u304c\u5c11\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u4eca\u5f8c\u69cb\u7bc9\u3059\u308b\u4eba\u306e\u305f\u3081\u306b\u3001\u4ee5\u4e0b\u4f5c\u696d\u30e1\u30e2\u3002\n<\/p>\n<p><!--more--><\/p>\n<h2>\nnginx\u306e\u540d\u524d\u30d9\u30fc\u30b9\u306e\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\u306f\u610f\u5916\u3068\u7c21\u5358\u3060\u3063\u305f\u3002<br \/>\n<\/h2>\n<p>\n\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\u306enginx.conf\u30d5\u30a1\u30a4\u30eb\u3067\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u4e00\u90e8\u62bd\u8c61\u5316\u3057\u3066\u8868\u793a\u3057\u3066\u3044\u307e\u3059\u3002\n<\/p>\n<p>[bash]<br \/>\nhttp{<br \/>\n \u30d1\u30e9\u30e1\u30fc\u30bf<br \/>\n server{<br \/>\n  \u30d1\u30e9\u30e1\u30fc\u30bf<br \/>\n location{<br \/>\n  \u30d1\u30e9\u30e1\u30fc\u30bf<br \/>\n  }<br \/>\n }<br \/>\n}<br \/>\n[\/bash]<\/p>\n<p>\n\u3053\u308c\u306b\u5bfe\u3057\u3066\u3001<br \/>\n\u4ee5\u4e0b\u306e\u8a18\u8ff0\u3092\u8ffd\u52a0\u3059\u308c\u3070\u5b8c\u4e86\u3067\u3059\u3002\n<\/p>\n<p>[bash]<br \/>\nhttp{<br \/>\n \u30d1\u30e9\u30e1\u30fc\u30bf<br \/>\n server{<br \/>\n  \u30d1\u30e9\u30e1\u30fc\u30bf<br \/>\n location{<br \/>\n  \u30d1\u30e9\u30e1\u30fc\u30bf<br \/>\n  }<br \/>\n }<br \/>\n#\u3053\u3053\u304b\u3089\u8ffd\u52a0<br \/>\n server{<br \/>\n       listen   *:80;<br \/>\n       server_name \u30c9\u30e1\u30a4\u30f3\u540d;<br \/>\n       client_max_body_size 5M;<br \/>\n       access_log  \/var\/log\/nginx\/\u9069\u5f53\u306a\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\/access.log   combined;<br \/>\n       error_log  \/var\/log\/nginx\/\u9069\u5f53\u306a\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\/error.log  debug;<br \/>\n       root \u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8;<br \/>\n#php\u3092fastcgi\u3067\u4f7f\u3046\u4eba\u306e\u5834\u5408<br \/>\n     location ~ \\.php$ {<br \/>\n         root           \u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8;<br \/>\n         fastcgi_pass   127.0.0.1:9000;\uff03\u500b\u4eba\u306e\u8a2d\u5b9a\u306b\u3088\u308b<br \/>\n         fastcgi_index  index.php;<br \/>\n         fastcgi_param  SCRIPT_FILENAME  \u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8$fastcgi_script_name;<br \/>\n         include        fastcgi_params;<br \/>\n             }<\/p>\n<p>     location \/ {<br \/>\n         root  \u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8;<br \/>\n         index  index.html index.htm index.php;<br \/>\n         if (-f $request_filename) {<br \/>\n             break;<br \/>\n        }<br \/>\n        if (!-e $request_filename) {<br \/>\n             rewrite ^(.+)$  \/index.php?q=$1 last;<br \/>\n             }<br \/>\n      }<br \/>\n\u3000\u3000}<br \/>\n#\u3053\u3053\u307e\u3067\u8ffd\u52a0\u90e8\u5206<br \/>\n}<br \/>\n[\/bash]<\/p>\n<p>\napache\u3068\u4f3c\u3066\u3044\u3066\u8a18\u8f09\u3057\u3084\u3059\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002\n<\/p>\n<h2>\n\u53c2\u8003\u306b\u3057\u305f\u30b5\u30a4\u30c8<br \/>\n<\/h2>\n<p><a href=\"http:\/\/www26.atwiki.jp\/nginx\/pages\/13.html\">nginx \u306e \u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\u8a2d\u5b9a<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u79c1\u306f\u4e00\u90e8\u306e\u30b5\u30a4\u30c8\u3067\u306fweb\u30b5\u30fc\u30d0\u306bapache\u3067\u306f\u306a\u304f\u3001nginx\u3092\u5229\u7528\u3057\u3066\u3044\u308b\u3002 \u69cb\u7bc9\u65b9\u6cd5\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3002 \u3055\u304f\u3089VPS\u306bnginx\u3068fast-cgi\u30d9\u30fc\u30b9\u306bwordpress\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\uff01\uff01 apache\u306a\u3089\u6163\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u7c21\u5358\u306b\u540d\u524d\u30d9\u30fc\u30b9\u306e\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\u304c\u4f5c\u308c\u308b\u306e\u3060\u304c\u3001 nginx\u3067\u3069\u3046\u3059\u308b\u306e\u304b\u8a66\u3057\u306b\u69cb\u7bc9\u3057\u3066\u898b\u308b\u3053\u3068\u306b\u3057\u305f\u3002 \u30cd\u30c3\u30c8\u4e0a\u306b\u610f\u5916\u3068\u60c5\u5831\u304c\u5c11\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u4eca\u5f8c\u69cb\u7bc9\u3059\u308b\u4eba\u306e\u305f\u3081\u306b\u3001\u4ee5\u4e0b\u4f5c\u696d\u30e1\u30e2\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26,20,6,25,18],"tags":[],"class_list":["post-623","post","type-post","status-publish","format-standard","hentry","category-26","category-20","category-6","category-25","category-18"],"_links":{"self":[{"href":"http:\/\/ts-engine.net\/index.php?rest_route=\/wp\/v2\/posts\/623","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/ts-engine.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/ts-engine.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/ts-engine.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/ts-engine.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=623"}],"version-history":[{"count":0,"href":"http:\/\/ts-engine.net\/index.php?rest_route=\/wp\/v2\/posts\/623\/revisions"}],"wp:attachment":[{"href":"http:\/\/ts-engine.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=623"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/ts-engine.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=623"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/ts-engine.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=623"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}