23 Apr '13, 9pm

たぶんこのへん: 404 then upstream timeout - Ruby Forum

I finally got a chance to repro this in a sandboxed environment and ngrep the local adapter. It appears there might be 2 issues here -- 1 with nginx and 1 with varnish. The config that I tested is: http { upstream varnish { server 127.0.0.1:9999; } server { listen 8888; root /files; error_page 404 /404.html; location / { proxy_intercept_errors on; proxy_pass http://varnish; } } } Varnish is setup to proxy to a mongrel instance that's running a simple rails app. When I POST to a URL that 404s from mongrel (e.g. `/a`), I see ngrep passing the request to nginx, then varnish, then finally hitting mongrel. Varnish proxies the request back to nginx. The whole time it looks fine and 404 status code is set correctly. However, after nginx receives the response, it immediately makes a GET request against the same URL which then causes the connection to time out. This change seems to...

Full article: http://www.ruby-forum.com/topic/145179

Tweets

The 404 1,254: Where can you spare a Bitcoin? (...

cnet.com 22 Apr '13, 5pm

Justin Yu covers headphones and peripherals for CNET. When he's not wading through Web gulch or challenging colleagues to ...

The 404 1,254: Where can you spare a Bitcoin? (...

cnet.com 22 Apr '13, 5pm

Justin Yu covers headphones and peripherals for CNET. When he's not wading through Web gulch or challenging colleagues to ...

The 404 1,254: Where can you spare a Bitcoin? (...

cnet.com 22 Apr '13, 5pm

Justin Yu covers headphones and peripherals for CNET. When he's not wading through Web gulch or challenging colleagues to ...

Ruby's pessimistic operator (please stop doing ...

robots.thoughtbot.com 24 Apr '13, 8am

December 29, 2010 dancroak bundler gemfile ruby ruby gems semantic versioning software pessimistic operator Ruby’s pessimi...

Ruby 2.0 has been released and @rubinius has st...

rubini.us 26 Apr '13, 3pm

The Rubinius team is now focused on pushing Rubinius into the hands of all developers. To that end, the current highlevel ...