Welcome! Log In Create A New Profile

Advanced

Re: Re: Re: uri and sub-uri

Yuriy Taraday
May 31, 2010 12:40AM
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.
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.

2010/5/31 jyf832004 <jyf832004@163.com>

>
>
> 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
>
>
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

回复: Re: Re: uri and sub-uri

jyf832004 2317 May 30, 2010 11:46PM

Re: Re: Re: uri and sub-uri

Yuriy Taraday 1223 May 31, 2010 12:40AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 132
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready