summaryrefslogtreecommitdiffstats
path: root/app/index.php
diff options
context:
space:
mode:
authorM <m@lfurio.us>2015-11-21 16:33:28 -0500
committerM <m@lfurio.us>2015-11-21 16:33:28 -0500
commit2f353e89409420b875afefd7b412c17996c32045 (patch)
treea5707af5480d1f4af2eb6ba5a87a1b642aba51b7 /app/index.php
parent39ad0dfc8ce79a3e3b013cef67568edd01fe48d2 (diff)
downloadscrott-2f353e89409420b875afefd7b412c17996c32045.tar.gz
scrott-2f353e89409420b875afefd7b412c17996c32045.zip
* Changing the mechanism by which the requested path is passed to the app
! It has been observed that on server nginx, some of the assumptions from doing similar work on apache have broken down and a more general mechanism must be used to handle paths in the clean-url app. ! New scheme is this: app is invoked with `index.php?path=<absolute path on virtual server>` The app will be configured with its own root location on the virt. server and use logic to dedue the relative path requested from that. Also app will use the configured path to predend to urls linked/directed to during use of the app
Diffstat (limited to 'app/index.php')
-rw-r--r--app/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/index.php b/app/index.php
index ca2ce45..5f2d9f4 100644
--- a/app/index.php
+++ b/app/index.php
@@ -11,6 +11,6 @@ function main($argv)
echo "Scrott!<br />";
}
-main(explode("/", $_SERVER['PATH_INFO'])); // Start rendering web page for the requested path.
+main(explode("/", $_REQUEST['path'])); // Start rendering web page for the requested path.
?>