by prettyscripts on 2010-07-30 11:37:13
i'm currently reviewing / learning yii, another php framework. while following the guide to configure gii, i wasn't able to access gii. 403 error was displayed.
it's because by default gii only allow access via localhost. if you're like me having a separate development server, an additional configuration is required - ipFilters:
PHP:
return array( | |
...... | |
'modules'=>array( | |
'gii'=>array( | |
'class'=>'system.gii.GiiModule', | |
'password'=>'your-password', | |
'ipFilters'=>array(...a list of IPs...), // *** | |
), | |
), | |
); |
line 7: add this line and enter list of ip addresses that are allowed to access gii. if you're access the site via proxy, enter the ip address of proxy server.
update: as of V116 ipFilters is included in project skeleton. just edit the ip address.