phpstudy修改端口后403 forbidden

nginx配置文件的端口和目录都改了,为啥还是403

阅读 3.9k
1 个回答

1.检查下.htaccess:

<IfModule mod_rewrite.c>
  Options +FollowSymlinks -Multiviews
  RewriteEngine On

  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]
</IfModule>

2.使用了域名的话,是否配置了host文件

3.vhosts.conf文件是否有配置:

if (!-e $request_filename){
    rewrite  ^(.*)$  /index.php?s=$1  last;
    break;
}
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题