設定nginxのをルーティングルーメン

 

    nginxの設定ファイルには、追加します。

    セットの$のroot_path '/data/www/m.domain.com/public';
    ルートの$のroot_path。

    場所/ {
        try_files $ URI $ uriの/ /index.php?$query_string。
    }

    nginxの設定ファイルには、追加します。

    セットの$のroot_path '/data/www/m.domain.com/public';
    ルートの$のroot_path。

    場所/ {
        try_files $ URI $ uriの/ /index.php?$query_string。
    }

おすすめ

転載: www.cnblogs.com/php-linux/p/11627134.html