I see a root inside 1 location block but not inside the block where you have the problem, place root at server block level or repeat it in each location block.
Add_header $docroot and use curl to see whats in it.
Add_header $docroot and use curl to see whats in it.