title: How can I make this try_files directive work?
body: <p>I am trying to understand how Nginx's <a href="https://nginx.org/en/docs/http/ngx_http_core_module.html#try_files" rel="noreferrer">try_files</a> directive works. Nginx is running on my server and serving up the default page located at <code>/usr/share/nginx/html/index.html</code>.</p>
  
  <p>However, I have a simple HTML page located in the filesystem at <code>/var/www/test/index.html</code>. The following config file is not causing that file to get served.  I'd like to understand why not, and what change I need to make so that it will be served.</p>
  
  <p>Here is the relevant portion of <code>default.conf</code>:</p>
  
  <pre><code>server {
      listen       80;
      server_name  localhost;
  
      root  /var/www;
      try_files /test/index.html /;
  
      location / {
          root   /usr/share/nginx/html;
          index  index.html index.htm;
      }
  </code></pre>