Quantcast
Channel: Recent posts across whole site
Viewing all articles
Browse latest Browse all 49197

php-cgi/nginx returns http/0.9

$
0
0

When I visit content type management page and try to delete a file field or a content type contains a file field, I get a page without any css or js. I can click submit but it doesn't work (it doesn't update or delete that field).

When I proxy the page to apache, the problem doesn't show up.

I use nginx-for-drupal conf at github. I didn't add or change anything.

I disabled all the third party modules and the problem still exist.

I run nginx 0.9.2, PHP 5.3.2-1ubuntu4.7 with Suhosin-Patch (cli) (built: Jan 12 2011 18:36:08), latest version of d7. [ php installed using apt on ubuntu]

I can't reproduce this every time, but I can consistently reproduce most of the time on all the sites running on the same server.

By looking at the http header of the page in question, I see nginx gives http/0.9 header. This is strange. According to nginx docs, this means the proxied backend responses with http/0.9. (which means php-cgi?)

Currently my solution is running these sites on apache. But I want to use nginx, the conf is much clearer and more elegant.

Attached is the http header:

http://example.com/admin/structure/types/manage/video-mysite/fields

GET /admin/structure/types/manage/video-mysite/fields HTTP/1.1

Host: example.com

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.16) Gecko/20110323 Ubuntu/10.10 (maverick) Firefox/3.6.16

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

Accept-Language: zh-cn,zh;q=0.5

Accept-Encoding: gzip,deflate

Accept-Charset: UTF-8,*

Keep-Alive: 115

Connection: keep-alive

Cookie: __utma=27811563.1528010927.1301562472.1301562472.1301562472.1; __utmc=27811563; __utmz=27811563.1301562472.1.1.utmcsr=example.com|utmccn=(referral)|utmcmd=referral|utmcct=/; has_js=1; __utma=1.284278592.1301625348.1301625348.1301709294.2; __utmc=1; __utmz=1.1301625348.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); SESS78ad2310e3a5932bdeaea767548d24f9=HA-4y2oddbo2W976g0CuyWhZLmWDQ5pg2hsQVSLbIWI; Drupal.toolbar.collapsed=0; __utmb=1.1.10.1301709294

If-Modified-Since: Sat, 02 Apr 2011 02:00:14 +0000

If-None-Match: "1301709614"



HTTP/1.1 200 OK

Server: nginx

Date: Sat, 02 Apr 2011 02:01:15 GMT

Content-Type: text/html; charset=utf-8

Transfer-Encoding: chunked

Connection: keep-alive

Keep-Alive: timeout=10

Vary: Accept-Encoding

X-Powered-By: PHP/5.3.2-1ubuntu4.7

Expires: Sun, 19 Nov 1978 05:00:00 GMT

Last-Modified: Sat, 02 Apr 2011 02:01:14 +0000

Cache-Control: no-cache, must-revalidate, post-check=0, pre-check=0

Etag: "1301709674"

X-Generator: Drupal 7 (http://drupal.org)

Content-Encoding: gzip

----------------------------------------------------------

http://example.com/sites/example.com/files/css/css_5XB5aQOGzDUVxnwtHDXg0...



GET /sites/example.com/files/css/css_5XB5aQOGzDUVxnwtHDXg0AJDjmjZbe2Sh1K2BEkR5cM.css HTTP/1.1

Host: example.com

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.16) Gecko/20110323 Ubuntu/10.10 (maverick) Firefox/3.6.16

Accept: text/css,*/*;q=0.1

Accept-Language: zh-cn,zh;q=0.5

Accept-Encoding: gzip,deflate

Accept-Charset: UTF-8,*

Keep-Alive: 115

Connection: keep-alive

Referer: http://example.com/admin/structure/types/manage/video-mysite/fields

Cookie: __utma=27811563.1528010927.1301562472.1301562472.1301562472.1; __utmc=27811563; __utmz=27811563.1301562472.1.1.utmcsr=example.com|utmccn=(referral)|utmcmd=referral|utmcct=/; has_js=1; __utma=1.284278592.1301625348.1301625348.1301709294.2; __utmc=1; __utmz=1.1301625348.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); SESS78ad2310e3a5932bdeaea767548d24f9=HA-4y2oddbo2W976g0CuyWhZLmWDQ5pg2hsQVSLbIWI; Drupal.toolbar.collapsed=0; __utmb=1.1.10.1301709294



HTTP/0.9 200 OK

----------------------------------------------------------

http://example.com/sites/example.com/files/css/css_XZdypg1bvyOKlXIsQuDLP...



GET /sites/example.com/files/css/css_XZdypg1bvyOKlXIsQuDLPfaa58Y0fVTK-GE7Ys70yCI.css HTTP/1.1

Host: example.com

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.16) Gecko/20110323 Ubuntu/10.10 (maverick) Firefox/3.6.16

Accept: text/css,*/*;q=0.1

Accept-Language: zh-cn,zh;q=0.5

Accept-Encoding: gzip,deflate

Accept-Charset: UTF-8,*

Keep-Alive: 115

Connection: keep-alive

Referer: http://example.com/admin/structure/types/manage/video-mysite/fields

Cookie: __utma=27811563.1528010927.1301562472.1301562472.1301562472.1; __utmc=27811563; __utmz=27811563.1301562472.1.1.utmcsr=example.com|utmccn=(referral)|utmcmd=referral|utmcct=/; has_js=1; __utma=1.284278592.1301625348.1301625348.1301709294.2; __utmc=1; __utmz=1.1301625348.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); SESS78ad2310e3a5932bdeaea767548d24f9=HA-4y2oddbo2W976g0CuyWhZLmWDQ5pg2hsQVSLbIWI; Drupal.toolbar.collapsed=0; __utmb=1.1.10.1301709294



HTTP/0.9 200 OK

----------------------------------------------------------

http://example.com/sites/example.com/files/css/css_Uy1aIiY1PHMsh853qG8Yf...



GET /sites/example.com/files/css/css_Uy1aIiY1PHMsh853qG8YfRmd1TllwBJNDYTVg0idYHk.css HTTP/1.1

Host: example.com

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.16) Gecko/20110323 Ubuntu/10.10 (maverick) Firefox/3.6.16

Accept: text/css,*/*;q=0.1

Accept-Language: zh-cn,zh;q=0.5

Accept-Encoding: gzip,deflate

Accept-Charset: UTF-8,*

Keep-Alive: 115

Connection: keep-alive

Referer: http://example.com/admin/structure/types/manage/video-mysite/fields

Cookie: __utma=27811563.1528010927.1301562472.1301562472.1301562472.1; __utmc=27811563; __utmz=27811563.1301562472.1.1.utmcsr=example.com|utmccn=(referral)|utmcmd=referral|utmcct=/; has_js=1; __utma=1.284278592.1301625348.1301625348.1301709294.2; __utmc=1; __utmz=1.1301625348.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); SESS78ad2310e3a5932bdeaea767548d24f9=HA-4y2oddbo2W976g0CuyWhZLmWDQ5pg2hsQVSLbIWI; Drupal.toolbar.collapsed=0; __utmb=1.1.10.1301709294



HTTP/0.9 200 OK

----------------------------------------------------------

http://example.com/sites/example.com/files/css/css_ORFuU5HyRPdWE0aj1ctqn...



GET /sites/example.com/files/css/css_ORFuU5HyRPdWE0aj1ctqn8t1ZFIb0M0VciOarO4j658.css HTTP/1.1

Host: example.com

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.16) Gecko/20110323 Ubuntu/10.10 (maverick) Firefox/3.6.16

Accept: text/css,*/*;q=0.1

Accept-Language: zh-cn,zh;q=0.5

Accept-Encoding: gzip,deflate

Accept-Charset: UTF-8,*

Keep-Alive: 115

Connection: keep-alive

Referer: http://example.com/admin/structure/types/manage/video-mysite/fields

Cookie: __utma=27811563.1528010927.1301562472.1301562472.1301562472.1; __utmc=27811563; __utmz=27811563.1301562472.1.1.utmcsr=example.com|utmccn=(referral)|utmcmd=referral|utmcct=/; has_js=1; __utma=1.284278592.1301625348.1301625348.1301709294.2; __utmc=1; __utmz=1.1301625348.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); SESS78ad2310e3a5932bdeaea767548d24f9=HA-4y2oddbo2W976g0CuyWhZLmWDQ5pg2hsQVSLbIWI; Drupal.toolbar.collapsed=0; __utmb=1.1.10.1301709294



HTTP/0.9 200 OK

----------------------------------------------------------

http://example.com/sites/example.com/files/css/css_8Z9FRJXd9GYsqvvPuwyZZ...



GET /sites/example.com/files/css/css_8Z9FRJXd9GYsqvvPuwyZZv53W_U3nuBk4g4ktsbMI5E.css HTTP/1.1

Host: example.com

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.16) Gecko/20110323 Ubuntu/10.10 (maverick) Firefox/3.6.16

Accept: text/css,*/*;q=0.1

Accept-Language: zh-cn,zh;q=0.5

Accept-Encoding: gzip,deflate

Accept-Charset: UTF-8,*

Keep-Alive: 115

Connection: keep-alive

Referer: http://example.com/admin/structure/types/manage/video-mysite/fields

Cookie: __utma=27811563.1528010927.1301562472.1301562472.1301562472.1; __utmc=27811563; __utmz=27811563.1301562472.1.1.utmcsr=example.com|utmccn=(referral)|utmcmd=referral|utmcct=/; has_js=1; __utma=1.284278592.1301625348.1301625348.1301709294.2; __utmc=1; __utmz=1.1301625348.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); SESS78ad2310e3a5932bdeaea767548d24f9=HA-4y2oddbo2W976g0CuyWhZLmWDQ5pg2hsQVSLbIWI; Drupal.toolbar.collapsed=0; __utmb=1.1.10.1301709294



HTTP/0.9 200 OK

----------------------------------------------------------

http://example.com/sites/example.com/files/js/js_3Nqm4uVaWHk6z2YABPJylxL...



GET /sites/example.com/files/js/js_3Nqm4uVaWHk6z2YABPJylxLJMtYGTVNu9_nRrU-_6CY.js HTTP/1.1

Host: example.com

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.16) Gecko/20110323 Ubuntu/10.10 (maverick) Firefox/3.6.16

Accept: */*

Accept-Language: zh-cn,zh;q=0.5

Accept-Encoding: gzip,deflate

Accept-Charset: UTF-8,*

Keep-Alive: 115

Connection: keep-alive

Referer: http://example.com/admin/structure/types/manage/video-mysite/fields

Cookie: __utma=27811563.1528010927.1301562472.1301562472.1301562472.1; __utmc=27811563; __utmz=27811563.1301562472.1.1.utmcsr=example.com|utmccn=(referral)|utmcmd=referral|utmcct=/; has_js=1; __utma=1.284278592.1301625348.1301625348.1301709294.2; __utmc=1; __utmz=1.1301625348.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); SESS78ad2310e3a5932bdeaea767548d24f9=HA-4y2oddbo2W976g0CuyWhZLmWDQ5pg2hsQVSLbIWI; Drupal.toolbar.collapsed=0; __utmb=1.1.10.1301709294



HTTP/0.9 200 OK

----------------------------------------------------------

http://example.com/sites/example.com/files/js/js_pvd4dv44KjM-iRgTz7iAr7P...



GET /sites/example.com/files/js/js_pvd4dv44KjM-iRgTz7iAr7PCD1sMCcrVLL3JuNcpwl4.js HTTP/1.1

Host: example.com

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.16) Gecko/20110323 Ubuntu/10.10 (maverick) Firefox/3.6.16

Accept: */*

Accept-Language: zh-cn,zh;q=0.5

Accept-Encoding: gzip,deflate

Accept-Charset: UTF-8,*

Keep-Alive: 115

Connection: keep-alive

Referer: http://example.com/admin/structure/types/manage/video-mysite/fields

Cookie: __utma=27811563.1528010927.1301562472.1301562472.1301562472.1; __utmc=27811563; __utmz=27811563.1301562472.1.1.utmcsr=example.com|utmccn=(referral)|utmcmd=referral|utmcct=/; has_js=1; __utma=1.284278592.1301625348.1301625348.1301709294.2; __utmc=1; __utmz=1.1301625348.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); SESS78ad2310e3a5932bdeaea767548d24f9=HA-4y2oddbo2W976g0CuyWhZLmWDQ5pg2hsQVSLbIWI; Drupal.toolbar.collapsed=0; __utmb=1.1.10.1301709294



HTTP/0.9 200 OK

Viewing all articles
Browse latest Browse all 49197

Trending Articles