|
|
@@ -1647,6 +1647,30 @@ class CakeRequestTest extends CakeTestCase {
|
|
|
),
|
|
|
),
|
|
|
array(
|
|
|
+ 'Apache - w/rewrite, document root set above top level cake dir, request root, absolute REQUEST_URI',
|
|
|
+ array(
|
|
|
+ 'App' => array(
|
|
|
+ 'base' => false,
|
|
|
+ 'baseUrl' => false,
|
|
|
+ 'dir' => 'app',
|
|
|
+ 'webroot' => 'webroot'
|
|
|
+ ),
|
|
|
+ 'SERVER' => array(
|
|
|
+ 'SERVER_NAME' => 'localhost',
|
|
|
+ 'DOCUMENT_ROOT' => '/Library/WebServer/Documents',
|
|
|
+ 'SCRIPT_FILENAME' => '/Library/WebServer/Documents/site/index.php',
|
|
|
+ 'REQUEST_URI' => FULL_BASE_URL . '/site/posts/index',
|
|
|
+ 'SCRIPT_NAME' => '/site/app/webroot/index.php',
|
|
|
+ 'PHP_SELF' => '/site/app/webroot/index.php',
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ array(
|
|
|
+ 'url' => 'posts/index',
|
|
|
+ 'base' => '/site',
|
|
|
+ 'webroot' => '/site/',
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ array(
|
|
|
'Nginx - w/rewrite, document root set to webroot, request root, no PATH_INFO',
|
|
|
array(
|
|
|
'App' => array(
|