title: How to specify a directory in nginx.conf to serve index.html from
body: <p>I am trying to rewrite a very simple nginx.conf file.  The only purpose of this project is to have nginx serve a static index.html on localhost.</p>
  
  <p>Since all of the documentation and tutorials online have minimum 50 line configurations.  I'm wondering if my 7 line configuration will work and accomplish what I need.</p>
  
  <pre><code>}    
    server {
      root /test/index
      listen 8888;
    }
  }
  </code></pre>
  
  <p>Usually I just use the default nginx.conf and make modifications for whatever project I'm working on, so I'm not sure if I can strip out as much as I did here and have it still function?</p>