Welcome! Log In Create A New Profile

Advanced

Re: symfony php configuration

May 14, 2009 07:52AM
Hi again,

If anyone is still interested, finally I have changed the following:

[code]
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;
}
}
[/code]


For:

[code]
location / {
try_files $uri /index.php;

expires max;
}
[/code]


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

Hope this helps.
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: 261
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