typecho一直404错误的问题
找到nginx的配置文件编辑,如图所示位置,重启nginx
vim /etc/nginx/conf.d/default.conf
if (-f $request_filename/index.html){
rewrite (.*) $1/index.html break;
}
if (-f $request_filename/index.php){
rewrite (.*) $1/index.php;
}
if (!-f $request_filename){
rewrite (.*) /index.php;
}