This article provides information on the 403 wrong solutions for Yii's access to the GII (scaffolding), and the required friends can refer to the following
Today configured the server (Win Server + UPUPW (nginx+mysql)) within the YII Framework 2, test the project's GII settings, the results appear
#403错误页面:
Error 403
You is not a allowed to access the this page.
1, adjust the file read and write permission, through the domain name access (external network access, local access), still 403 error.
2, then the server local access (HTTP://LOCALHOST/BACKEND/WEB/INDEX.PHP?R=GII) still error 403.
3, in accordance with common online solutions (query native ip:188.33.66.88), modify backend/config/main-local.php Add Access address:
$config [' Modules '] [' gii '] = [
' Class ' = ' Yii\gii\module ',
' Allowedips ' = [' 127.0.0.1 ', ':: 1 ', ' 188.33.66.88 '],
];
Still did not solve, still 403 error.
Because the local use of Nginx virtual host, directly bound domain name access, so directly migrated to the server locally, bound 127.0.0.1 and localhost, and then again local access Http://localhost/backend/web/index.php?r =gii, the GII management interface appears.