回答編集履歴

2

動作確認済み

2016/12/05 09:12

投稿

退会済みユーザー
test CHANGED
@@ -1,33 +1,67 @@
1
+ こちらで動作するのを確認しました。
2
+
1
- こんな感じかしら?
3
+ default.conf
2
4
 
3
5
  ```ここに言語を入力
4
6
 
5
7
  server {
6
8
 
7
- # 中略
9
+ listen 80;
8
10
 
9
- location /phpMyAdmin {
10
-
11
- alias /usr/share/phpMyAdmin;
12
-
13
- index index.php;
11
+ server_name localhost;
14
-
15
- }
16
12
 
17
13
 
18
14
 
19
- location ~ ^/phpMyAdmin.+\.php$ {
15
+ location /phpMyAdmin {
20
16
 
21
- fastcgi_pass 127.0.0.1:9000;
17
+ alias /usr/share/phpMyAdmin/;
22
18
 
23
- fastcgi_index index.php;
19
+ index index.php;
24
20
 
25
- fastcgi_split_path_info ^/phpMyAdmin(.+\.php)(.*)$;
21
+ }
26
22
 
27
- fastcgi_param SCRIPT_FILENAME /usr/share/phpMyAdmin$fastcgi_script_name;
28
23
 
29
- include fastcgi_params;
30
24
 
25
+ location ~ ^/phpMyAdmin/.+\.php$ {
26
+
27
+ fastcgi_pass 127.0.0.1:9000;
28
+
29
+ fastcgi_index index.php;
30
+
31
+ fastcgi_split_path_info ^/phpMyAdmin(.+\.php)(.*)$;
32
+
33
+ fastcgi_param SCRIPT_FILENAME /usr/share/phpMyAdmin$fastcgi_script_name;
34
+
35
+ include fastcgi_params;
36
+
31
- }
37
+ }
38
+
39
+
40
+
41
+ location / {
42
+
43
+ root /usr/share/nginx/html;
44
+
45
+ index index.php index.html index.htm;
46
+
47
+ }
48
+
49
+
50
+
51
+ location ~ \.php$ {
52
+
53
+ root /usr/share/nginx/html;
54
+
55
+ fastcgi_pass 127.0.0.1:9000;
56
+
57
+ fastcgi_index index.php;
58
+
59
+ fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
60
+
61
+ include fastcgi_params;
62
+
63
+ }
64
+
65
+ }
32
66
 
33
67
  ```

1

phpmyadminからphpMyAdminへ

2016/12/05 09:12

投稿

退会済みユーザー
test CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  # ~ 中略 ~
8
8
 
9
- location /phpmyadmin {
9
+ location /phpMyAdmin {
10
10
 
11
11
  alias /usr/share/phpMyAdmin;
12
12
 
@@ -16,13 +16,13 @@
16
16
 
17
17
 
18
18
 
19
- location ~ ^/phpmyadmin.+\.php$ {
19
+ location ~ ^/phpMyAdmin.+\.php$ {
20
20
 
21
21
  fastcgi_pass 127.0.0.1:9000;
22
22
 
23
23
  fastcgi_index index.php;
24
24
 
25
- fastcgi_split_path_info ^/phpmyadmin(.+\.php)(.*)$;
25
+ fastcgi_split_path_info ^/phpMyAdmin(.+\.php)(.*)$;
26
26
 
27
27
  fastcgi_param SCRIPT_FILENAME /usr/share/phpMyAdmin$fastcgi_script_name;
28
28