Hi, here is my working configuration nginx / 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 using Nginx (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 in Nginx?

-- 
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.

Reply via email to