I hit the same problem. I ditched FancyIndex and went with: add_before_body /header.html; instead. You need to compile the option in: --with-http_addition_module.