make X-Accel-Redirect header work