Yii2 Advanced hosting -how to start gii?

Yii2 Advanced installed on the linux hosting, how to start gii? The problem is that I tried to paste the config code in trace:
'modules' => [
'bootstrap' => ['gii','debug'],
'gii' => [
'class' => \yii\gii\Module::className(),
'allowedIPs' => ['IP']
],
'debug' => \yii\debug\Module::className(),
// ..........
],

But it turns out the 404 error. If I understand correctly, then it should be in the file main-local.php to register, Yes?
July 9th 19 at 10:39
2 answers
July 9th 19 at 10:41
I myself am a beginner. I have in the file main-local.php the following is written:
$config['bootstrap'][] = 'debug';
$config['modules']['debug'] = 'yii\debug\Module';

$config['bootstrap'][] = 'gii';
$config['modules']['gii'] = [
 'class' => 'yii\gii\Module',
 'allowedIPs' => ['IP']

Try and see if it helps.
July 9th 19 at 10:43
'allowedIPs' => ['IP'] In the beginning, it is better to remove, because maybe you have a dynamic ip and access is blocked because of him, as well check for the presence of UrlManager rules for gii, the situation is not excluded that You don't get to the gii module by entering the path to it in the browser

Find more questions by tags Yii