Hello!<br><br><div class="gmail_quote">2009/6/18 Igor Sysoev <span dir="ltr"><<a href="mailto:is@rambler-co.ru">is@rambler-co.ru</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Thu, Jun 18, 2009 at 01:41:43PM +0200, Artifex Maximus wrote:<br>
<br>> Because of different path I need to generate a different<br>
> SCRIPT_FILENAME inside location /x/. But with this config file nginx<br>
> looks for /stat/x/... file instead of /stat/... file. How should I<br>
> solve this?<br>
<br>
</div>An "alias" is incorrectly inherited in nested locations.<br>
This is the reason why the nested locations are still not officially<br>
supported. Probably this will help:<br>
<br>
location ~ ^/x/(.+\.php)$ {<br>
alias /stat/$1;<br>
<div class="im"> fastcgi_pass <a href="http://127.0.0.1:9000" target="_blank">127.0.0.1:9000</a>;<br>
fastcgi_index index.php;<br>
</div> fastcgi_param SCRIPT_FILENAME $request_filename;<br>
include fastcgi_params;<br>
<div class="im"> }<br>
</div></blockquote><div><br></div><div>Tricky and perfect. Thank you!</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">
> Another question. Is there any global fastcgi setup as lighttpd has? I<br>
> mean that I give globally only the host, port, socket and other<br>
> parameters (like SCRIPT_FILENAME) are generated by nginx.<br>
<br>
</div>There is no global fastcgi settings.</blockquote><div><br></div><div>Is there any plan for implement? I'm just asking because it makes some settings much more simple.</div><div><br></div><div>Bye,</div><div>Zsolt</div>
</div>