You are not allowed to access this pag
$config['bootstrap'][] = 'gii';
$config['modules']['gii'] = [
'class' => 'yii\gii\Module',
// 'password'=>'alenplum',
'allowedIPs'=>array('180.*.*.225','::1','10.0.0.101'),
];
注明 有* 号的是本地对外IP地址 后面的为本机IP
本文介绍了如何在Yii框架中配置Gii模块以允许特定IP地址访问。通过设置$confi...的具体IP地址,可以有效地控制Gii工具的访问权限。

495

被折叠的 条评论
为什么被折叠?



