title: How to configure nginx to enable kinda 'file browser' mode?
body: <p>Once I've seen this before when I type a URL <code>http://test.com/test/</code>, instead of give me a html page, it gives me a 'file browser' like interface to browse all the files in the given location.</p>
  
  <p>I think it maybe a nginx module that could be enable in the location context.</p>
  
  <p>The <code>nginx.conf</code> file:</p>
  
  <pre><code>worker_processes  1;
  events {
      worker_connections  1024;
  }
  http {
      include       mime.types;
      default_type  application/octet-stream;
      sendfile        on;
      keepalive_timeout  65;
      server {
          listen       80;
          server_name  122.97.248.252;
                  location /test {
                          root /home/yozloy/html/;
                          autoindex on;
                  }
          error_page   500 502 503 504  /50x.html;
          location = /50x.html {
              root   html;
          }
      }
  }
  </code></pre>
  
  <p>update the <code>error.log</code></p>
  
  <blockquote>
    <p>2012/05/19 20:48:33 [error] 20357#0: *72 open() "/home/yozloy/html/test" failed (2: No such file or directory), client: 125.43.236.33, server: 122.97.248.252, request: "GET /test HTTP/1.1", host: "unicom2.markson.hk</p>
  </blockquote>
  
  <p>I must misunderstand the location <code>/test</code> mean, I thought it meant when I type <a href="http://example.com/test" rel="noreferrer">http://example.com/test</a>, then it would access the root dictionary which is <code>/home/yozloy/html/</code></p>