nginxの設定インストールthinkphp5

nginx.conf

サーバー{ 
    聞く        80 
    SERVER_NAME s.huailaixx.com; 
    文字コードはUTF - 8 

    場所\ .phpの{ 
        ルート    / DATA0 / WWW / test_hlxx / 公共; 
        fastcgi_pass    127.00.19000 
        fastcgi_indexのindex.phpを。

        fastcgi_split_path_info   ^(?。。(U)+ \ PHP)(/?.+ )$; 
        fastcgi_param SCRIPT_FILENAME $ DOCUMENT_ROOT $ fastcgi_script_name。


        fastcgi_param PATH_INFO $ fastcgi_path_info。                                    
        fastcgi_param PATH_TRANSLATED $ DOCUMENT_ROOT $ fastcgi_path_info。
        fastcgi_paramsが含まれます。
    } 

    場所 / { 
        ルート    / DATA0 / WWW / test_hlxx / 公共
        インデックスのindex.htmlのindex.htm index.phpを。

        もし(! - Eの$のREQUEST_FILENAME){ 
            書き換え ^ /(。*)$ /index.php/$ 1 最後。  
            破ります; 
        } 
    } 
}

php.iniの

cgi.fix_pathinfo = 1

 

おすすめ

転載: www.cnblogs.com/houweijian/p/11391313.html