OGeee... My script works now!
I've modifed a few things, don't know which one is the error command anyway: prev: location ~ \.php$ { ... } location ~ \.php($|/) { } now, only one .php: location ~ \.php($|/) { } prev, only: fastcgi_param SCRIPT_FILENAME /home/sfproject/web$script; now: fastcgi_param SCRIPT_FILENAME /home/sfproject/web$script; fastcgi_param SCRIPT_NAME $script; prev: include fastcgi_params; now: include /usr/nginx/conf/fastcgi_params; Thanks a bunch! On 2月17日, 上午1時05分, jean-phi <jeanphi84...@gmail.com> wrote: > Hi, here is my working configurationnginx/ fastcgi : > > server { > listen 80; > server_name www.xxxxxxxxxxxx.com; > > root /....................................../web/; > index index.php; > > location / { > > if (-f $request_filename) { > expires max; > break; > } > > if ($request_filename !~ "\.(js|htc|ico|gif|jpg|png|css)$") { > rewrite ^(.*) /index.php last; > } > } > > location /sf/ { > root /usr/share/php/symfony/1.4/data/web; > expires max; > } > > location ~ \.php($|/) { > set $script $uri; > set $path_info ""; > > if ($uri ~ "^(.+\.php)(/.+)") { > set $script $1; > set $path_info $2; > } > > fastcgi_pass 127.0.0.1:9000; > > include /etc/nginx/fastcgi_params; > fastcgi_param > SCRIPT_FILENAME /......................................./web$script; > fastcgi_param PATH_INFO $path_info; > fastcgi_param SCRIPT_NAME $script; > fastcgi_intercept_errors on; > > } > > } > > On 16 fév, 16:50, Arthur Ccube <arthurcc...@gmail.com> wrote: > > > Hi Guys, > > > I am new to symfony. Anyway, I find it easy to follow the jobeet > > tutorial usingNginx(instead of Apache). > > > However, I have a problem in the Day 3 jobeet actions. > > >http://www.symfony-project.org/jobeet/1_4/Doctrine/en/03 > > > All the links created in the index, edit, show becomes "job/job" and I > > got a 404 error if I follow the links when I typed the follows in > > browsers:http://localhost.localdomain/frontend_dev.php/job > > > but not if the links changed to:http://localhost.localdomain/job > > > I googled it and find it should be related to the AllowOveride All > > setting in Apache. However, how to set it up inNginx? -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.