atom feed12 messages in ru.sysoev.nginxRe: Re[2]: autoindex directive in 'if...
FromSent OnAttachments
B.R.Jan 26, 2012 11:15 am 
Maxim DouninJan 26, 2012 11:20 am 
real...@yahoo.frJan 27, 2012 12:43 pm 
MaxJan 27, 2012 1:51 pm 
B.R.Jan 27, 2012 2:41 pm 
B.R.Jan 27, 2012 3:01 pm 
MaxJan 27, 2012 4:36 pm 
B.R.Jan 27, 2012 7:15 pm 
B.R.Feb 1, 2012 1:45 pm 
MaxFeb 1, 2012 4:07 pm 
MaxFeb 1, 2012 4:28 pm 
B.R.Feb 1, 2012 4:50 pm 
Subject:Re: Re[2]: autoindex directive in 'if' section
From:B.R. (real@yahoo.fr)
Date:Jan 27, 2012 3:01:48 pm
List:ru.sysoev.nginx

Erk... Didn't make all my tests :o)

To end the job, I need to get rid of the 'post_rewrite' part of the path, so my files get served as '/path/to/files' and not '/post_rewrite/path/to/files'. I tried rewrite, but of course that gets me out of the current location block......

Should I replace the content of $uri? Is there any variable regex substitution mechanism in nginx? Couldn't find that on Google nor wiki. Maybe I am not searching for the right thing.

Thanks for the help! Needed some other tricks playing with the path...

Many thanks again! ;o)

On Fri, Jan 27, 2012 at 16:51, Max <ngin@mail.ru> wrote:

28 января 2012, 00:44 от "real@yahoo.fr" **: > I know this Wiki page... > I guess return/rewrite are useless here: I only want to change the root and > activate the directory listing when the user is on a specific directory of a > specific domain. > > Any more help ? :\ I just explained how this is handled here: http://mailman.nginx.org/pipermail/nginx/2012-January/031622.html In your case use the rewrite inside the if block and and then change root and set autoindex inside the internal URI block. Max