博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
GII 和 DEBUG 模块出现 403 解决
阅读量:6893 次
发布时间:2019-06-27

本文共 829 字,大约阅读时间需要 2 分钟。

hot3.png

修改 app\config\main-local.php 文件即可:

$config = [    'components' => [        'request' => [            // !!! insert a secret key in the following (if it is empty) - this is required by cookie validation            'cookieValidationKey' => 'UWWauIS1-qTAJUUTavkwkJSRC9gjF5oM',        ]    ],]; if (!YII_ENV_TEST) {    // configuration adjustments for 'dev' environment    $config['bootstrap'][] = 'debug';    $config['modules']['debug'] = [        'class' => 'yii\debug\Module',        'allowedIPs' => ['127.0.0.1', '::1', '192.168.1.*'] //Debug 工具栏出现403禁止访问按需调整这里    ];     $config['bootstrap'][] = 'gii';    $config['modules']['gii'] = [        'class' => 'yii\gii\Module',        'allowedIPs' => ['127.0.0.1', '::1', '192.168.1.*'] // GII访问出现403禁止访问按需调整这里    ];} return $config;

转载于:https://my.oschina.net/zhenhua2340/blog/669846

你可能感兴趣的文章
Kubernetes生产环境经验告诉你如何实现蓝绿部署和负载均衡
查看>>
go 缓存机制
查看>>
P2P路由模式的概念和优势
查看>>
wangframe如何扩展?
查看>>
7.Spring Boot配置文件application.yml
查看>>
计算学校周次,亲测成功!
查看>>
Centos 7 可安装 mysql5.7
查看>>
雷神2—狂热视觉震撼
查看>>
node.js实现多图片上传
查看>>
could not bind to address 0.0.0.0:443 no listening sockets available, shutting d
查看>>
Node.js 开发相关
查看>>
JFinal源码--获取表单数据
查看>>
JSONP安全防范解决方案新思路
查看>>
Web 开发最有用的50款 jQuery 插件集锦——《综合篇》
查看>>
import com.sun.image.codec.jpeg.JPEGCodec不通过 找不到包
查看>>
adrci中的purge
查看>>
前台对Seajs的用法个人见解
查看>>
java中的队列同步器AQS -- AbstractQueuedSynchronizer
查看>>
centos 脚本基础练习9
查看>>
我的友情链接
查看>>