1

任何人都可以展示如何使用虚拟主机在 winginx 中配置 zend 框架项目吗?我试过这个,但是当我浏览不同的模块时遇到了一些问题。我的服务器块如下所示:

server {

    listen 127.0.0.1:80;
    server_name experts.localhost;

    root C:/Projects/project1/public;

    index index.php index.html;

    location / {
        if (-f $request_filename) {
            root   C:/Projects/project1/public;
        }
    }
        location ~ \.php$ {
        fastcgi_pass 127.0.0.1:9000;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
        include fastcgi_params;
    }
}
4

0 回答 0