I have always created seperate config file for each url. Have found this easier to manage and less errors Posted at Nginx Forum: http://forum.nginx.org/read.php?2,1013,1021#msg-1021