📜  synology webstation 上不允许出现 405 - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:16.343000             🧑  作者: Mango

代码示例1
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;
}