lnmp环境中如何进行配置 - ghomnet/zfaka GitHub Wiki
1.安装lnmp套件
2.添加vhost
参考:https://lnmp.org/install.html
3.修改对应的nginx配置
修改vhost配置,并添加rewrite规则
` location / {`
`if (!-e $request_filename) {`
`rewrite ^/(.*)$ /index.php? last;`
`}`
`}`
4.取消path_info
检查vhost配置,如果存在 include enable-php-pathinfo.conf,请替换成include enable-php.conf
5.取消防跨站攻击(open_basedir)