2010-05-31
jyf832004
发件人: Yuriy Taraday <yorik.sar@gmail.com>
发送时间: 2010-05-31 11:24
主 题: Re: Re: uri and sub-uri
收件人: nginx-devel@nginx.org
How do you expect nginx to find out which uri's valid for your module?
It may be done in nginx.conf with regex,something like this:
location "~^(/system/syslog)(/?$|/[0-9]{2}-[0-9]{2}-[0-9]{4}$)"
{
system_syslog on;
}
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
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.
On Mon, May 31, 2010 at 7:02 AM, jyf832004 <jyf832004@163.com> wrote:
Thanks Weibin:
This module provides automatic directory listings,in my opinion,it only list static files under some directory.
But my sub-uris are written in the nginx.conf file,which are identified by location directive
and are not mapped to some physical directory
but handled by modules written by me.
any suggestion?
Thank you.
2010-05-31
jyf832004
发件人: Weibin Yao <nbubingo@gmail.com>
发送时间: 2010-05-31 10:28
主 题: Re: uri and sub-uri
收件人: nginx-devel@nginx.org
jyf832004 at 2010-5-31 10:06 wrote:
> Hi,all:
> Can nginx support uri and sub-uri,for example,when i have a
> uri:http://www.example.com/system, and some sub-uris under
> it:http://www.example.com/system/syslog,http://www.example.com/system/firmware,http://www.example.com/system/sysuser.
> When i browse http://www.example.com/system can nginx list the
> sub-uris above?
> Thank you very much!
http://wiki.nginx.org/NginxHttpAutoindexModule
>
> 2010-05-31
> ------------------------------------------------------------------------
> jyf832004
> ------------------------------------------------------------------------
>
> _______________________________________________
> nginx-devel mailing list
> nginx-devel@nginx.org
> http://nginx.org/mailman/listinfo/nginx-devel
>
--
Weibin Yao
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://nginx.org/mailman/listinfo/nginx-devel
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://nginx.org/mailman/listinfo/nginx-devel_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://nginx.org/mailman/listinfo/nginx-devel