Reference root location as a variable in server {} block

view full story

http://serverfault.com – In my server {} block I have root defined with a path. How can I later reference this path? This is what I'm trying to accomplish: server { listen 80; root /var/www/foosite; ... include $root/*.ngaccess; } Unfortunately using $root doesn't work (because I haven't defined it). Does Nginx provide a way to access the root value? (HowTos)