I figured it out:<div><div><div><br class="Apple-interchange-newline">I found a directive:</div><div>  autoindex on;</div><div><br></div></div><div>    server {</div><div>        listen       8222;</div><div>        server_name  localhost;</div>
<div>        autoindex on;</div><div><br></div><div>Thanks me!</div><div><br></div><div class="gmail_quote">On Tue, Sep 28, 2010 at 3:44 PM, Audrey Lee <span dir="ltr">&lt;<a href="http://audrey.lee.is.me">audrey.lee.is.me</a>@<a href="http://gmail.com">gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello nginx people,<div><br></div><div>is it easy to configure nginx so that it will serve html for a directory?</div>
<div>I want the html to  list all files in that directory.</div><div><br></div><div>My directory would be like this:</div>
<div><br></div><div>nginx/html/mydir/</div><div><br></div><div>And I would fill it with files like:</div><div>my.html</div><div>our.txt</div><div>your.jpg</div><div>their.pdf</div><div><br></div><div>So if I browse <a href="http://audreyis.me/mydir/" target="_blank">http://audreyis.me/mydir/</a></div>

<div><br></div><div>I would see links to those files.</div><div><br></div><div>I think apache has this feature but I dont want to use apache.</div><div><br></div><div>Here is an example of what I am looking for:</div><div>

<br></div><div><a href="http://howto.unixdev.net/dirlist.html" target="_blank">http://howto.unixdev.net/dirlist.html</a></div><div><br></div><div>thanks!</div><div><br></div>
</blockquote></div><br></div>