A 403 error occurs when Yii accesses Gii (scaffold. Today, Yiiframeworkv1.1.3 in the VM server is configured, and Gii settings of the test project are displayed. the #403 error page is displayed: Error403Youarenotallowedtoaccessthispage. starting today, we have configured Yii framework v1.1.3 in the virtual machine server, and configured Gii in the test project,
Result #403 error page:
Error 403
You are not allowed to access this page.
At first, I mistakenly thought it was the cause of insufficient file authorization. after modifying the file and folder authorization, it remains the same. Check the wiki on the official website and find that yii is used for security consideration. by default, Gii can only be accessed on the local machine.
To solve this problem, modify the configuration as follows:
'Modules' => array (
'Giii '=> array (
'Class' => 'system. gii. GiiModule ',
'Password' => 'password ',
'Ipfilters '=> array ('10. 0.0.119 '),
),
)
Modify the definition of ipFilters and add the IP address of the worker to the allowed access list, that is
'Ipfilters '=> array ('10. 0.0.119 ')
Finally, you can access Gii normally on the working machine.
Policyii framework v1.1.3, Gii settings of the test project, the #403 Error page is displayed: Error 403 You are not allowed to access this page. start...