Welcome! Log In Create A New Profile

Advanced

Re: CreateFile() error

September 22, 2009 05:34AM
On Sat, Sep 19, 2009 at 03:39:41AM +0500, Ziyad Saeed wrote:

> one slight issue
> when i go to dev.flow3.local/flow3/Welcome it works fine.
> but when i go to dev.flow3.local/ or dev.flow3.local/index.php it gives me
> an error
> http request count is zero while sending to client, client: 127.0.0.1,
> server: dev.flow3.local, request: "GET / HTTP/1.1", upstream: "fastcgi://
> 127.0.0.1:9000", host: "dev.flow3.local"

Could you create debug log of the failed request:

error_log /path/to/log debug;

?

I could not reproduce it on 0.8.15.

> 2009/9/16 Igor Sysoev <is@rambler-co.ru>
>
> > 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/
> >
> >

--
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: 233
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