A Question About Nginx Configuration

there is a project with 2 entrance /index.php and /admin.php.

you know admin.php is the management entrance.

the urls with index.php is ok.

but admin.php is bad.

when i visited /admin.php, it jumped to /admin.php/site/login, and an error came out "Unable to resolve the request admin.php/site/login". that means the url "/admin.php/site/login" is resolve by index.php entrance.

i tried to disable the urlmanager, and it work well in admin.php?r=site/login

this project work well in apache.

.htaccess is empty.

nginx conf:(i have changed this conf file many times.)




server {

    listen 80;

    set $host_path "/home/project/demo";

    access_log logs/demo.project.access.log;

    error_log logs/demo.project.error.log;


    server_name  demo.project.com;

    root   $host_path;

    index index.php;

    set $yii_bootstrap "index.php";


    charset utf-8;

    location ~ /\. {

        deny all;

        access_log off;

        log_not_found off;

    }

    location ~ /(protected|framework|nbproject) {

        deny all;

        access_log off;

        log_not_found off;

    }

    location ~ /themes/\w+/views {

        deny all;

        access_log off;

        log_not_found off;

    }

    location / {

        try_files $uri $uri/ /index.php?$args;

    }

    location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {

        expires 24h;

        log_not_found off;

    }

    location ~ \.php$ {

        try_files $uri =404;

        fastcgi_split_path_info ^(.+\.php)(/.+)$;

        include fastcgi_params;

        fastcgi_param PATH_INFO $fastcgi_path_info;

        fastcgi_index index.php;

        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

        fastcgi_pass phpfpm;

    }

}



what should i do now?