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