Welcome! Log In Create A New Profile

Advanced

Re: fastcgi server variables vs. apache

Igor Sysoev
December 10, 2009 09:44AM
On Thu, Dec 10, 2009 at 03:28:17PM +0100, My SchizoBuddy wrote:

> what is /path/to/php?
> is it where the root index.php is
>
> for links like dev.flow3.local/index.php/flow3/welcome
> the path_translated is C:/nginx/html/flow3/Web/flow3/welcome which is
> wrong cause there is no folder flow3 inside the Web folder. flow3 and
> welcome are query parameters not folders.

location ~ ^(.+\.php)(.*)$ {
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_param SCRIPT_FILENAME C:/nginx/html$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
...
}

For dev.flow3.local/index.php/flow3/welcome
SCRIPT_FILENAME will be "C:/nginx/html/index.php"
PATH_INFO - "/flow3/Web/flow3/welcome"


--
Igor Sysoev
http://sysoev.ru/en/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

fastcgi server variables vs. apache

androo April 06, 2009 07:55PM

Re: fastcgi server variables vs. apache

Denis F. Latypoff April 06, 2009 10:49PM

Re: fastcgi server variables vs. apache

androo April 07, 2009 11:02PM

Re: fastcgi server variables vs. apache

My SchizoBuddy December 10, 2009 09:36AM

Re: fastcgi server variables vs. apache

Igor Sysoev December 10, 2009 09:44AM

Re: fastcgi server variables vs. apache

spirit December 16, 2009 08:40AM

Re: fastcgi server variables vs. apache

Igor Sysoev December 16, 2009 09:00AM

Re: fastcgi server variables vs. apache

locojohn July 07, 2011 09:22AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 308
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