Welcome! Log In Create A New Profile

Advanced

Re: Re: symfony php configuration

May 23, 2009 11:20AM
On Sat, May 23, 2009 at 01:12:49PM +0200, Mikel Arteta wrote:

> > Igor Sysoev wrote:
> > You did not set
> >
> > fastcgi_param SCRIPT_FILENAME /path/to/php$fastcgi_script_name;
> >
> > and some other probably needed parameters inside
> > location ~ \.php$ {
> > and
> > location ~ ^(.+\.php)(.*)$ {
> Yet I have the settings in the file fastcgi_params, includes nginx.conf:
>
> -------------
>
> events {
> worker_connections 1024;
> use epoll;}
>
> http {
> ...
> ...
> ...
> include fastcgi_params;
>
> ---------------
>
> k26:nginx/conf# cat fastcgi_params
>
> fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
> fastcgi_param PATH_INFO $request_uri;
> fastcgi_param SCRIPT_NAME $fastcgi_script_name;
> fastcgi_param REQUEST_URI $request_uri;
> fastcgi_param DOCUMENT_URI $document_uri;
> fastcgi_param DOCUMENT_ROOT $document_root;
>
> -----------------

The silnge
fastcgi_param PATH_INFO $fastcgi_path_info;
overrides all inherited fastcgi_param's. Threfore you should include it
inside "location ~ ^(.+\.php)(.*)$".

Also, note wrong
fastcgi_param PATH_INFO $request_uri;
in the file.


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

symfony php configuration

shaktale April 29, 2009 11:21AM

Re: symfony php configuration

Joe Bofh April 30, 2009 06:58PM

Re: symfony php configuration

shaktale May 05, 2009 04:29AM

Re: symfony php configuration

shaktale May 14, 2009 07:52AM

Re: symfony php configuration

Igor Sysoev May 14, 2009 08:02AM

Re: symfony php configuration

shaktale May 18, 2009 04:52AM

WEB Service based on Nginx

Zheng, Wenxing (NSN - CN/Beijing) May 20, 2009 02:26AM

Re: WEB Service based on Nginx

deltay May 20, 2009 02:36AM

Re: symfony php configuration

Mikel Arteta May 22, 2009 03:19PM

Re: [!! SPAM] Re: symfony php configuration

Igor Sysoev May 22, 2009 03:52PM

Re: Re: symfony php configuration

Mikel Arteta May 23, 2009 07:12AM

Re: Re: symfony php configuration

Igor Sysoev May 23, 2009 11:20AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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