Maybe you should set location as fixed generic and then use root to change where ever it needs to, don't forget to tell php where stuff is if you change root. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,251908,251928#msg-251928