Welcome! Log In Create A New Profile

Advanced

Re: Re[2]: autoindex directive in 'if' section

B.R.
January 27, 2012 06:04PM
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.
---
*B. R.*


On Fri, Jan 27, 2012 at 17:41, B.R. <reallfqq-nginx@yahoo.fr> wrote:

> Thanks for the help!
> Needed some other tricks playing with the path...
>
> Many thanks again! ;o)
> ---
> *B. R.*
>
>
> On Fri, Jan 27, 2012 at 16:51, Max <nginxyz@mail.ru> wrote:
>
>> 28 января 2012, 00:44 от "reallfqq-nginx@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
>>
>> _______________________________________________
>> nginx mailing list
>> nginx@nginx.org
>> http://mailman.nginx.org/mailman/listinfo/nginx
>>
>
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

autoindex directive in 'if' section

B.R. January 26, 2012 02:18PM

Re: autoindex directive in 'if' section

Maxim Dounin January 26, 2012 02:22PM

Re : autoindex directive in 'if' section

reallfqq-nginx@yahoo.fr January 27, 2012 03:44PM

Re[2]: autoindex directive in 'if' section

Max January 27, 2012 04:54PM

Re: Re[2]: autoindex directive in 'if' section

B.R. January 27, 2012 05:44PM

Re: Re[2]: autoindex directive in 'if' section

B.R. January 27, 2012 06:04PM

Re[6]: autoindex directive in 'if' section

Max February 01, 2012 07:10PM

Re[6]: autoindex directive in 'if' section

Max February 01, 2012 07:30PM

Re: Re[6]: autoindex directive in 'if' section

B.R. February 01, 2012 07:52PM

Re[4]: autoindex directive in 'if' section

Max January 27, 2012 07:38PM

Re: Re[4]: autoindex directive in 'if' section

B.R. January 27, 2012 10:18PM

Re: Re[4]: autoindex directive in 'if' section

B.R. February 01, 2012 04:48PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 164
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