Browse Source

Enable pretty urls

Patrick Falls 12 years ago
parent
commit
4a711155f9
3 changed files with 5 additions and 5 deletions
  1. 1 1
      cake/app/Config/core.php
  2. 3 3
      cake/benchmark_config
  3. 1 1
      cake/deploy/nginx.conf

+ 1 - 1
cake/app/Config/core.php

@@ -94,7 +94,7 @@
  *
  *
  * And uncomment the App.baseUrl below:
  * And uncomment the App.baseUrl below:
  */
  */
-	//Configure::write('App.baseUrl', env('SCRIPT_NAME'));
+Configure::write('App.baseUrl', env('SCRIPT_NAME'));
 
 
 /**
 /**
  * Uncomment the define below to use CakePHP prefix routes.
  * Uncomment the define below to use CakePHP prefix routes.

+ 3 - 3
cake/benchmark_config

@@ -3,9 +3,9 @@
   "tests": [{
   "tests": [{
     "default": {
     "default": {
       "setup_file": "setup",
       "setup_file": "setup",
-      "json_url": "/index.php/json.json",
-      "db_url": "/index.php/world.json",
-      "query_url": "/index.php/world.json?queries=",
+      "json_url": "/json.json",
+      "db_url": "/world.json",
+      "query_url": "/world.json?queries=",
       "port": 8080,
       "port": 8080,
       "sort": 1
       "sort": 1
     }
     }

+ 1 - 1
cake/deploy/nginx.conf

@@ -59,7 +59,7 @@ http {
         #    proxy_pass   http://127.0.0.1;
         #    proxy_pass   http://127.0.0.1;
         #}
         #}
         
         
-        root           /home/ubuntu/FrameworkBenchmarks/cake;
+        root   /home/ubuntu/FrameworkBenchmarks/cake/app/webroot/;
         index  index.php;
         index  index.php;
 
 
         location / {
         location / {