質問編集履歴

1

情報の追加

2016/12/23 05:52

投稿

smnsmn
smnsmn

スコア175

test CHANGED
File without changes
test CHANGED
@@ -37,3 +37,67 @@
37
37
  どこをいじればいいのかも分からないので、ご教授頂けると幸いです。
38
38
 
39
39
  何卒よろしくお願い致します。
40
+
41
+
42
+
43
+ ##追記
44
+
45
+ **ご指摘いただきました点について下記の情報を追記します。**
46
+
47
+
48
+
49
+ ルーティングについては下記のように設定しています。
50
+
51
+ ```php
52
+
53
+ Router::prefix('test', function ($routes) {
54
+
55
+ $routes->fallbacks(DashedRoute::class);
56
+
57
+ $routes->connect('/', ['controller' => 'Hoge', 'action' => 'index']);
58
+
59
+ $routes->connect('/foo', ['controller' => 'Foo', 'action' => 'index']);
60
+
61
+ :
62
+
63
+ :
64
+
65
+ }
66
+
67
+ ```
68
+
69
+
70
+
71
+ 使用しているのはNginxです。
72
+
73
+
74
+
75
+ ```
76
+
77
+ location / {
78
+
79
+ root /path/to/cakephp/webroot;
80
+
81
+ index index.php index.html index.htm;
82
+
83
+
84
+
85
+ try_files $uri $uri/ /index.php?$args;
86
+
87
+
88
+
89
+ location ~ \.php$ {
90
+
91
+ fastcgi_pass 127.0.0.1:9000;
92
+
93
+ fastcgi_index index.php;
94
+
95
+ fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
96
+
97
+ include fastcgi_params;
98
+
99
+ }
100
+
101
+ }
102
+
103
+ ```