There is a bug in apache wich is not allow swift to work properly. In short - apache is not properly handled Content-Length header with HEAD requests in case of zero file size, and this behavior is not expected by swift. It is not possible to fix issues using header rewrite, i checked this.

Thats the reason of using nginx here.


About 2 month ago i saw commit in swift wich maybe fix issue, but i can't remember if it was merged in or not, and also not checked it.


More detailed issue description - http://paste2.org/jUMIWOH0