Thankyou Igor the solution worked<br><br><div class="gmail_quote">2009/9/16 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: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On Tue, Sep 15, 2009 at 11:23:22PM +0500, Ziyad Saeed wrote:<br>
<br>
> The url is <a href="http://dev.flow3.local/flow3/welcome" target="_blank">http://dev.flow3.local/flow3/welcome</a><br>
> Here is the error<br>
> CreateFile() "C:\nginx/htmlindex.php/flow3/welcome" failed (3: The system<br>
> cannot find the path specified)<br>
<br>
</div>The redirected request is handled again by "location /", because<br>
it is not matched by "location ~ \.php$". The right configuration is<br>
below. I also inlcude fastcgi_split_path_info to get right<br>
$fastcgi_script_name for SCRIPT_FILENAME.<br>
<br>
It also strange, that the path is<br>
"C:\nginx/htmlindex.php/flow3/welcome", but not<br>
"C:\nginx/html/flow/Webindex.php/flow3/welcome".<br>
<div class="im"><br>
> This is horribly wrong. I'm using try_files for a very simple rewrite rule.<br>
> my server code is<br>
> server {<br>
> listen 80;<br>
> server_name dev.flow3.local;<br>
><br>
> location / {<br>
> root html/flow3/Web;<br>
> index index.php;<br>
> try_files $uri $uri/ index.php$uri;<br>
<br>
</div>- try_files $uri $uri/ index.php$uri;<br>
+ try_files $uri $uri/ /index.php$uri;<br>
<div class="im"><br>
> }<br>
> error_page 500 502 503 504 /50x.html;<br>
><br>
> # pass the PHP scripts to FastCGI server listening on <a href="http://127.0.0.1:9000" target="_blank">127.0.0.1:9000</a><br>
> location ~ \.php$ {<br>
<br>
</div>- location ~ \.php$ {<br>
+ location ~ \.php($|/) {<br>
<br>
+ fastcgi_split_path_info ^(.+\.php)(.*)$;<br>
<div><div></div><div class="h5"><br>
> root html/flow3/Web;<br>
> fastcgi_connect_timeout 120;<br>
> fastcgi_send_timeout 180;<br>
> fastcgi_read_timeout 180;<br>
> fastcgi_pass <a href="http://127.0.0.1:9000" target="_blank">127.0.0.1:9000</a>;<br>
> fastcgi_index index.php;<br>
> fastcgi_param SCRIPT_FILENAME<br>
> $document_root$fastcgi_script_name;<br>
> include fastcgi_params;<br>
><br>
> }<br>
><br>
> location ~ /\.ht {<br>
> deny all;<br>
> }<br>
> }<br>
<br>
<br>
</div></div><font color="#888888">--<br>
Igor Sysoev<br>
<a href="http://sysoev.ru/en/" target="_blank">http://sysoev.ru/en/</a><br>
<br>
</font></blockquote></div><br>