NGINX directory index of "" is forbidden

@liubb  October 11, 2019
directory index of "" is forbidden

一直以为是权限问题,排查半天。

location / {
    index index.php;
    try_files $uri $uri/ /index.php$uri?$query_string;
    break;
}

最后发现 index index.php 没写


添加新评论