symfony php configuration
shaktale
nginx-forum at nginx.us
Thu May 14 15:52:21 MSD 2009
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
Hope this helps.
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,1549,2020#msg-2020
More information about the nginx
mailing list