Remove temp ngx.var.root and replace it with ngx.var.document_root