fastcgi server variables vs. apache
Igor Sysoev
igor at sysoev.ru
Thu Dec 10 17:40:55 MSK 2009
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/
More information about the nginx
mailing list