Welcome! Log In Create A New Profile

Advanced

Re: CreateFile() error

September 16, 2009 03:50AM
On Tue, Sep 15, 2009 at 11:23:22PM +0500, Ziyad Saeed wrote:

> The url is http://dev.flow3.local/flow3/welcome
> Here is the error
> CreateFile() "C:\nginx/htmlindex.php/flow3/welcome" failed (3: The system
> cannot find the path specified)

The redirected request is handled again by "location /", because
it is not matched by "location ~ \.php$". The right configuration is
below. I also inlcude fastcgi_split_path_info to get right
$fastcgi_script_name for SCRIPT_FILENAME.

It also strange, that the path is
"C:\nginx/htmlindex.php/flow3/welcome", but not
"C:\nginx/html/flow/Webindex.php/flow3/welcome".

> This is horribly wrong. I'm using try_files for a very simple rewrite rule.
> my server code is
> server {
> listen 80;
> server_name dev.flow3.local;
>
> location / {
> root html/flow3/Web;
> index index.php;
> try_files $uri $uri/ index.php$uri;

- try_files $uri $uri/ index.php$uri;
+ try_files $uri $uri/ /index.php$uri;

> }
> error_page 500 502 503 504 /50x.html;
>
> # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
> location ~ \.php$ {

- location ~ \.php$ {
+ location ~ \.php($|/) {

+ fastcgi_split_path_info ^(.+\.php)(.*)$;

> root html/flow3/Web;
> fastcgi_connect_timeout 120;
> fastcgi_send_timeout 180;
> fastcgi_read_timeout 180;
> fastcgi_pass 127.0.0.1:9000;
> fastcgi_index index.php;
> fastcgi_param SCRIPT_FILENAME
> $document_root$fastcgi_script_name;
> include fastcgi_params;
>
> }
>
> location ~ /\.ht {
> deny all;
> }
> }


--
Igor Sysoev
http://sysoev.ru/en/
Subject Author Posted

CreateFile() error

MySchizoBuddy September 15, 2009 02:30PM

Re: CreateFile() error

Igor Sysoev September 16, 2009 03:50AM

Re: CreateFile() error

MySchizoBuddy September 18, 2009 05:44AM

Re: CreateFile() error

MySchizoBuddy September 18, 2009 06:44PM

Re: CreateFile() error

Igor Sysoev September 22, 2009 05:34AM

Re: CreateFile() error

Igor Sysoev September 22, 2009 04:22PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 98
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready