Reference root location as a variable in server {} block

Solution 1:

You want the document_root variable.