<font color="#333399"><font>Erk...<br>Didn't make all my tests :o)<br><br>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'.<br>

I tried rewrite, but of course that gets me out of the current location block......<br><br>Should I replace the content of $uri? Is there any variable regex substitution mechanism in nginx?<br>Couldn't find that on Google nor wiki. Maybe I am not searching for the right thing.<br clear="all">

</font></font><font size="1"><span style="color:rgb(102,102,102)">---<br></span><b><span style="color:rgb(102,102,102)">B. R.</span></b><span style="color:rgb(102,102,102)"></span></font><br>
<br><br><div class="gmail_quote">On Fri, Jan 27, 2012 at 17:41, B.R. <span dir="ltr"><<a href="mailto:reallfqq-nginx@yahoo.fr">reallfqq-nginx@yahoo.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<font color="#333399"><font>Thanks for the help!<br>Needed some other tricks playing with the path...<br><br>Many thanks again! ;o)</font></font><br clear="all"><font size="1"><span style="color:rgb(102,102,102)">---<br>
</span><font color="#888888"><b><span style="color:rgb(102,102,102)">B. R.</span></b><span style="color:rgb(102,102,102)"></span></font></font><br>


<br><br><div class="gmail_quote"><div class="im">On Fri, Jan 27, 2012 at 16:51, Max <span dir="ltr"><<a href="mailto:nginxyz@mail.ru" target="_blank">nginxyz@mail.ru</a>></span> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im">

<div>
28 января 2012, 00:44 от "<a href="mailto:reallfqq-nginx@yahoo.fr" target="_blank">reallfqq-nginx@yahoo.fr</a>" <u></u>:
> 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:
<a href="http://mailman.nginx.org/pipermail/nginx/2012-January/031622.html" target="_blank">http://mailman.nginx.org/pipermail/nginx/2012-January/031622.html</a> 

In your case use the rewrite inside the if block and and then
change root and set autoindex inside the internal URI block.

Max</div>
<br></div><div class="im">_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br></div></blockquote></div><br>
</blockquote></div><br>