<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<STYLE type=text/css> <!--@import url(C:\Program Files\Netease\网易闪电邮\\data\scrollbar.css); --></STYLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<STYLE>BLOCKQUOTE{margin-Top: 0px; margin-Bottom: 0px; margin-Left: 2em};                                                  body{FONT-SIZE:12pt; FONT-FAMILY:宋体,serif;};                                                  </STYLE>
<META content="MSHTML 6.00.2900.5945" name=GENERATOR><BASE target=_blank></HEAD>
<BODY
style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; MARGIN: 12px; BORDER-RIGHT-WIDTH: 0px"
marginheight="0" marginwidth="0"><STATIONERY>
<DIV>
<DIV><FONT face=宋体 color=#000000 size=3>ok.Thanks for your reply.</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="WIDTH: 122px; HEIGHT: 2px" align=left SIZE=2>
<DIV><FONT face=Verdana color=#c0c0c0 size=2><SPAN
id=_FlashSignName>jyf832004</SPAN></FONT></DIV></FONT>
<DIV>
<HR>
</DIV>
<DIV>发件人: Yuriy Taraday <yorik.sar@gmail.com></DIV>
<DIV>发送时间: 2010-05-31 12:39</DIV>
<DIV>主 题: Re: Re: Re: uri and sub-uri</DIV>
<DIV>收件人: nginx-devel@nginx.org</DIV>
<DIV><BR><BR></DIV>Well, this problem can not be solved in common case. You can
use expressions like "/anything/(.*).php$" and no robot can extract concrete uri
tree from them.
<DIV>If you have some your own locations' 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><<A
href="mailto:jyf832004@163.com"
target=_blank>jyf832004@163.com</A>></SPAN><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><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="MIN-HEIGHT: 2px; WIDTH: 122px" 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 <<A href="mailto:yorik.sar@gmail.com"
target=_blank>yorik.sar@gmail.com</A>></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'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
"~^(/system/syslog)(/?$|/[0-9]{2}-[0-9]{2}-[0-9]{4}$)"<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'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><<A href="mailto:jyf832004@163.com"
target=_blank>jyf832004@163.com</A>></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 <<A href="mailto:nbubingo@gmail.com"
target=_blank>nbubingo@gmail.com</A>></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>> Hi,all: </DIV>
<DIV>> Can nginx support uri and sub-uri,for example,when i have a </DIV>
<DIV>> uri:<A href="http://www.example.com/system"
target=_blank>http://www.example.com/system</A>, and some sub-uris under </DIV>
<DIV>> 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>> When i browse <A
href="http://www.example.com/system"
target=_blank>http://www.example.com/system</A> can nginx list the </DIV>
<DIV>> sub-uris above? </DIV>
<DIV>> 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>> </DIV>
<DIV>> 2010-05-31 </DIV>
<DIV>> ------------------------------------------------------------------------ </DIV>
<DIV>> jyf832004 </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>
<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></DIV></STATIONERY></BODY></HTML>