Welcome! Log In Create A New Profile

Advanced

Re: symfony php configuration

May 14, 2009 08:02AM
On Thu, May 14, 2009 at 07:52:21AM -0400, shaktale wrote:

> Hi again,
>
> If anyone is still interested, finally I have changed the following:
>
>
> location / {
> # If the file exists as a static file serve it directly without
> # running all the other rewite tests on it
> if (-f $request_filename) {
> expires max;
> break;
> }
>
> if ($request_filename !~ "\.(js|htc|ico|gif|jpg|png|css)$") {
> rewrite ^(.*) /index.php last;
> }
> }
>
>
>
> For:
>
>
> location / {
> try_files $uri /index.php;
>
> expires max;
> }
>
>
>
> AFAIK the block related to if ($uri ~ "^(.+\.php)(/.+)") must to be set as such, because is related to symfony's url routing, ie:
>
> mysite.com/debugger.php/myaction/show/33

location ~ ^(.+\.php)(.*)$ {
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_param SCRIPT_FILENAME /path/to/php$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;


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