nginx配置文件的端口和目錄都改了,為啥還是403
phpstudy修改端口后403 forbidden
一只斗牛犬
2018-07-07 09:39:29
TA貢獻1801條經驗 獲得超8個贊
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; }
舉報