nginx配置 php 单入口

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

            if (!-e $request_filename) {
                rewrite ^(.*)$ /index.php last;
                break;
            }
        }

原文地址:https://www.cnblogs.com/hjyang2012/p/5198488.html