{"id":1102,"date":"2011-04-30T09:00:06","date_gmt":"2011-04-30T16:00:06","guid":{"rendered":"http:\/\/xiehang.com\/blog\/?p=1102"},"modified":"2011-04-30T09:00:06","modified_gmt":"2011-04-30T16:00:06","slug":"sites-went-down-after-upgrading-to-natty","status":"publish","type":"post","link":"https:\/\/xiehang.com\/blog\/2011\/04\/30\/sites-went-down-after-upgrading-to-natty\/","title":{"rendered":"Sites went down after upgrading to natty"},"content":{"rendered":"

All my sites went down after upgrading to natty just because one line conf problem … sigh.<\/p>\n

All my sites are running php-fpm then nginx, the problem came from these two lines:<\/p>\n

fastcgi_param SCRIPT_FILENAME \/var\/www\/xiehang.com\/$fastcgi_script_name;
\ninclude \/etc\/nginx\/fastcgi_params;<\/p>\n

It used to work without problem but obviously the new Ubuntu release changed something in \/etc\/nginx\/fastcgi_params which overwrites previous line.<\/p>\n

Swap two lines fixed the problem, but still … 4 hours down time.<\/p>\n","protected":false},"excerpt":{"rendered":"

All my sites went down after upgrading to natty just because one line conf problem … sigh. All my sites are running php-fpm then nginx, the problem came from these two lines: fastcgi_param SCRIPT_FILENAME \/var\/www\/xiehang.com\/$fastcgi_script_name; include \/etc\/nginx\/fastcgi_params; It used to work without problem but obviously the new Ubuntu release changed something in \/etc\/nginx\/fastcgi_params which overwrites […]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[211,202,212,59],"_links":{"self":[{"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/posts\/1102"}],"collection":[{"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/comments?post=1102"}],"version-history":[{"count":1,"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/posts\/1102\/revisions"}],"predecessor-version":[{"id":1103,"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/posts\/1102\/revisions\/1103"}],"wp:attachment":[{"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/media?parent=1102"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/categories?post=1102"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/tags?post=1102"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}