質問編集履歴

2

修正

2018/10/25 07:48

投稿

kozica
kozica

スコア58

test CHANGED
File without changes
test CHANGED
@@ -50,7 +50,7 @@
50
50
 
51
51
  root /home/ユーザ名/www;
52
52
 
53
- fastcgi_pass ドメイン名;
53
+ fastcgi_pass 127.0.0.1:9000;
54
54
 
55
55
  fastcgi_index index.php;
56
56
 

1

追記

2018/10/25 07:47

投稿

kozica
kozica

スコア58

test CHANGED
File without changes
test CHANGED
@@ -22,4 +22,48 @@
22
22
 
23
23
 
24
24
 
25
+ ```
26
+
27
+ $vi /home/ユーザ名/www/index.php
28
+
29
+ <?php
30
+
31
+ phpinfo();
32
+
33
+ ?>
34
+
35
+
36
+
37
+ $ sudo vi /etc/nginx/conf.d/default.conf
38
+
39
+ location / {
40
+
41
+ root /home/ユーザ名/www;
42
+
43
+ index index.php;
44
+
45
+ }
46
+
47
+
48
+
49
+ location ~ .php$ {
50
+
51
+ root /home/ユーザ名/www;
52
+
53
+ fastcgi_pass ドメイン名;
54
+
55
+ fastcgi_index index.php;
56
+
57
+ fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
58
+
59
+ include fastcgi_params;
60
+
61
+ }
62
+
63
+
64
+
65
+ ```
66
+
67
+
68
+
25
69
  わかる方いらっしゃいますでしょうか?