版权声明:From 开玄 https://blog.csdn.net/nerdcfl/article/details/80206864
按照网上的方法更改文件权限,添加.htaccess文件后都没有作用,访问博客页面仍然报403错误,此时打开/etc/nginx/sites-enabled/default文件,发现
# Add index.php to the list if you are using PHP
index index.html index.htm index.nginx-debian.html index.php;
这两行,其中index.php是自己添加的,问题顺利解决。