set $myroot /path/ location / { root $myroot; } пытается отработать как относительный путь, т.е. ищет по пути /usr/local/nginx//path nginx 0.3.54