Well, this problem can not be solved in common case. You can use expressions like &quot;/anything/(.*).php$&quot; and no robot can extract concrete uri tree from them.<div>If you have some your own locations&#39; structure, you should write your own module that will walk throw them. You can use autoindex module as base.<br>

<br><div class="gmail_quote">2010/5/31 jyf832004 <span dir="ltr">&lt;<a href="mailto:jyf832004@163.com" target="_blank">jyf832004@163.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">







<div style="border-top-width:0px;border-left-width:0px;border-bottom-width:0px;margin:12px;border-right-width:0px" marginheight="0" marginwidth="0">
<div><font face="宋体" color="#000000" size="3"></font> </div>
<div><font face="宋体" color="#000000" size="3"></font> </div>
<div align="left"><font face="Verdana" color="#c0c0c0" size="2">2010-05-31</font></div><font face="Verdana" size="2">
<div>
<hr style="width:122px;min-height:2px" align="left" size="2">
</div>
<div><font face="Verdana" color="#c0c0c0" size="2"><span>jyf832004</span></font></div></font>
<div>
<hr>
</div>
<div>发件人: Yuriy Taraday &lt;<a href="mailto:yorik.sar@gmail.com" target="_blank">yorik.sar@gmail.com</a>&gt;</div>
<div>发送时间: 2010-05-31 11:24</div>
<div>主 题: Re: Re: uri and sub-uri</div><div>
<div>收件人: <a href="mailto:nginx-devel@nginx.org" target="_blank">nginx-devel@nginx.org</a></div>
<div><br><br></div>
</div><div><div>How do you expect nginx to find out which uri&#39;s valid for your 
module?</div>
</div><div>It may be done in nginx.conf with regex,something like this:</div>
<div> </div>
<div>location 
&quot;~^(/system/syslog)(/?$|/[0-9]{2}-[0-9]{2}-[0-9]{4}$)&quot;<br>         
{<br>            
system_syslog on;<br>         
}<br></div>
<div>In my design,every uri act as a node and it should have a parent 
node expect for the root node,and have a child node expect for the leaf node.And 
when i</div>
<div>go to one node,and its child nodes can be listed.So i guess nginx 
can remeber a uri and its parent uri and child uris in some structure,i don&#39;t 
know if it exists. </div><div><div></div><div>
<div><br>
<div class="gmail_quote">On Mon, May 31, 2010 at 7:02 AM, jyf832004 <span dir="ltr">&lt;<a href="mailto:jyf832004@163.com" target="_blank">jyf832004@163.com</a>&gt;</span> 
wrote:<br>
<blockquote class="gmail_quote" style="padding-left:1ex;margin:0px 0px 0px 0.8ex;border-left:#ccc 1px solid">
  <div style="border-top-width:0px;border-left-width:0px;border-bottom-width:0px;margin:12px;border-right-width:0px" marginheight="0" marginwidth="0">
  <div>
  <div><font face="宋体" color="#000000" size="3">Thanks Weibin:</font></div>
  <div><font face="宋体" color="#000000" size="3">This module provides automatic 
  directory listings,in my opinion,it only list static files under some 
  directory.</font></div>
  <div><font face="宋体" color="#000000" size="3">But my sub-uris are written in the 
  nginx.conf file,which are identified by location directive </font></div>
  <div><font face="宋体" color="#000000" size="3">and are not mapped to some physical 
  directory </font></div>
  <div><font face="宋体" color="#000000" size="3">but handled by modules written by 
  me.</font></div>
  <div><font face="宋体" color="#000000" size="3">any suggestion? </font></div>
  <div><font face="宋体" color="#000000" size="3">Thank you.</font></div>
  <div><font face="宋体" color="#000000" size="3"></font> </div>
  <div align="left"><font face="Verdana" color="#c0c0c0" size="2">2010-05-31</font></div><font face="Verdana" size="2">
  <hr style="min-height:2px;width:122px" align="left" size="2">

  <div><font face="Verdana" color="#c0c0c0" size="2"><span>jyf832004</span></font></div></font><font color="#888888">
  <div>
  <hr>
  </div>
  <div>发件人: Weibin Yao &lt;<a href="mailto:nbubingo@gmail.com" target="_blank">nbubingo@gmail.com</a>&gt;</div>
  <div>发送时间: 2010-05-31 10:28</div>
  <div>主 题: Re: uri and sub-uri</div>
  <div>收件人: <a href="mailto:nginx-devel@nginx.org" target="_blank">nginx-devel@nginx.org</a></div></font>
  <div>
  <div></div>
  <div>
  <div><br><br></div>
  <div>jyf832004 at 2010-5-31 10:06 wrote: </div>
  <div>&gt; Hi,all: </div>
  <div>&gt; Can nginx support uri and sub-uri,for example,when i have a  </div>
  <div>&gt; uri:<a href="http://www.example.com/system" target="_blank">http://www.example.com/system</a>, and some sub-uris under  </div>
  <div>&gt; it:<a href="http://www.example.com/system/syslog,http://www.example.com/system/firmware,http://www.example.com/system/sysuser" target="_blank">http://www.example.com/system/syslog,http://www.example.com/system/firmware,http://www.example.com/system/sysuser</a>. </div>



  <div>&gt; When i browse <a href="http://www.example.com/system" target="_blank">http://www.example.com/system</a> can nginx list the  </div>
  <div>&gt; sub-uris above? </div>
  <div>&gt; Thank you very much! </div>
  <div> </div>
  <div><a href="http://wiki.nginx.org/NginxHttpAutoindexModule" target="_blank">http://wiki.nginx.org/NginxHttpAutoindexModule</a> </div>
  <div> </div>
  <div>&gt;   </div>
  <div>&gt; 2010-05-31 </div>
  <div>&gt; ------------------------------------------------------------------------ </div>
  <div>&gt; jyf832004 </div>
  <div>&gt; ------------------------------------------------------------------------ </div>
  <div>&gt; </div>
  <div>&gt; _______________________________________________ </div>
  <div>&gt; nginx-devel mailing list </div>
  <div>&gt; <a href="mailto:nginx-devel@nginx.org" target="_blank">nginx-devel@nginx.org</a> </div>
  <div>&gt; <a href="http://nginx.org/mailman/listinfo/nginx-devel" target="_blank">http://nginx.org/mailman/listinfo/nginx-devel</a> </div>
  <div>&gt;    </div>
  <div> </div>
  <div> </div>
  <div>--  </div>
  <div>Weibin Yao </div>
  <div> </div>
  <div> </div>
  <div>_______________________________________________ </div>
  <div>nginx-devel mailing list </div>
  <div><a href="mailto:nginx-devel@nginx.org" target="_blank">nginx-devel@nginx.org</a> </div>
  <div><a href="http://nginx.org/mailman/listinfo/nginx-devel" target="_blank">http://nginx.org/mailman/listinfo/nginx-devel</a> </div>
  <div></div></div></div></div></div><br>_______________________________________________<br>nginx-devel 
  mailing list<br><a href="mailto:nginx-devel@nginx.org" target="_blank">nginx-devel@nginx.org</a><br><a href="http://nginx.org/mailman/listinfo/nginx-devel" target="_blank">http://nginx.org/mailman/listinfo/nginx-devel</a><br>


<br></blockquote></div><br></div></div></div></div><br>_______________________________________________<br>
nginx-devel mailing list<br>
<a href="mailto:nginx-devel@nginx.org" target="_blank">nginx-devel@nginx.org</a><br>
<a href="http://nginx.org/mailman/listinfo/nginx-devel" target="_blank">http://nginx.org/mailman/listinfo/nginx-devel</a><br>
<br></blockquote></div><br>
</div>