Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

405 not allowed #26

Closed
ziomizar opened this Issue Jan 26, 2012 · 13 comments

Comments

Projects
None yet
3 participants

Hi Perusio,

Thank you for your configs, really usefull.
I'm using nginx-1.0.11, php5-fpm, memcached, apc and drupal7 + boost.

I'm receiving this error :

"405 not allowed."

This issue happening only when i change an exposed faceted filter with min-max value (with jquery plugin) that doing a redirect to another page.
Without boost your config working perfectly also with all faceted search filters that i have tryed.

And adding these lines in drupal_boost.conf on location /{ :

if ($request_method = POST) {
return 405;
}
error_page 405 = @drupal;

Working as expected.
I'm a newbie of nginx, and i'm not sure if this is the right solution..

Obrigado pela ajuda:)

Owner

perusio commented Jan 26, 2012

That's strange the $no_cache variable takes the value 1 when there's a POST. Can you get a debug log so that we can check the value of this variable?

Thanks.

Hi,

I enabled the debug and try to reproduce "405 not allowed" error :

2012/01/26 08:16:08 [debug] 5604#0: *1298 post event 0000000011F2F2F8
2012/01/26 08:16:08 [debug] 5604#0: *1298 delete posted event 0000000011F2F2F8
2012/01/26 08:16:08 [debug] 5604#0: *1298 http keepalive handler
2012/01/26 08:16:08 [debug] 5604#0: *1298 recv: fd:34 794 of 1024
2012/01/26 08:16:08 [debug] 5604#0: *1298 reusable connection: 0
2012/01/26 08:16:08 [debug] 5604#0: *1298 malloc: 0000000011D14010:1296
2012/01/26 08:16:08 [debug] 5604#0: *1298 event timer del: 34: 1327583769670
2012/01/26 08:16:08 [debug] 5604#0: *1298 generic phase: 0
2012/01/26 08:16:08 [debug] 5604#0: *1298 rewrite phase: 1
2012/01/26 08:16:08 [debug] 5604#0: *1298 http script var
2012/01/26 08:16:08 [debug] 5604#0: *1298 http map started
2012/01/26 08:16:08 [debug] 5604#0: *1298 http script var: "Mozilla/5.0 (X11; U; Linux i686; it; rv:1.9.2.24) Gecko/20111107 Ubuntu/10.04 (lucid) Firefox/3.6.24"
2012/01/26 08:16:08 [debug] 5604#0: *1298 http map: "Mozilla/5.0 (X11; U; Linux i686; it; rv:1.9.2.24) Gecko/20111107 Ubuntu/10.04 (lucid) Firefox/3.6.24" "0"
2012/01/26 08:16:08 [debug] 5604#0: *1298 http script var: "0"
2012/01/26 08:16:08 [debug] 5604#0: *1298 http script if
2012/01/26 08:16:08 [debug] 5604#0: *1298 http script if: false
2012/01/26 08:16:08 [debug] 5604#0: *1298 http script var
2012/01/26 08:16:08 [debug] 5604#0: *1298 http geo started: 82.154.170.48
2012/01/26 08:16:08 [debug] 5604#0: *1298 http geo:
2012/01/26 08:16:08 [debug] 5604#0: *1298 http script var: ""
2012/01/26 08:16:08 [debug] 5604#0: *1298 http script if
2012/01/26 08:16:08 [debug] 5604#0: *1298 http script if: false
2012/01/26 08:16:08 [debug] 5604#0: *1298 test location: "/"
2012/01/26 08:16:08 [debug] 5604#0: *1298 test location: "patches"
2012/01/26 08:16:08 [debug] 5604#0: *1298 test location: "rss.xml"
2012/01/26 08:16:08 [debug] 5604#0: *1298 test location: "sitemap.xml"
2012/01/26 08:16:08 [debug] 5604#0: *1298 test location: "/sites/default/files/audio/ogg"
2012/01/26 08:16:08 [debug] 5604#0: *1298 test location: "/sites/default/files/advagg_js/"
2012/01/26 08:16:08 [debug] 5604#0: *1298 test location: "/sites/default/files/advagg_css/"
2012/01/26 08:16:08 [debug] 5604#0: *1298 test location: "/help/"
2012/01/26 08:16:08 [debug] 5604#0: *1298 test location: ~ "/imagecache/"
2012/01/26 08:16:08 [debug] 5604#0: *1298 test location: ~ "/files/styles/"
2012/01/26 08:16:08 [debug] 5604#0: *1298 test location: ~ "^.+.(?:css|js|jpg|jpeg|gif|ico|png|html|xml)$"
2012/01/26 08:16:08 [debug] 5604#0: *1298 using configuration "^.+.(?:css|js|jpg|jpeg|gif|ico|png|html|xml)$"
2012/01/26 08:16:08 [debug] 5604#0: *1298 http cl:-1 max:10485760
2012/01/26 08:16:08 [debug] 5604#0: *1298 rewrite phase: 3
2012/01/26 08:16:08 [debug] 5604#0: *1298 post rewrite phase: 4
2012/01/26 08:16:08 [debug] 5604#0: *1298 generic phase: 5
2012/01/26 08:16:08 [debug] 5604#0: *1298 generic phase: 6
2012/01/26 08:16:08 [debug] 5604#0: *1298 generic phase: 7
2012/01/26 08:16:08 [debug] 5604#0: *1298 limit_req: 0 0.000
2012/01/26 08:16:08 [debug] 5604#0: *1298 generic phase: 8
2012/01/26 08:16:08 [debug] 5604#0: *1298 add cleanup: 00000000120CD460
2012/01/26 08:16:08 [debug] 5604#0: *1298 limit zone: C2F541DC 1
2012/01/26 08:16:08 [debug] 5604#0: *1298 access phase: 9
2012/01/26 08:16:08 [debug] 5604#0: *1298 access phase: 10
2012/01/26 08:16:08 [debug] 5604#0: *1298 post access phase: 11
2012/01/26 08:16:08 [debug] 5604#0: *1298 try files phase: 12
2012/01/26 08:16:08 [debug] 5604#0: *1298 content phase: 13
2012/01/26 08:16:08 [debug] 5604#0: *1298 content phase: 14
2012/01/26 08:16:08 [debug] 5604#0: *1298 content phase: 15
2012/01/26 08:16:08 [debug] 5604#0: *1298 content phase: 16
2012/01/26 08:16:08 [debug] 5604#0: *1298 http filename: "/var/www/sites/portuguest.com/httpdocs/sites/all/modules/jquery_update/replace/ui/themes/base/minified/images/ui-bg_glass_75_dadada_1x400.png.gz"
2012/01/26 08:16:08 [debug] 5604#0: *1298 add cleanup: 00000000120CD520
2012/01/26 08:16:08 [debug] 5604#0: *1298 content phase: 17
2012/01/26 08:16:08 [debug] 5604#0: *1298 http filename: "/var/www/sites/portuguest.com/httpdocs/sites/all/modules/jquery_update/replace/ui/themes/base/minified/images/ui-bg_glass_75_dadada_1x400.png"
2012/01/26 08:16:08 [debug] 5604#0: *1298 posix_memalign: 0000000011E61370:4096 @16
2012/01/26 08:16:08 [debug] 5604#0: *1298 add cleanup: 00000000120CD5E0
2012/01/26 08:16:08 [debug] 5604#0: *1298 http static fd: 12
2012/01/26 08:16:08 [debug] 5604#0: *1298 http set discard body
2012/01/26 08:16:08 [debug] 5604#0: *1298 HTTP/1.1 200 OK
Server: nginx
Date: Thu, 26 Jan 2012 13:16:08 GMT
Content-Type: image/png
Content-Length: 111
Last-Modified: Tue, 06 Dec 2011 03:41:05 GMT
Connection: keep-alive
Keep-Alive: timeout=10
Expires: Sat, 25 Feb 2012 13:16:08 GMT
Cache-Control: max-age=2592000
X-Frame-Options: SAMEORIGIN
Accept-Ranges: bytes

2012/01/26 08:16:08 [debug] 5604#0: *1298 write new buf t:1 f:0 0000000011E61558, pos 0000000011E61558, size: 334 file: 0, size: 0
2012/01/26 08:16:08 [debug] 5604#0: *1298 http write filter: l:0 f:0 s:334
2012/01/26 08:16:08 [debug] 5604#0: *1298 http output filter "/sites/all/modules/jquery_update/replace/ui/themes/base/minified/images/ui-bg_glass_75_dadada_1x400.png?"
2012/01/26 08:16:08 [debug] 5604#0: *1298 http copy filter: "/sites/all/modules/jquery_update/replace/ui/themes/base/minified/images/ui-bg_glass_75_dadada_1x400.png?"
2012/01/26 08:16:08 [debug] 5604#0: *1298 image filter
2012/01/26 08:16:08 [debug] 5604#0: *1298 http postpone filter "/sites/all/modules/jquery_update/replace/ui/themes/base/minified/images/ui-bg_glass_75_dadada_1x400.png?" 00007FFFFEC75E50
2012/01/26 08:16:08 [debug] 5604#0: *1298 write old buf t:1 f:0 0000000011E61558, pos 0000000011E61558, size: 334 file: 0, size: 0
2012/01/26 08:16:08 [debug] 5604#0: *1298 write new buf t:0 f:1 0000000000000000, pos 0000000000000000, size: 0 file: 0, size: 111
2012/01/26 08:16:08 [debug] 5604#0: *1298 http write filter: l:1 f:0 s:445
2012/01/26 08:16:08 [debug] 5604#0: *1298 http write filter limit 0
2012/01/26 08:16:08 [debug] 5604#0: *1298 tcp_nopush
2012/01/26 08:16:08 [debug] 5604#0: *1298 writev: 334
2012/01/26 08:16:08 [debug] 5604#0: *1298 sendfile: @0 111
2012/01/26 08:16:08 [debug] 5604#0: *1298 sendfile: 111, @0 111:111
2012/01/26 08:16:08 [debug] 5604#0: *1298 http write filter 0000000000000000
2012/01/26 08:16:08 [debug] 5604#0: *1298 http copy filter: 0 "/sites/all/modules/jquery_update/replace/ui/themes/base/minified/images/ui-bg_glass_75_dadada_1x400.png?"
2012/01/26 08:16:08 [debug] 5604#0: *1298 http finalize request: 0, "/sites/all/modules/jquery_update/replace/ui/themes/base/minified/images/ui-bg_glass_75_dadada_1x400.png?" a:1, c:1
2012/01/26 08:16:08 [debug] 5604#0: *1298 set http keepalive handler
2012/01/26 08:16:08 [debug] 5604#0: *1298 http close request
2012/01/26 08:16:08 [debug] 5604#0: *1298 http log handler
2012/01/26 08:16:08 [debug] 5604#0: *1298 run cleanup: 00000000120CD5E0
2012/01/26 08:16:08 [debug] 5604#0: *1298 file cleanup: fd:12
2012/01/26 08:16:08 [debug] 5604#0: *1298 run cleanup: 00000000120CD460
2012/01/26 08:16:08 [debug] 5604#0: *1298 free: 00000000120CC600, unused: 0
2012/01/26 08:16:08 [debug] 5604#0: *1298 free: 0000000011E61370, unused: 3096
2012/01/26 08:16:08 [debug] 5604#0: *1298 event timer add: 34: 10000:1327583778392
2012/01/26 08:16:08 [debug] 5604#0: *1298 free: 0000000011D14010
2012/01/26 08:16:08 [debug] 5604#0: *1298 free: 0000000011D12B70
2012/01/26 08:16:08 [debug] 5604#0: *1298 hc free: 0000000000000000 0
2012/01/26 08:16:08 [debug] 5604#0: *1298 hc busy: 0000000000000000 0
2012/01/26 08:16:08 [debug] 5604#0: *1298 reusable connection: 1
2012/01/26 08:16:08 [debug] 5604#0: *1298 post event 0000000011F2F2F8
2012/01/26 08:16:08 [debug] 5604#0: *1298 delete posted event 0000000011F2F2F8
2012/01/26 08:16:08 [debug] 5604#0: *1298 http keepalive handler
2012/01/26 08:16:08 [debug] 5604#0: *1298 malloc: 0000000011FF5010:1024
2012/01/26 08:16:08 [debug] 5604#0: *1298 recv: fd:34 -1 of 1024
2012/01/26 08:16:08 [debug] 5604#0: *1298 recv() not ready (11: Resource temporarily unavailable)
2012/01/26 08:16:09 [debug] 5604#0: *1295 post event 0000000011F2F1C0
2012/01/26 08:16:09 [debug] 5604#0: *1295 delete posted event 0000000011F2F1C0
2012/01/26 08:16:09 [debug] 5604#0: *1295 http keepalive handler
2012/01/26 08:16:09 [debug] 5604#0: *1295 recv: fd:9 794 of 1024
2012/01/26 08:16:09 [debug] 5604#0: *1295 reusable connection: 0
2012/01/26 08:16:09 [debug] 5604#0: *1295 malloc: 0000000011D16010:1296
2012/01/26 08:16:09 [debug] 5604#0: *1295 event timer del: 9: 1327583769796
2012/01/26 08:16:09 [debug] 5604#0: *1295 generic phase: 0
2012/01/26 08:16:09 [debug] 5604#0: *1295 rewrite phase: 1
2012/01/26 08:16:09 [debug] 5604#0: *1295 http script var
2012/01/26 08:16:09 [debug] 5604#0: *1295 http map started
2012/01/26 08:16:09 [debug] 5604#0: *1295 http script var: "Mozilla/5.0 (X11; U; Linux i686; it; rv:1.9.2.24) Gecko/20111107 Ubuntu/10.04 (lucid) Firefox/3.6.24"
2012/01/26 08:16:09 [debug] 5604#0: *1295 http map: "Mozilla/5.0 (X11; U; Linux i686; it; rv:1.9.2.24) Gecko/20111107 Ubuntu/10.04 (lucid) Firefox/3.6.24" "0"
2012/01/26 08:16:09 [debug] 5604#0: *1295 http script var: "0"
2012/01/26 08:16:09 [debug] 5604#0: *1295 http script if
2012/01/26 08:16:09 [debug] 5604#0: *1295 http script if: false
2012/01/26 08:16:09 [debug] 5604#0: *1295 http script var
2012/01/26 08:16:09 [debug] 5604#0: *1295 http geo started: 82.154.170.48
2012/01/26 08:16:09 [debug] 5604#0: *1295 http geo:
2012/01/26 08:16:09 [debug] 5604#0: *1295 http script var: ""
2012/01/26 08:16:09 [debug] 5604#0: *1295 http script if
2012/01/26 08:16:09 [debug] 5604#0: *1295 http script if: false
2012/01/26 08:16:09 [debug] 5604#0: *1295 test location: "/"
2012/01/26 08:16:09 [debug] 5604#0: *1295 test location: "patches"
2012/01/26 08:16:09 [debug] 5604#0: *1295 test location: "rss.xml"
2012/01/26 08:16:09 [debug] 5604#0: *1295 test location: "sitemap.xml"
2012/01/26 08:16:09 [debug] 5604#0: *1295 test location: "/sites/default/files/audio/ogg"
2012/01/26 08:16:09 [debug] 5604#0: *1295 test location: "/sites/default/files/advagg_js/"
2012/01/26 08:16:09 [debug] 5604#0: *1295 test location: "/sites/default/files/advagg_css/"
2012/01/26 08:16:09 [debug] 5604#0: *1295 test location: "/help/"
2012/01/26 08:16:09 [debug] 5604#0: *1295 test location: ~ "/imagecache/"
2012/01/26 08:16:09 [debug] 5604#0: *1295 test location: ~ "/files/styles/"
2012/01/26 08:16:09 [debug] 5604#0: *1295 test location: ~ "^.+.(?:css|js|jpg|jpeg|gif|ico|png|html|xml)$"
2012/01/26 08:16:09 [debug] 5604#0: *1295 using configuration "^.+.(?:css|js|jpg|jpeg|gif|ico|png|html|xml)$"
2012/01/26 08:16:09 [debug] 5604#0: *1295 http cl:-1 max:10485760
2012/01/26 08:16:09 [debug] 5604#0: *1295 rewrite phase: 3
2012/01/26 08:16:09 [debug] 5604#0: *1295 post rewrite phase: 4
2012/01/26 08:16:09 [debug] 5604#0: *1295 generic phase: 5
2012/01/26 08:16:09 [debug] 5604#0: *1295 generic phase: 6
2012/01/26 08:16:09 [debug] 5604#0: *1295 generic phase: 7
2012/01/26 08:16:09 [debug] 5604#0: *1295 limit_req: 0 0.000
2012/01/26 08:16:09 [debug] 5604#0: *1295 generic phase: 8
2012/01/26 08:16:09 [debug] 5604#0: *1295 add cleanup: 00000000120CD460
2012/01/26 08:16:09 [debug] 5604#0: *1295 limit zone: C2F541DC 1
2012/01/26 08:16:09 [debug] 5604#0: *1295 access phase: 9
2012/01/26 08:16:09 [debug] 5604#0: *1295 access phase: 10
2012/01/26 08:16:09 [debug] 5604#0: *1295 post access phase: 11
2012/01/26 08:16:09 [debug] 5604#0: *1295 try files phase: 12
2012/01/26 08:16:09 [debug] 5604#0: *1295 content phase: 13
2012/01/26 08:16:09 [debug] 5604#0: *1295 content phase: 14
2012/01/26 08:16:09 [debug] 5604#0: *1295 content phase: 15
2012/01/26 08:16:09 [debug] 5604#0: *1295 content phase: 16
2012/01/26 08:16:09 [debug] 5604#0: *1295 http filename: "/var/www/sites/portuguest.com/httpdocs/sites/all/modules/jquery_update/replace/ui/themes/base/minified/images/ui-bg_glass_65_ffffff_1x400.png.gz"
2012/01/26 08:16:09 [debug] 5604#0: *1295 add cleanup: 00000000120CD520
2012/01/26 08:16:09 [debug] 5604#0: *1295 content phase: 17
2012/01/26 08:16:09 [debug] 5604#0: *1295 http filename: "/var/www/sites/portuguest.com/httpdocs/sites/all/modules/jquery_update/replace/ui/themes/base/minified/images/ui-bg_glass_65_ffffff_1x400.png"
2012/01/26 08:16:09 [debug] 5604#0: *1295 posix_memalign: 0000000011E9D460:4096 @16
2012/01/26 08:16:09 [debug] 5604#0: *1295 add cleanup: 00000000120CD5E0
2012/01/26 08:16:09 [debug] 5604#0: *1295 http static fd: 12
2012/01/26 08:16:09 [debug] 5604#0: *1295 http set discard body
2012/01/26 08:16:09 [debug] 5604#0: *1295 HTTP/1.1 200 OK
Server: nginx
Date: Thu, 26 Jan 2012 13:16:09 GMT
Content-Type: image/png
Content-Length: 105
Last-Modified: Tue, 06 Dec 2011 03:41:05 GMT
Connection: keep-alive
Keep-Alive: timeout=10
Expires: Sat, 25 Feb 2012 13:16:09 GMT
Cache-Control: max-age=2592000
X-Frame-Options: SAMEORIGIN
Accept-Ranges: bytes

2012/01/26 08:16:09 [debug] 5604#0: 1295 write new buf t:1 f:0 0000000011E9D648, pos 0000000011E9D648, size: 334 file: 0, size: 0
2012/01/26 08:16:09 [debug] 5604#0: *1295 http write filter: l:0 f:0 s:334
2012/01/26 08:16:09 [debug] 5604#0: *1295 http output filter "/sites/all/modules/jquery_update/replace/ui/themes/base/minified/images/ui-bg_glass_65_ffffff_1x400.png?"
2012/01/26 08:16:09 [debug] 5604#0: *1295 http copy filter: "/sites/all/modules/jquery_update/replace/ui/themes/base/minified/images/ui-bg_glass_65_ffffff_1x400.png?"
2012/01/26 08:16:09 [debug] 5604#0: *1295 image filter
2012/01/26 08:16:09 [debug] 5604#0: *1295 http postpone filter "/sites/all/modules/jquery_update/replace/ui/themes/base/minified/images/ui-bg_glass_65_ffffff_1x400.png?" 00007FFFFEC75E50
2012/01/26 08:16:09 [debug] 5604#0: *1295 write old buf t:1 f:0 0000000011E9D648, pos 0000000011E9D648, size: 334 file: 0, size: 0
2012/01/26 08:16:09 [debug] 5604#0: *1295 write new buf t:0 f:1 0000000000000000, pos 0000000000000000, size: 0 file: 0, size: 105
2012/01/26 08:16:09 [debug] 5604#0: *1295 http write filter: l:1 f:0 s:439
2012/01/26 08:16:09 [debug] 5604#0: *1295 http write filter limit 0
2012/01/26 08:16:09 [debug] 5604#0: *1295 tcp_nopush
2012/01/26 08:16:09 [debug] 5604#0: *1295 writev: 334
2012/01/26 08:16:09 [debug] 5604#0: *1295 sendfile: @0 105
2012/01/26 08:16:09 [debug] 5604#0: *1295 sendfile: 105, @0 105:105
2012/01/26 08:16:09 [debug] 5604#0: *1295 http write filter 0000000000000000
2012/01/26 08:16:09 [debug] 5604#0: *1295 http copy filter: 0 "/sites/all/modules/jquery_update/replace/ui/themes/base/minified/images/ui-bg_glass_65_ffffff_1x400.png?"
2012/01/26 08:16:09 [debug] 5604#0: *1295 http finalize request: 0, "/sites/all/modules/jquery_update/replace/ui/themes/base/minified/images/ui-bg_glass_65_ffffff_1x400.png?" a:1, c:1
2012/01/26 08:16:09 [debug] 5604#0: *1295 set http keepalive handler
2012/01/26 08:16:09 [debug] 5604#0: *1295 http close request
2012/01/26 08:16:09 [debug] 5604#0: *1295 http log handler
2012/01/26 08:16:09 [debug] 5604#0: *1295 run cleanup: 00000000120CD5E0
2012/01/26 08:16:09 [debug] 5604#0: *1295 file cleanup: fd:12
2012/01/26 08:16:09 [debug] 5604#0: *1295 run cleanup: 00000000120CD460
2012/01/26 08:16:09 [debug] 5604#0: *1295 free: 00000000120CC600, unused: 0
2012/01/26 08:16:09 [debug] 5604#0: *1295 free: 0000000011E9D460, unused: 3096
2012/01/26 08:16:09 [debug] 5604#0: *1295 event timer add: 9: 10000:1327583779005
2012/01/26 08:16:09 [debug] 5604#0: *1295 free: 0000000011D16010
2012/01/26 08:16:09 [debug] 5604#0: *1295 free: 0000000011D10010
2012/01/26 08:16:09 [debug] 5604#0: *1295 hc free: 0000000000000000 0
2012/01/26 08:16:09 [debug] 5604#0: *1295 hc busy: 0000000000000000 0
2012/01/26 08:16:09 [debug] 5604#0: *1295 reusable connection: 1
2012/01/26 08:16:09 [debug] 5604#0: *1295 post event 0000000011F2F1C0
2012/01/26 08:16:09 [debug] 5604#0: *1295 delete posted event 0000000011F2F1C0
2012/01/26 08:16:09 [debug] 5604#0: *1295 http keepalive handler
2012/01/26 08:16:09 [debug] 5604#0: *1295 malloc: 0000000011D10010:1024
2012/01/26 08:16:09 [debug] 5604#0: *1295 recv: fd:9 -1 of 1024
2012/01/26 08:16:09 [debug] 5604#0: *1295 recv() not ready (11: Resource temporarily unavailable)
2012/01/26 08:16:09 [debug] 5604#0: *1296 event timer del: 13: 1327583769614
2012/01/26 08:16:09 [debug] 5604#0: *1296 http keepalive handler
2012/01/26 08:16:09 [debug] 5604#0: *1296 close http connection: 13
2012/01/26 08:16:09 [debug] 5604#0: *1296 reusable connection: 0
2012/01/26 08:16:09 [debug] 5604#0: *1296 free: 0000000011FF56E0
2012/01/26 08:16:09 [debug] 5604#0: *1296 free: 0000000000000000
2012/01/26 08:16:09 [debug] 5604#0: *1296 free: 0000000011F277B0, unused: 8
2012/01/26 08:16:09 [debug] 5604#0: *1296 free: 0000000011D10420, unused: 128
2012/01/26 08:16:09 [debug] 5604#0: *1297 event timer del: 14: 1327583769851
2012/01/26 08:16:09 [debug] 5604#0: *1297 http keepalive handler
2012/01/26 08:16:09 [debug] 5604#0: *1297 close http connection: 14
2012/01/26 08:16:09 [debug] 5604#0: *1297 reusable connection: 0
2012/01/26 08:16:09 [debug] 5604#0: *1297 free: 0000000011D12760
2012/01/26 08:16:09 [debug] 5604#0: *1297 free: 0000000000000000
2012/01/26 08:16:09 [debug] 5604#0: *1297 free: 0000000011EA6F40, unused: 8
2012/01/26 08:16:09 [debug] 5604#0: *1297 free: 0000000011FF5AF0, unused: 128
2012/01/26 08:16:09 [debug] 5604#0: *1299 event timer del: 35: 1327583769872
2012/01/26 08:16:09 [debug] 5604#0: *1299 http keepalive handler
2012/01/26 08:16:09 [debug] 5604#0: *1299 close http connection: 35
2012/01/26 08:16:09 [debug] 5604#0: *1299 reusable connection: 0
2012/01/26 08:16:09 [debug] 5604#0: *1299 free: 0000000011F23010
2012/01/26 08:16:09 [debug] 5604#0: *1299 free: 0000000000000000
2012/01/26 08:16:09 [debug] 5604#0: *1299 free: 0000000011D12240, unused: 8
2012/01/26 08:16:09 [debug] 5604#0: *1299 free: 0000000011F23530, unused: 128
2012/01/26 08:16:09 [debug] 5604#0: *1290 event timer del: 3: 1327583769891
2012/01/26 08:16:09 [debug] 5604#0: *1290 http keepalive handler
2012/01/26 08:16:09 [debug] 5604#0: *1290 close http connection: 3
2012/01/26 08:16:09 [debug] 5604#0: *1290 reusable connection: 0
2012/01/26 08:16:09 [debug] 5604#0: *1290 free: 0000000011D107F0
2012/01/26 08:16:09 [debug] 5604#0: *1290 free: 0000000000000000
2012/01/26 08:16:09 [debug] 5604#0: *1290 free: 0000000011F23940, unused: 8
2012/01/26 08:16:09 [debug] 5604#0: *1290 free: 0000000011EA71B0, unused: 112
2012/01/26 08:16:11 [debug] 5604#0: *1298 post event 0000000011F2F2F8
2012/01/26 08:16:11 [debug] 5604#0: *1298 delete posted event 0000000011F2F2F8
2012/01/26 08:16:11 [debug] 5604#0: *1298 http keepalive handler
2012/01/26 08:16:11 [debug] 5604#0: *1298 recv: fd:34 0 of 1024
2012/01/26 08:16:11 [info] 5604#0: *1298 client 82.154.170.48 closed keepalive connection
2012/01/26 08:16:11 [debug] 5604#0: *1298 close http connection: 34
2012/01/26 08:16:11 [debug] 5604#0: *1298 event timer del: 34: 1327583778392
2012/01/26 08:16:11 [debug] 5604#0: *1298 reusable connection: 0
2012/01/26 08:16:11 [debug] 5604#0: *1298 free: 0000000011FF5010
2012/01/26 08:16:11 [debug] 5604#0: *1298 free: 0000000000000000
2012/01/26 08:16:11 [debug] 5604#0: *1298 free: 0000000011D12130, unused: 8
2012/01/26 08:16:11 [debug] 5604#0: *1298 free: 0000000011D12460, unused: 128
2012/01/26 08:16:11 [debug] 5604#0: *1295 post event 0000000011F2F1C0
2012/01/26 08:16:11 [debug] 5604#0: *1295 delete posted event 0000000011F2F1C0
2012/01/26 08:16:11 [debug] 5604#0: *1295 http keepalive handler
2012/01/26 08:16:11 [debug] 5604#0: *1295 recv: fd:9 0 of 1024
2012/01/26 08:16:11 [info] 5604#0: *1295 client 82.154.170.48 closed keepalive connection
2012/01/26 08:16:11 [debug] 5604#0: *1295 close http connection: 9
2012/01/26 08:16:11 [debug] 5604#0: *1295 event timer del: 9: 1327583779005
2012/01/26 08:16:11 [debug] 5604#0: *1295 reusable connection: 0
2012/01/26 08:16:11 [debug] 5604#0: *1295 free: 0000000011D10010
2012/01/26 08:16:11 [debug] 5604#0: *1295 free: 0000000000000000
2012/01/26 08:16:11 [debug] 5604#0: *1295 free: 0000000011F23A50, unused: 8
2012/01/26 08:16:11 [debug] 5604#0: *1295 free: 0000000011D12350, unused: 128
2012/01/26 08:16:11 [debug] 5604#0: *1300 event timer del: 3: 1327583831287
2012/01/26 08:16:11 [debug] 5604#0: *1300 generic phase: 0
2012/01/26 08:16:11 [debug] 5604#0: *1300 rewrite phase: 1
2012/01/26 08:16:11 [debug] 5604#0: *1300 http script var
2012/01/26 08:16:11 [debug] 5604#0: *1300 http map started
2012/01/26 08:16:11 [debug] 5604#0: *1300 http script var: "Mozilla/5.0 (X11; U; Linux i686; it; rv:1.9.2.24) Gecko/20111107 Ubuntu/10.04 (lucid) Firefox/3.6.24"
2012/01/26 08:16:11 [debug] 5604#0: *1300 http map: "Mozilla/5.0 (X11; U; Linux i686; it; rv:1.9.2.24) Gecko/20111107 Ubuntu/10.04 (lucid) Firefox/3.6.24" "0"
2012/01/26 08:16:11 [debug] 5604#0: *1300 http script var: "0"
2012/01/26 08:16:11 [debug] 5604#0: *1300 http script if
2012/01/26 08:16:11 [debug] 5604#0: *1300 http script if: false
2012/01/26 08:16:11 [debug] 5604#0: *1300 http script var
2012/01/26 08:16:11 [debug] 5604#0: *1300 http geo started: 82.154.170.48
2012/01/26 08:16:11 [debug] 5604#0: *1300 http geo:
2012/01/26 08:16:11 [debug] 5604#0: *1300 http script var: ""
2012/01/26 08:16:11 [debug] 5604#0: *1300 http script if
2012/01/26 08:16:11 [debug] 5604#0: *1300 http script if: false
2012/01/26 08:16:11 [debug] 5604#0: *1300 test location: "/"
2012/01/26 08:16:11 [debug] 5604#0: *1300 test location: "patches"
2012/01/26 08:16:11 [debug] 5604#0: *1300 test location: "boost_stats.php"
2012/01/26 08:16:11 [debug] 5604#0: *1300 test location: "backup"
2012/01/26 08:16:11 [debug] 5604#0: *1300 test location: ".git"
2012/01/26 08:16:11 [debug] 5604#0: *1300 test location: "/sites/default/files/audio/ogg"
2012/01/26 08:16:11 [debug] 5604#0: *1300 test location: "/sites/default/files/advagg_js/"
2012/01/26 08:16:11 [debug] 5604#0: *1300 test location: "/sites/default/files/advagg_css/"
2012/01/26 08:16:11 [debug] 5604#0: *1300 test location: "/help/"
2012/01/26 08:16:11 [debug] 5604#0: *1300 test location: ~ "/imagecache/"
2012/01/26 08:16:11 [debug] 5604#0: *1300 test location: ~ "/files/styles/"
2012/01/26 08:16:11 [debug] 5604#0: *1300 test location: ~ "^.+.(?:css|js|jpg|jpeg|gif|ico|png|html|xml)$"
2012/01/26 08:16:11 [debug] 5604#0: *1300 test location: ~ "^.+.(?:pdf|pptx?)$"
2012/01/26 08:16:11 [debug] 5604#0: *1300 test location: ~ "^(?:.+.(?:htaccess|make|txt|engine|inc|info|install|module|profile|po|sh|.sql|theme|tpl(?:.php)?|xtmpl)|code-style.pl|/Entries.|/Repository|/Root|/Tag|/Template)$"
2012/01/26 08:16:11 [debug] 5604#0: *1300 test location: ~ "^.+.php$"
2012/01/26 08:16:11 [debug] 5604#0: *1300 test location: ~ "^(.
)/x-progress-id:(\w*)"
2012/01/26 08:16:11 [debug] 5604#0: *1300 using configuration "/"
2012/01/26 08:16:11 [debug] 5604#0: *1300 http cl:223 max:10485760
2012/01/26 08:16:11 [debug] 5604#0: *1300 rewrite phase: 3
2012/01/26 08:16:11 [debug] 5604#0: *1300 post rewrite phase: 4
2012/01/26 08:16:11 [debug] 5604#0: *1300 generic phase: 5
2012/01/26 08:16:11 [debug] 5604#0: *1300 generic phase: 6
2012/01/26 08:16:11 [debug] 5604#0: *1300 generic phase: 7
2012/01/26 08:16:11 [debug] 5604#0: *1300 limit_req: 0 0.000
2012/01/26 08:16:11 [debug] 5604#0: *1300 generic phase: 8
2012/01/26 08:16:11 [debug] 5604#0: *1300 add cleanup: 00000000120CD480
2012/01/26 08:16:11 [debug] 5604#0: *1300 limit zone: C2F541DC 1
2012/01/26 08:16:11 [debug] 5604#0: *1300 access phase: 9
2012/01/26 08:16:11 [debug] 5604#0: *1300 access phase: 10
2012/01/26 08:16:11 [debug] 5604#0: *1300 post access phase: 11
2012/01/26 08:16:11 [debug] 5604#0: *1300 try files phase: 12
2012/01/26 08:16:11 [debug] 5604#0: *1300 http script var: "/anuncio/concertos"
2012/01/26 08:16:11 [debug] 5604#0: *1300 trying to use file: "/anuncio/concertos" "/var/www/sites/portuguest.com/httpdocs/anuncio/concertos"
2012/01/26 08:16:11 [debug] 5604#0: *1300 trying to use file: "@cache" "/var/www/sites/portuguest.com/httpdocs@cache"
2012/01/26 08:16:11 [debug] 5604#0: *1300 test location: "@cache"
2012/01/26 08:16:11 [debug] 5604#0: *1300 using location: @cache "/anuncio/concertos?f[0]=field_preco%3A%5B11%20TO%2031%5D"
2012/01/26 08:16:11 [debug] 5604#0: *1300 rewrite phase: 3
2012/01/26 08:16:11 [debug] 5604#0: *1300 posix_memalign: 0000000011E312B0:4096 @16
2012/01/26 08:16:11 [debug] 5604#0: *1300 http script var
2012/01/26 08:16:11 [debug] 5604#0: *1300 http map started
2012/01/26 08:16:11 [debug] 5604#0: *1300 http script var: "has_js=1; __utma=167375039.1617837705.1327576466.1327576466.1327583533.2; __utmc=167375039; __utmz=167375039.1327576466.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmb=167375039.7.10.1327583533"
2012/01/26 08:16:11 [debug] 5604#0: *1300 http map: "has_js=1; __utma=167375039.1617837705.1327576466.1327576466.1327583533.2; __utmc=167375039; __utmz=167375039.1327576466.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmb=167375039.7.10.1327583533" "0"
2012/01/26 08:16:11 [debug] 5604#0: *1300 http script var: "0"
2012/01/26 08:16:11 [debug] 5604#0: *1300 http script if
2012/01/26 08:16:11 [debug] 5604#0: *1300 http script if: false
2012/01/26 08:16:11 [debug] 5604#0: *1300 post rewrite phase: 4
2012/01/26 08:16:11 [debug] 5604#0: *1300 generic phase: 5
2012/01/26 08:16:11 [debug] 5604#0: *1300 generic phase: 6
2012/01/26 08:16:11 [debug] 5604#0: *1300 generic phase: 7
2012/01/26 08:16:11 [debug] 5604#0: *1300 generic phase: 8
2012/01/26 08:16:11 [debug] 5604#0: *1300 access phase: 9
2012/01/26 08:16:11 [debug] 5604#0: *1300 access phase: 10
2012/01/26 08:16:11 [debug] 5604#0: *1300 post access phase: 11
2012/01/26 08:16:11 [debug] 5604#0: *1300 try files phase: 12
2012/01/26 08:16:11 [debug] 5604#0: *1300 http script copy: "/cache/normal/"
2012/01/26 08:16:11 [debug] 5604#0: *1300 http script var: "portuguest.com"
2012/01/26 08:16:11 [debug] 5604#0: *1300 http script var: "/anuncio/concertos"
2012/01/26 08:16:11 [debug] 5604#0: *1300 http script copy: "_"
2012/01/26 08:16:11 [debug] 5604#0: *1300 http script var: "f[0]=field_preco%3A%5B11%20TO%2031%5D"
2012/01/26 08:16:11 [debug] 5604#0: *1300 http script copy: ".html"
2012/01/26 08:16:11 [debug] 5604#0: *1300 trying to use file: "/cache/normal/portuguest.com/anuncio/concertos_f[0]=field_preco%3A%5B11%20TO%2031%5D.html" "/var/www/sites/portuguest.com/httpdocs/cache/normal/portuguest.com/anuncio/concertos_f[0]=field_preco%3A%5B11%20TO%2031%5D.html"
2012/01/26 08:16:11 [debug] 5604#0: *1300 try file uri: "/cache/normal/portuguest.com/anuncio/concertos_f[0]=field_preco%3A%5B11%20TO%2031%5D.html"
2012/01/26 08:16:11 [debug] 5604#0: *1300 content phase: 13
2012/01/26 08:16:11 [debug] 5604#0: *1300 content phase: 14
2012/01/26 08:16:11 [debug] 5604#0: *1300 content phase: 15
2012/01/26 08:16:11 [debug] 5604#0: *1300 content phase: 16
2012/01/26 08:16:11 [debug] 5604#0: *1300 content phase: 17
2012/01/26 08:16:11 [debug] 5604#0: *1300 http filename: "/var/www/sites/portuguest.com/httpdocs/cache/normal/portuguest.com/anuncio/concertos_f[0]=field_preco%3A%5B11%20TO%2031%5D.html"
2012/01/26 08:16:11 [debug] 5604#0: *1300 add cleanup: 00000000120CD5A0
2012/01/26 08:16:11 [debug] 5604#0: *1300 http static fd: 9
2012/01/26 08:16:11 [debug] 5604#0: *1300 http finalize request: 405, "/cache/normal/portuguest.com/anuncio/concertos_f[0]=field_preco%3A%5B11%20TO%2031%5D.html?f[0]=field_preco%3A%5B11%20TO%2031%5D" a:1, c:2
2012/01/26 08:16:11 [debug] 5604#0: *1300 http special response: 405, "/cache/normal/portuguest.com/anuncio/concertos_f[0]=field_preco%3A%5B11%20TO%2031%5D.html?f[0]=field_preco%3A%5B11%20TO%2031%5D"
2012/01/26 08:16:11 [debug] 5604#0: *1300 http set discard body
2012/01/26 08:16:11 [debug] 5604#0: *1300 http read discarded body
2012/01/26 08:16:11 [debug] 5604#0: *1300 recv: fd:3 27 of 27
2012/01/26 08:16:11 [debug] 5604#0: *1300 HTTP/1.1 405 Not Allowed
Server: nginx
Date: Thu, 26 Jan 2012 13:16:11 GMT
Content-Type: text/html
Content-Length: 166
Connection: keep-alive
Keep-Alive: timeout=10

2012/01/26 08:16:11 [debug] 5604#0: *1300 write new buf t:1 f:0 0000000011E31668, pos 0000000011E31668, size: 174 file: 0, size: 0
2012/01/26 08:16:11 [debug] 5604#0: *1300 http write filter: l:0 f:0 s:174
2012/01/26 08:16:11 [debug] 5604#0: *1300 http output filter "/cache/normal/portuguest.com/anuncio/concertos_f[0]=field_preco%3A%5B11%20TO%2031%5D.html?f[0]=field_preco%3A%5B11%20TO%2031%5D"
2012/01/26 08:16:11 [debug] 5604#0: *1300 http copy filter: "/cache/normal/portuguest.com/anuncio/concertos_f[0]=field_preco%3A%5B11%20TO%2031%5D.html?f[0]=field_preco%3A%5B11%20TO%2031%5D"
2012/01/26 08:16:11 [debug] 5604#0: *1300 image filter
2012/01/26 08:16:11 [debug] 5604#0: *1300 http postpone filter "/cache/normal/portuguest.com/anuncio/concertos_f[0]=field_preco%3A%5B11%20TO%2031%5D.html?f[0]=field_preco%3A%5B11%20TO%2031%5D" 00000000120CD5E0
2012/01/26 08:16:11 [debug] 5604#0: *1300 write old buf t:1 f:0 0000000011E31668, pos 0000000011E31668, size: 174 file: 0, size: 0
2012/01/26 08:16:11 [debug] 5604#0: *1300 write new buf t:0 f:0 0000000000000000, pos 0000000000696460, size: 120 file: 0, size: 0
2012/01/26 08:16:11 [debug] 5604#0: *1300 write new buf t:0 f:0 0000000000000000, pos 0000000000695E20, size: 46 file: 0, size: 0
2012/01/26 08:16:11 [debug] 5604#0: *1300 http write filter: l:1 f:0 s:340
2012/01/26 08:16:11 [debug] 5604#0: *1300 http write filter limit 0
2012/01/26 08:16:11 [debug] 5604#0: *1300 writev: 340
2012/01/26 08:16:11 [debug] 5604#0: *1300 http write filter 0000000000000000
2012/01/26 08:16:11 [debug] 5604#0: *1300 http copy filter: 0 "/cache/normal/portuguest.com/anuncio/concertos_f[0]=field_preco%3A%5B11%20TO%2031%5D.html?f[0]=field_preco%3A%5B11%20TO%2031%5D"
2012/01/26 08:16:11 [debug] 5604#0: *1300 http finalize request: 0, "/cache/normal/portuguest.com/anuncio/concertos_f[0]=field_preco%3A%5B11%20TO%2031%5D.html?f[0]=field_preco%3A%5B11%20TO%2031%5D" a:1, c:2
2012/01/26 08:16:11 [debug] 5604#0: *1300 http request count:2 blk:0
2012/01/26 08:16:11 [debug] 5604#0: *1300 http finalize request: -4, "/cache/normal/portuguest.com/anuncio/concertos_f[0]=field_preco%3A%5B11%20TO%2031%5D.html?f[0]=field_preco%3A%5B11%20TO%2031%5D" a:1, c:1
2012/01/26 08:16:11 [debug] 5604#0: *1300 set http keepalive handler
2012/01/26 08:16:11 [debug] 5604#0: *1300 http close request
2012/01/26 08:16:11 [debug] 5604#0: *1300 http log handler
2012/01/26 08:16:11 [debug] 5604#0: *1300 run cleanup: 00000000120CD5A0
2012/01/26 08:16:11 [debug] 5604#0: *1300 file cleanup: fd:9
2012/01/26 08:16:11 [debug] 5604#0: *1300 run cleanup: 00000000120CD480
2012/01/26 08:16:11 [debug] 5604#0: *1300 free: 00000000120CC600, unused: 0
2012/01/26 08:16:11 [debug] 5604#0: *1300 free: 0000000011E312B0, unused: 2304
2012/01/26 08:16:11 [debug] 5604#0: *1300 event timer add: 3: 10000:1327583781308
2012/01/26 08:16:11 [debug] 5604#0: *1300 free: 0000000011FF56E0
2012/01/26 08:16:11 [debug] 5604#0: *1300 free: 0000000011D107F0
2012/01/26 08:16:11 [debug] 5604#0: *1300 hc free: 0000000000000000 0
2012/01/26 08:16:11 [debug] 5604#0: *1300 hc busy: 0000000000000000 0
2012/01/26 08:16:11 [debug] 5604#0: *1300 tcp_nodelay
2012/01/26 08:16:11 [debug] 5604#0: *1300 reusable connection: 1
2012/01/26 08:16:11 [debug] 5604#0: *1300 post event 0000000011F2F1C0
2012/01/26 08:16:11 [debug] 5604#0: *1300 delete posted event 0000000011F2F1C0
2012/01/26 08:16:11 [debug] 5604#0: *1300 http keepalive handler
2012/01/26 08:16:11 [debug] 5604#0: *1300 malloc: 0000000011D107F0:1024
2012/01/26 08:16:11 [debug] 5604#0: *1300 recv: fd:3 -1 of 1024
2012/01/26 08:16:11 [debug] 5604#0: *1300 recv() not ready (11: Resource temporarily unavailable)

Owner

perusio commented Jan 26, 2012

Olá Ziozimar,

There's no POST or/and you're not logged in. Check the lines like:

2012/01/26 08:16:08 [debug] 5604#0: *1298 http map started
2012/01/26 08:16:08 [debug] 5604#0: *1298 http script var: "Mozilla/5.0 (X11; U; Linux i686; it; rv:1.9.2.24)      Gecko/20111107 Ubuntu/10.04 (lucid) Firefox/3.6.24"

This one matches the User-Agent, as you can see, there are other ones matching the cookies but no session cookie is present. And none matches the request method.

Olà Perusio,

So if i have correctly understood, i can't use boost with this module..
The problem is that I have faceted search on all my pages, and i want in cache most of my pages.
Only when i selected this slider filter i'm getting this error.

So the expected behavour should be:

  1. [GET] http://example.com/arg1/agr2?param1=aaaa&param2=bbbbb
    -> get page from cache
  2. [POST] http://example.com/arg1/agr2?param1=aaaa&param2=bbbbb&param3=cccc
    -> send request to php-fpm

So for this specific case, this is a valid solution?:

if ($request_method = POST) {
return 405;
}
error_page 405 = @drupal;

An alternative it would change the drupal module's behavour to using only the "get" method, but this is more complicated.

In all cases thanks for your help.

Owner

perusio commented Jan 26, 2012

Yes it is correct. I venture that the issue is with some AJAX request that is being done and Boost is not capturing that. I could be wrong. I would release the 405 status and instead use 418 while returning 200, like this:

if ($request_method = POST) {
    return 418;
} 

error_page 418 =200 @drupal;

Try it out.

Owner

perusio commented Jan 26, 2012

Do the request URIs of the above mentioned POST request have any distinguishing characteristic like a specific argument with a non-null value? If so than we can reflect it in the way the $no_cache variable value is computed and fix this with something that is more generic while being less of an hack than dealing with the $request_method.

Yes you are right, it does an ajax request and then reload the page to another url(cached).

The variables sending in POST are :

range-min : user input
range-max : user input
range-ajax-target : target url (dependant on current page)
range-field : is always the same (the name of the field)
form_build_id : drupal standard behavour
form_token : drupal standard behavour
form_id : always the same

I'm trying to using 418 instead of 405, it work, but only without 200 status like this:

if ($request_method = POST) {
    return 418;
} 

error_page 418 = @drupal;
Owner

perusio commented Jan 26, 2012

AFAIK you cannot get POST args with the standard modules. You can do that in Lua. So usually we can only either get the $request_body variable or use the URI.

Ok, i can take the simplest solution for now..

Obrigadissimo :)

I am having this problem also with Drupal6. Using drupal_boost6.conf

POST forms cause a 405 error. I tried:

if ($request_method = POST) {
return 418;

However the page timesout when posting.

Disabling Boost for the form pages containing POST solves the issue. Perhaps its not possible to submit a post from the static html boost cache?

Owner

perusio commented Mar 7, 2012

Hello,

In fact the test for POST was not well done. It's complicated to do it with map. To be correct needs 3 variables. I've added a test for the request method in each cache location. See it here

Thanks. I will try it out.

@perusio perusio closed this May 5, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment