I have several computers on a small local network. My (xampp) server is located on one PC, and I do my development work on another. That’s caused me some significant problems, but my latest is with gii, and I can’t figure it out. First, I can access gii with no problems on the host server machine. On my development machine, it’s a whole different matter. I’ve tried all the following:
[indent]
'allowedIPs' => ['127.0.0.1', '::1', '192.168.1.72'], // the remote host machine is 192.168.72
'allowedIPs' => ['127.0.0.1', '::1', '192.168.1.71', '192.168.1.72'], // the development machine is 192.168.1.71
'allowedIPs' => ['127.0.0.1', '::1', '192.168.*.*'],
'allowedIPs' => ['127.0.0.1', '::1', '192.168.*.*'],
'allowedIPs' => ['127.0.0.1', '::1', $_SERVER['REMOTE_ADDR']]
'allowedIPs' => false,
'allowedIPs' => ['*.*.*.*'],
'allowedIPs' => [$_SERVER['REMOTE_ADDR']],
[/indent]
(I know that several of those options are fraught with terrible, tragic danger on a completely isolated, secured home network, but I wanted to try everything I could think of.)
All of the options uniformly produce a 403 with the message “You are not allowed to access this page.” By the way, I’m trying to access Gii while I’m logged in as an administrator, the same login that I can use, successfully, to access Gii on the host machine.
Any ideas on how I can get Gii to work remotely?