Yes, I did verify that the
Yii::app()->request->userHostAddress
did return 127.0.0.1. Therefore, that explains why the addition of the ipFilters for localhost or 127.0.0.1 didn’t change anything.
If I set the ipFilters to ‘false’, I get the following error
in C:\localwork\workspace_pprl\testdrive\index.php (12)
2010/06/03 12:59:01 [error] [exception.CHttpException.403] exception 'CHttpException' with message 'You are not allowed to access this page.' in C:\localwork\workspace_pprl\yii\framework\gii\GiiModule.php:162
Stack trace:
#0 C:\localwork\workspace_pprl\yii\framework\web\CController.php(255): GiiModule->beforeControllerAction(Object(DefaultController), Object(CInlineAction))
#1 C:\localwork\workspace_pprl\yii\framework\web\CWebApplication.php(320): CController->run('login')
#2 C:\localwork\workspace_pprl\yii\framework\web\CWebApplication.php(120): CWebApplication->runController('gii/default/log...')
#3 C:\localwork\workspace_pprl\yii\framework\base\CApplication.php(135): CWebApplication->processRequest()
#4 C:\localwork\workspace_pprl\testdrive\index.php(12): CApplication->run()
#5 {main} REQUEST_URI=/testdrive/index.php?r=gii/default/login
2010/06/03 12:59:01 [trace] [system.CModule] Loading "errorHandler" application component
2010/06/03 12:59:01 [trace] [system.CModule] Loading "user" application component
in C:\localwork\workspace_pprl\yii\framework\gii\GiiModule.php (168)
2010/06/03 12:59:01 [trace] [system.CModule] Loading "session" application component
in C:\localwork\workspace_pprl\yii\framework\gii\GiiModule.php (168)
2010/06/03 12:59:01 [trace] [system.CModule] Loading "clientScript" application component
in C:\localwork\workspace_pprl\yii\framework\gii\views\layouts\main.php (2)
in C:\localwork\workspace_pprl\yii\framework\gii\views\layouts\column1.php (7)
in C:\localwork\workspace_pprl\yii\framework\gii\controllers\DefaultController.php (27)
2010/06/03 12:59:01 [trace] [system.CModule] Loading "assetManager" application component
in C:\localwork\workspace_pprl\yii\framework\gii\GiiModule.php (136)
in C:\localwork\workspace_pprl\yii\framework\gii\views\layouts\main.php (3)
in C:\localwork\workspace_pprl\yii\framework\gii\views\layouts\column1.php (7)
So I would like to stick with the localhost issue without turning off the ipFilters. In addition to getting the errors from the apache server (mentioned in original post), I get the following from the apache access logs
127.0.0.1 - - [03/Jun/2010:12:54:21 -0400] "GET /testdrive/index.php?r=gii/default/login HTTP/1.1" 200 2403
127.0.0.1 - - [03/Jun/2010:12:54:21 -0400] "GET /testdrive/assets/4e9f0adc/css/screen.css HTTP/1.1" 304 -
127.0.0.1 - - [03/Jun/2010:12:54:21 -0400] "GET /testdrive/assets/4e9f0adc/css/print.css HTTP/1.1" 304 -
127.0.0.1 - - [03/Jun/2010:12:54:21 -0400] "GET /testdrive/assets/4e9f0adc/css/ie.css HTTP/1.1" 304 -
127.0.0.1 - - [03/Jun/2010:12:54:21 -0400] "GET /testdrive/assets/4e9f0adc/css/main.css HTTP/1.1" 304 -
127.0.0.1 - - [03/Jun/2010:12:54:21 -0400] "GET /testdrive/assets/4e9f0adc/js/fancybox/jquery.fancybox-1.3.1.css HTTP/1.1" 304 -
127.0.0.1 - - [03/Jun/2010:12:54:21 -0400] "GET /testdrive/assets/c4b0baf3/jquery.js HTTP/1.1" 304 -
127.0.0.1 - - [03/Jun/2010:12:54:21 -0400] "GET /testdrive/assets/4e9f0adc/js/tools.tooltip-1.1.3.min.js HTTP/1.1" 304 -
127.0.0.1 - - [03/Jun/2010:12:54:21 -0400] "GET /testdrive/assets/4e9f0adc/js/fancybox/jquery.fancybox-1.3.1.pack.js HTTP/1.1" 304 -
127.0.0.1 - - [03/Jun/2010:12:54:21 -0400] "GET /testdrive/assets/4e9f0adc/js/main.js HTTP/1.1" 304 -
127.0.0.1 - - [03/Jun/2010:12:54:21 -0400] "GET /testdrive/assets/4e9f0adc/images/logo.png HTTP/1.1" 304 -
127.0.0.1 - - [03/Jun/2010:12:54:21 -0400] "GET /testdrive/assets/4e9f0adc/js/fancybox/blank.gif HTTP/1.1" 304 -
127.0.0.1 - - [03/Jun/2010:12:54:21 -0400] "GET /testdrive/fancybox/fancy_loading.png HTTP/1.1" 404 234
127.0.0.1 - - [03/Jun/2010:12:54:21 -0400] "GET /testdrive/fancybox/fancy_close.png HTTP/1.1" 404 232
127.0.0.1 - - [03/Jun/2010:12:54:21 -0400] "GET /testdrive/fancybox/fancy_nav_right.png HTTP/1.1" 404 236
127.0.0.1 - - [03/Jun/2010:12:54:21 -0400] "GET /testdrive/fancybox/fancy_nav_left.png HTTP/1.1" 404 235
127.0.0.1 - - [03/Jun/2010:12:54:21 -0400] "GET /testdrive/fancybox/fancy_shadow_nw.png HTTP/1.1" 404 236
127.0.0.1 - - [03/Jun/2010:12:54:21 -0400] "GET /testdrive/fancybox/fancy_shadow_w.png HTTP/1.1" 404 235
127.0.0.1 - - [03/Jun/2010:12:54:21 -0400] "GET /testdrive/fancybox/fancy_shadow_sw.png HTTP/1.1" 404 236
127.0.0.1 - - [03/Jun/2010:12:54:21 -0400] "GET /testdrive/fancybox/fancy_shadow_s.png HTTP/1.1" 404 235
127.0.0.1 - - [03/Jun/2010:12:54:21 -0400] "GET /testdrive/fancybox/fancy_shadow_se.png HTTP/1.1" 404 236
127.0.0.1 - - [03/Jun/2010:12:54:21 -0400] "GET /testdrive/fancybox/fancy_shadow_e.png HTTP/1.1" 404 235
127.0.0.1 - - [03/Jun/2010:12:54:21 -0400] "GET /testdrive/fancybox/fancy_shadow_ne.png HTTP/1.1" 404 236
127.0.0.1 - - [03/Jun/2010:12:54:21 -0400] "GET /testdrive/fancybox/fancy_shadow_n.png HTTP/1.1" 404 235
127.0.0.1 - - [03/Jun/2010:12:54:23 -0400] "POST /testdrive/index.php?r=gii/default/login HTTP/1.1" 302 -
127.0.0.1 - - [03/Jun/2010:12:54:24 -0400] "GET /testdrive/index.php?r=gii HTTP/1.1" 302 -
127.0.0.1 - - [03/Jun/2010:12:54:24 -0400] "GET /testdrive/index.php?r=gii/default/login HTTP/1.1" 200 2403
127.0.0.1 - - [03/Jun/2010:12:54:24 -0400] "GET /testdrive/assets/4e9f0adc/css/screen.css HTTP/1.1" 304 -
127.0.0.1 - - [03/Jun/2010:12:54:24 -0400] "GET /testdrive/assets/4e9f0adc/css/print.css HTTP/1.1" 304 -
127.0.0.1 - - [03/Jun/2010:12:54:24 -0400] "GET /testdrive/assets/4e9f0adc/css/ie.css HTTP/1.1" 304 -
127.0.0.1 - - [03/Jun/2010:12:54:24 -0400] "GET /testdrive/assets/4e9f0adc/css/main.css HTTP/1.1" 304 -
127.0.0.1 - - [03/Jun/2010:12:54:24 -0400] "GET /testdrive/assets/4e9f0adc/js/fancybox/jquery.fancybox-1.3.1.css HTTP/1.1" 304 -
127.0.0.1 - - [03/Jun/2010:12:54:24 -0400] "GET /testdrive/assets/c4b0baf3/jquery.js HTTP/1.1" 304 -
127.0.0.1 - - [03/Jun/2010:12:54:24 -0400] "GET /testdrive/assets/4e9f0adc/js/tools.tooltip-1.1.3.min.js HTTP/1.1" 304 -
127.0.0.1 - - [03/Jun/2010:12:54:24 -0400] "GET /testdrive/assets/4e9f0adc/js/fancybox/jquery.fancybox-1.3.1.pack.js HTTP/1.1" 304 -
127.0.0.1 - - [03/Jun/2010:12:54:24 -0400] "GET /testdrive/assets/4e9f0adc/js/main.js HTTP/1.1" 304 -
127.0.0.1 - - [03/Jun/2010:12:54:24 -0400] "GET /testdrive/assets/4e9f0adc/images/logo.png HTTP/1.1" 304 -
127.0.0.1 - - [03/Jun/2010:12:54:24 -0400] "GET /testdrive/assets/4e9f0adc/js/fancybox/blank.gif HTTP/1.1" 304 -
127.0.0.1 - - [03/Jun/2010:12:54:24 -0400] "GET /testdrive/fancybox/fancy_loading.png HTTP/1.1" 404 234
127.0.0.1 - - [03/Jun/2010:12:54:24 -0400] "GET /testdrive/fancybox/fancy_close.png HTTP/1.1" 404 232
127.0.0.1 - - [03/Jun/2010:12:54:24 -0400] "GET /testdrive/fancybox/fancy_nav_right.png HTTP/1.1" 404 236
127.0.0.1 - - [03/Jun/2010:12:54:24 -0400] "GET /testdrive/fancybox/fancy_nav_left.png HTTP/1.1" 404 235
127.0.0.1 - - [03/Jun/2010:12:54:24 -0400] "GET /testdrive/fancybox/fancy_shadow_nw.png HTTP/1.1" 404 236
127.0.0.1 - - [03/Jun/2010:12:54:24 -0400] "GET /testdrive/fancybox/fancy_shadow_w.png HTTP/1.1" 404 235
127.0.0.1 - - [03/Jun/2010:12:54:24 -0400] "GET /testdrive/fancybox/fancy_shadow_sw.png HTTP/1.1" 404 236
127.0.0.1 - - [03/Jun/2010:12:54:24 -0400] "GET /testdrive/fancybox/fancy_shadow_s.png HTTP/1.1" 404 235
127.0.0.1 - - [03/Jun/2010:12:54:24 -0400] "GET /testdrive/fancybox/fancy_shadow_se.png HTTP/1.1" 404 236
127.0.0.1 - - [03/Jun/2010:12:54:24 -0400] "GET /testdrive/fancybox/fancy_shadow_e.png HTTP/1.1" 404 235
127.0.0.1 - - [03/Jun/2010:12:54:24 -0400] "GET /testdrive/fancybox/fancy_shadow_ne.png HTTP/1.1" 404 236
127.0.0.1 - - [03/Jun/2010:12:54:24 -0400] "GET /testdrive/fancybox/fancy_shadow_n.png HTTP/1.1" 404 235
127.0.0.1 - - [03/Jun/2010:12:55:31 -0400] "GET /testdrive/index.php?r=gii/default/login HTTP/1.1" 200 2403
127.0.0.1 - - [03/Jun/2010:12:55:31 -0400] "GET /testdrive/assets/4e9f0adc/css/screen.css HTTP/1.1" 304 -
127.0.0.1 - - [03/Jun/2010:12:55:31 -0400] "GET /testdrive/assets/4e9f0adc/css/print.css HTTP/1.1" 304 -
127.0.0.1 - - [03/Jun/2010:12:55:31 -0400] "GET /testdrive/assets/4e9f0adc/css/ie.css HTTP/1.1" 304 -
127.0.0.1 - - [03/Jun/2010:12:55:31 -0400] "GET /testdrive/assets/4e9f0adc/css/main.css HTTP/1.1" 304 -
127.0.0.1 - - [03/Jun/2010:12:55:31 -0400] "GET /testdrive/assets/c4b0baf3/jquery.js HTTP/1.1" 304 -
127.0.0.1 - - [03/Jun/2010:12:55:31 -0400] "GET /testdrive/assets/4e9f0adc/js/fancybox/jquery.fancybox-1.3.1.css HTTP/1.1" 304 -
127.0.0.1 - - [03/Jun/2010:12:55:31 -0400] "GET /testdrive/assets/4e9f0adc/js/tools.tooltip-1.1.3.min.js HTTP/1.1" 304 -
127.0.0.1 - - [03/Jun/2010:12:55:31 -0400] "GET /testdrive/assets/4e9f0adc/js/fancybox/jquery.fancybox-1.3.1.pack.js HTTP/1.1" 304 -
127.0.0.1 - - [03/Jun/2010:12:55:31 -0400] "GET /testdrive/assets/4e9f0adc/js/main.js HTTP/1.1" 304 -
127.0.0.1 - - [03/Jun/2010:12:55:31 -0400] "GET /testdrive/assets/4e9f0adc/images/logo.png HTTP/1.1" 304 -
127.0.0.1 - - [03/Jun/2010:12:55:32 -0400] "GET /testdrive/assets/4e9f0adc/js/fancybox/blank.gif HTTP/1.1" 304 -
127.0.0.1 - - [03/Jun/2010:12:55:32 -0400] "GET /testdrive/fancybox/fancy_loading.png HTTP/1.1" 404 234
127.0.0.1 - - [03/Jun/2010:12:55:32 -0400] "GET /testdrive/fancybox/fancy_close.png HTTP/1.1" 404 232
127.0.0.1 - - [03/Jun/2010:12:55:32 -0400] "GET /testdrive/fancybox/fancy_nav_right.png HTTP/1.1" 404 236
127.0.0.1 - - [03/Jun/2010:12:55:32 -0400] "GET /testdrive/fancybox/fancy_nav_left.png HTTP/1.1" 404 235
127.0.0.1 - - [03/Jun/2010:12:55:32 -0400] "GET /testdrive/fancybox/fancy_shadow_nw.png HTTP/1.1" 404 236
127.0.0.1 - - [03/Jun/2010:12:55:32 -0400] "GET /testdrive/fancybox/fancy_shadow_w.png HTTP/1.1" 404 235
127.0.0.1 - - [03/Jun/2010:12:55:32 -0400] "GET /testdrive/fancybox/fancy_shadow_sw.png HTTP/1.1" 404 236
127.0.0.1 - - [03/Jun/2010:12:55:32 -0400] "GET /testdrive/fancybox/fancy_shadow_s.png HTTP/1.1" 404 235
127.0.0.1 - - [03/Jun/2010:12:55:32 -0400] "GET /testdrive/fancybox/fancy_shadow_se.png HTTP/1.1" 404 236
127.0.0.1 - - [03/Jun/2010:12:55:32 -0400] "GET /testdrive/fancybox/fancy_shadow_e.png HTTP/1.1" 404 235
127.0.0.1 - - [03/Jun/2010:12:55:32 -0400] "GET /testdrive/fancybox/fancy_shadow_ne.png HTTP/1.1" 404 236
127.0.0.1 - - [03/Jun/2010:12:55:32 -0400] "GET /testdrive/fancybox/fancy_shadow_n.png HTTP/1.1" 404 235
127.0.0.1 - - [03/Jun/2010:12:55:35 -0400] "POST /testdrive/index.php?r=gii/default/login HTTP/1.1" 302 -
127.0.0.1 - - [03/Jun/2010:12:55:35 -0400] "GET /testdrive/index.php?r=gii HTTP/1.1" 302 -
127.0.0.1 - - [03/Jun/2010:12:55:36 -0400] "GET /testdrive/index.php?r=gii/default/login HTTP/1.1" 200 2403
127.0.0.1 - - [03/Jun/2010:12:55:36 -0400] "GET /testdrive/assets/4e9f0adc/css/print.css HTTP/1.1" 304 -
127.0.0.1 - - [03/Jun/2010:12:55:36 -0400] "GET /testdrive/assets/4e9f0adc/css/screen.css HTTP/1.1" 304 -
127.0.0.1 - - [03/Jun/2010:12:55:36 -0400] "GET /testdrive/assets/4e9f0adc/css/ie.css HTTP/1.1" 304 -
127.0.0.1 - - [03/Jun/2010:12:55:36 -0400] "GET /testdrive/assets/4e9f0adc/js/fancybox/jquery.fancybox-1.3.1.css HTTP/1.1" 304 -
127.0.0.1 - - [03/Jun/2010:12:55:36 -0400] "GET /testdrive/assets/4e9f0adc/css/main.css HTTP/1.1" 304 -
127.0.0.1 - - [03/Jun/2010:12:55:36 -0400] "GET /testdrive/assets/c4b0baf3/jquery.js HTTP/1.1" 304 -
127.0.0.1 - - [03/Jun/2010:12:55:36 -0400] "GET /testdrive/assets/4e9f0adc/js/tools.tooltip-1.1.3.min.js HTTP/1.1" 304 -
127.0.0.1 - - [03/Jun/2010:12:55:36 -0400] "GET /testdrive/assets/4e9f0adc/js/fancybox/jquery.fancybox-1.3.1.pack.js HTTP/1.1" 304 -
127.0.0.1 - - [03/Jun/2010:12:55:36 -0400] "GET /testdrive/assets/4e9f0adc/js/main.js HTTP/1.1" 304 -
127.0.0.1 - - [03/Jun/2010:12:55:36 -0400] "GET /testdrive/assets/4e9f0adc/images/logo.png HTTP/1.1" 304 -
127.0.0.1 - - [03/Jun/2010:12:55:36 -0400] "GET /testdrive/assets/4e9f0adc/js/fancybox/blank.gif HTTP/1.1" 304 -
127.0.0.1 - - [03/Jun/2010:12:55:36 -0400] "GET /testdrive/fancybox/fancy_loading.png HTTP/1.1" 404 234
127.0.0.1 - - [03/Jun/2010:12:55:36 -0400] "GET /testdrive/fancybox/fancy_close.png HTTP/1.1" 404 232
127.0.0.1 - - [03/Jun/2010:12:55:36 -0400] "GET /testdrive/fancybox/fancy_nav_right.png HTTP/1.1" 404 236
127.0.0.1 - - [03/Jun/2010:12:55:36 -0400] "GET /testdrive/fancybox/fancy_nav_left.png HTTP/1.1" 404 235
127.0.0.1 - - [03/Jun/2010:12:55:36 -0400] "GET /testdrive/fancybox/fancy_shadow_nw.png HTTP/1.1" 404 236
127.0.0.1 - - [03/Jun/2010:12:55:36 -0400] "GET /testdrive/fancybox/fancy_shadow_w.png HTTP/1.1" 404 235
127.0.0.1 - - [03/Jun/2010:12:55:36 -0400] "GET /testdrive/fancybox/fancy_shadow_sw.png HTTP/1.1" 404 236
127.0.0.1 - - [03/Jun/2010:12:55:36 -0400] "GET /testdrive/fancybox/fancy_shadow_s.png HTTP/1.1" 404 235
127.0.0.1 - - [03/Jun/2010:12:55:36 -0400] "GET /testdrive/fancybox/fancy_shadow_se.png HTTP/1.1" 404 236
127.0.0.1 - - [03/Jun/2010:12:55:36 -0400] "GET /testdrive/fancybox/fancy_shadow_e.png HTTP/1.1" 404 235
127.0.0.1 - - [03/Jun/2010:12:55:36 -0400] "GET /testdrive/fancybox/fancy_shadow_ne.png HTTP/1.1" 404 236
127.0.0.1 - - [03/Jun/2010:12:55:36 -0400] "GET /testdrive/fancybox/fancy_shadow_n.png HTTP/1.1" 404 235
Not sure why it’s trying to reference the /testdrive/fancybox/ because that doesn’t exist. I tried to actually copy the /fancybox/ directory at the document root as well, and it cleaned up the messages, but still no go.
The application.log under /protected/runtime/ didn’t have anything that looked useful. I didn’t change any of the debug/trace info in the index.php
// remove the following lines when in production mode
defined('YII_DEBUG') or define('YII_DEBUG',true);
defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
And have the following levels in the main.php to enable logging (error, warning, debug, trace, info).
Here is what’s in application.log after I hit submit with the password:
2010/06/03 13:06:20 [trace] [system.CModule] Loading "log" application component
in C:\localwork\workspace_pprl\testdrive\index.php (12)
2010/06/03 13:06:20 [trace] [system.CModule] Loading "request" application component
in C:\localwork\workspace_pprl\testdrive\index.php (12)
2010/06/03 13:06:20 [trace] [system.CModule] Loading "urlManager" application component
in C:\localwork\workspace_pprl\testdrive\index.php (12)
2010/06/03 13:06:20 [trace] [system.base.CModule] Loading "gii" module
in C:\localwork\workspace_pprl\testdrive\index.php (12)
2010/06/03 13:06:20 [trace] [system.CModule] Loading "user" application component
in C:\localwork\workspace_pprl\yii\framework\gii\GiiModule.php (168)
in C:\localwork\workspace_pprl\testdrive\index.php (12)
2010/06/03 13:06:20 [trace] [system.CModule] Loading "session" application component
in C:\localwork\workspace_pprl\yii\framework\gii\GiiModule.php (168)
in C:\localwork\workspace_pprl\testdrive\index.php (12)
2010/06/03 13:06:20 [trace] [system.CModule] Loading "log" application component
in C:\localwork\workspace_pprl\testdrive\index.php (12)
2010/06/03 13:06:20 [trace] [system.CModule] Loading "request" application component
in C:\localwork\workspace_pprl\testdrive\index.php (12)
2010/06/03 13:06:20 [trace] [system.CModule] Loading "urlManager" application component
in C:\localwork\workspace_pprl\testdrive\index.php (12)
2010/06/03 13:06:20 [trace] [system.base.CModule] Loading "gii" module
in C:\localwork\workspace_pprl\testdrive\index.php (12)
2010/06/03 13:06:20 [trace] [system.CModule] Loading "user" application component
in C:\localwork\workspace_pprl\yii\framework\gii\GiiModule.php (168)
in C:\localwork\workspace_pprl\testdrive\index.php (12)
2010/06/03 13:06:20 [trace] [system.CModule] Loading "session" application component
in C:\localwork\workspace_pprl\yii\framework\gii\GiiModule.php (168)
in C:\localwork\workspace_pprl\testdrive\index.php (12)
2010/06/03 13:06:20 [trace] [system.CModule] Loading "log" application component
in C:\localwork\workspace_pprl\testdrive\index.php (12)
2010/06/03 13:06:20 [trace] [system.CModule] Loading "request" application component
in C:\localwork\workspace_pprl\testdrive\index.php (12)
2010/06/03 13:06:20 [trace] [system.CModule] Loading "urlManager" application component
in C:\localwork\workspace_pprl\testdrive\index.php (12)
2010/06/03 13:06:20 [trace] [system.base.CModule] Loading "gii" module
in C:\localwork\workspace_pprl\testdrive\index.php (12)
2010/06/03 13:06:20 [trace] [system.CModule] Loading "user" application component
in C:\localwork\workspace_pprl\yii\framework\gii\GiiModule.php (168)
in C:\localwork\workspace_pprl\testdrive\index.php (12)
2010/06/03 13:06:20 [trace] [system.CModule] Loading "session" application component
in C:\localwork\workspace_pprl\yii\framework\gii\GiiModule.php (168)
in C:\localwork\workspace_pprl\testdrive\index.php (12)
2010/06/03 13:06:20 [trace] [system.CModule] Loading "clientScript" application component
in C:\localwork\workspace_pprl\yii\framework\gii\views\layouts\main.php (2)
in C:\localwork\workspace_pprl\yii\framework\gii\views\layouts\column1.php (7)
in C:\localwork\workspace_pprl\yii\framework\gii\controllers\DefaultController.php (47)
2010/06/03 13:06:20 [trace] [system.CModule] Loading "assetManager" application component
in C:\localwork\workspace_pprl\yii\framework\gii\GiiModule.php (136)
in C:\localwork\workspace_pprl\yii\framework\gii\views\layouts\main.php (3)
in C:\localwork\workspace_pprl\yii\framework\gii\views\layouts\column1.php (7)
Sorry this is long winded.
Thanks again for your help.