2008-12-18

Masterhost and 411 Content Length required

Hey, guys, I just discovered a glitch on Masterhost servers. If you get 411 from their nginx, try looking up your error_log. That might be not the problem of your client not setting Content-Length while sending chunked content.

If your error_log says something like "Failed to create file upload directory "/var/tmp"", look for tempnam() function in your code. This thingie is trying to create temporary file in masterhost's server own /tmp, not your virtual host's one. The only solution is to avoid using tempnam().

Комментариев нет: