Yii2在nginx部署上的坑:非index默认页都报404解决办法
进入下面目录
编辑网址+.conf文件
location / {
Redirect everything that isn’t a real file to index.php
try_files $uri args;
}
保存,重启.成功
本文来自转载:
原作者:v1i555
链接:https://www.jianshu.com/p/952799848e83
来源:简书
简书著作权归作者所有,任何形式的转载都请联系作者获得授权并注明出处。