title: how is Nginx finding default root
body: <p>I just installed <code>nginx</code> using <code>brew</code> and its default config is located at <code>/usr/local/etc/nginx</code>. The server configuration in default <code>conf</code> file is as below (only small portion pasted)</p>
  <pre><code>server {
          listen       8080;
          server_name  localhost;
  
          #charset koi8-r;
  
          #access_log  logs/host.access.log  main;
  
          location / {
              root   html;
              index  index.html index.htm;
          }
  ...
  }
  </code></pre>
  <p>The location from which the <code>index.html</code> is being served is <code>/usr/local/var/www/</code>. Now, looking at the above configuration, I don't understand how <code>nginx</code> goes to <code>/usr/local/var/www/</code> to look for default file? Is there a different configuration that directs <code>nginx</code> to look into that folder?</p>