鍍金池/ 問答/PHP  Linux/ phpstudy修改端口后403 forbidden

phpstudy修改端口后403 forbidden

nginx配置文件的端口和目錄都改了,為啥還是403

回答
編輯回答
憶當(dāng)年

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;
}
2017年12月26日 02:43