从别名位置请求php文件时出现nginx错误404,

从别名位置请求php文件时出现nginx错误404,,php,nginx,fastcgi,Php,Nginx,Fastcgi,我正在尝试在windows2008R2设备上将nginx与apache和PHP结合使用。 这是正常的,除了当我要求在一个别名位置内的php文件。目录列表显示了php文件,但是当我想要执行它时,我得到了一个404错误 我想要的是一个指向E:\www\asure\public的别名 这是nginx配置 server { listen 80; server_name host00; root e:/www/ ;

我正在尝试在windows2008R2设备上将nginx与apache和PHP结合使用。 这是正常的,除了当我要求在一个别名位置内的php文件。目录列表显示了php文件,但是当我想要执行它时,我得到了一个404错误

我想要的是一个指向E:\www\asure\public的别名

这是nginx配置

 server {
        listen       80;
        server_name  host00;        
        root   e:/www/ ;
        autoindex on;
        autoindex_exact_size off;
        autoindex_localtime on;

        location / {        
            index  index.php index.html index.htm;
        }

        location /asure/ {
            alias   "E:/www/ASURE/public/" ;
            #index index.php ;
            location ~ \.php$ {

                fastcgi_pass   127.0.0.1:9000;
                fastcgi_index  index.php;
                fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;

            }
        }
}

您使用别名而不是root的原因是什么?是:root附加位置名称将导致E:/www/ASURE/public/ASURE/您找到解决方案了吗?我也有同样的问题。我已经放弃并坚持使用apache