質問するログイン新規登録

質問編集履歴

6

修正

2020/06/07 08:55

投稿

study_111
study_111

スコア82

title CHANGED
File without changes
body CHANGED
@@ -105,38 +105,35 @@
105
105
  /var/log/nginx/access.logは以下になります
106
106
 
107
107
  ```
108
- 128.14.209.154 - - [06/Jun/2020:08:29:53 +0000] "GET / HTTP/1.1" 200 3520 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36" "-"
109
- 88.135.87.177 - - [06/Jun/2020:08:52:51 +0000] "GET / HTTP/1.1" 200 3520 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36" "-"
110
- 114.35.30.134 - - [06/Jun/2020:09:22:47 +0000] "GET / HTTP/1.1" 400 157 "-" "-" "-"
111
- 143.255.243.104 - - [06/Jun/2020:09:52:36 +0000] "GET / HTTP/1.1" 200 3520 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/601.7.7 (KHTML, like Gecko) Version/9.1.2 Safari/601.7.7" "-"
112
- 115.165.12.59 - - [06/Jun/2020:22:53:49 +0000] "GET /index.php HTTP/1.1" 200 65450 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36(KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" "-"
113
- 115.165.12.59 - - [06/Jun/2020:22:53:50 +0000] "GET /favicon.ico HTTP/1.1" 404 3665 "http://ec2-54-250-209-6.ap-northeast-1.compute.amazonaws.com/index.php" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" "-"
114
- 115.165.12.59 - - [06/Jun/2020:23:05:09 +0000] "GET / HTTP/1.1" 500 3708 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" "-"
115
- 115.165.12.59 - - [06/Jun/2020:23:05:10 +0000] "GET /nginx-logo.png HTTP/1.1" 200 368 "http://ec2-54-250-209-6.ap-northeast-1.compute.amazonaws.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" "-"
116
- 115.165.12.59 - - [06/Jun/2020:23:05:10 +0000] "GET /poweredby.png HTTP/1.1" 200 368 "http://ec2-54-250-209-6.ap-northeast-1.compute.amazonaws.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" "-"
117
- 115.165.12.59 - - [06/Jun/2020:23:08:06 +0000] "GET / HTTP/1.1" 500 3708 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" "-"
118
- 115.165.12.59 - - [06/Jun/2020:23:14:54 +0000] "GET / HTTP/1.1" 500 3708 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" "-"
119
- 115.165.12.59 - - [06/Jun/2020:23:14:55 +0000] "GET / HTTP/1.1" 500 3708 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" "-"
120
- 115.165.12.59 - - [06/Jun/2020:23:14:56 +0000] "GET / HTTP/1.1" 500 3708 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" "-"
121
- 86.175.251.41 - - [06/Jun/2020:23:16:07 +0000] "GET / HTTP/1.0" 500 3708 "-" "-" "-"
122
- 115.165.12.59 - - [06/Jun/2020:23:21:27 +0000] "GET / HTTP/1.1" 500 3708 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" "-"
123
- 115.165.12.59 - - [06/Jun/2020:23:21:30 +0000] "GET / HTTP/1.1" 500 3708 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" "-"
124
- 115.165.12.59 - - [06/Jun/2020:23:21:32 +0000] "GET / HTTP/1.1" 500 3708 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36
108
+ 122.51.94.168 - - [07/Jun/2020:06:04:15 +0000] "GET /html/public/index.php HTTP/1.1" 404 3665 "-" "Mozilla/5.0 (Windows; U; Windows NT 6.0;en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6)" "-"
109
+ 122.51.94.168 - - [07/Jun/2020:06:04:16 +0000] "GET /public/index.php HTTP/1.1" 404 3665 "-" "Mozilla/5.0 (Windows; U; Windows NT 6.0;en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6)" "-"
110
+ 122.51.94.168 - - [07/Jun/2020:06:04:16 +0000] "GET /TP/html/public/index.php HTTP/1.1" 404 3665 "-" "Mozilla/5.0 (Windows; U; Windows NT 6.0;en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6)" "-"
111
+ 122.51.94.168 - - [07/Jun/2020:06:04:17 +0000] "GET /elrekt.php HTTP/1.1" 404 3665 "-" "Mozilla/5.0 (Windows; U; Windows NT 6.0;en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6)" "-"
112
+ 122.51.94.168 - - [07/Jun/2020:06:04:18 +0000] "GET /index.php HTTP/1.1" 500 3708 "-" "Mozilla/5.0 (Windows; U; Windows NT 6.0;en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6)" "-"
113
+ 122.51.94.168 - - [07/Jun/2020:06:04:19 +0000] "GET / HTTP/1.1" 500 3708 "-" "Mozilla/5.0 (Windows; U; Windows NT 6.0;en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6)" "-"
114
+ 218.35.154.40 - - [07/Jun/2020:08:06:44 +0000] "GET / HTTP/1.1" 400 157 "-" "-" "-"
115
+ 195.54.160.135 - - [07/Jun/2020:08:08:14 +0000] "GET /solr/admin/info/system?wt=json HTTP/1.1" 404 3665 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36" "-"
116
+ 195.54.160.135 - - [07/Jun/2020:08:14:04 +0000] "GET /?a=fetch&content=<php>die(@md5(HelloThinkCMF))</php> HTTP/1.1" 500 3708 "-" "Mozilla/5.0 (Windows NT10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36" "-"
117
+ 195.54.160.135 - - [07/Jun/2020:08:14:05 +0000] "GET /?XDEBUG_SESSION_START=phpstorm HTTP/1.1" 500 3708 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36" "-"
118
+ 115.165.12.59 - - [07/Jun/2020:08:26:54 +0000] "GET / HTTP/1.1" 500 3708 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" "-"
119
+ 195.54.160.135 - - [07/Jun/2020:08:27:16 +0000] "GET /index.php?s=/Index/\x5Cthink\x5Capp/invokefunction&function=call_user_func_array&vars[0]=md5&vars[1][]=HelloThinkPHP HTTP/1.1" 500 3708 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36" "-"
120
+ 66.249.66.203 - - [07/Jun/2020:08:42:59 +0000] "GET /robots.txt HTTP/1.1" 404 3665 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)" "-"
121
+ 66.249.66.201 - - [07/Jun/2020:08:42:59 +0000] "GET / HTTP/1.1" 500 3708 "-" "Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36(KHTML, like Gecko) Chrome/80.0.3987.92 Mobile Safari/537.36 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)" "-"
125
122
  ```
126
123
 
127
124
  「/var/log/nginx/error.log」は以下になります。
128
125
 
129
126
  ```
130
- 020/06/06 22:53:50 [error] 3478#0: *2 open() "/usr/share/nginx/html/favicon.ico" failed (2: No such file or directory), client: 115.165.12.59, server: _,request: "GET /favicon.ico HTTP/1.1", host: "ec2-54-250-209-6.ap-northeast-1.compute.amazonaws.com", referrer: "http://ec2-54-250-209-6.ap-northeast-1.compute.amazonaws.com/index.php"
131
- 2020/06/06 23:43:49 [error] 4081#0: *25 open() "/usr/share/nginx/html/favicon.ico" failed (2: No such file or directory), client: 115.165.12.59, server: ec2-54-250-209-6.ap-northeast-1.compute.amazonaws.com, request: "GET /favicon.ico HTTP/1.1", host: "ec2-54-250-209-6.ap-northeast-1.compute.amazonaws.com"
132
- 2020/06/06 23:51:49 [error] 4174#0: *16 open() "/usr/share/nginx/html/favicon.ico" failed (2: No such file or directory), client: 115.165.12.59, server: ec2-54-250-209-6.ap-northeast-1.compute.amazonaws.com, request: "GET /favicon.ico HTTP/1.1", host: "ec2-54-250-209-6.ap-northeast-1.compute.amazonaws.com", referrer: "http://ec2-54-250-209-6.ap-northeast-1.compute.amazonaws.com/"
133
- 2020/06/07 00:23:01 [error] 4174#0: *21 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 217.76.68.173, server: ec2-54-250-209-6.ap-northeast-1.compute.amazonaws.com, request: "GET /TP/public/index.php HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/www.sock:", host: "54.250.209.6"
134
- 2020/06/07 00:23:01 [error] 4174#0: *23 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 217.76.68.173, server: ec2-54-250-209-6.ap-northeast-1.compute.amazonaws.com, request: "GET /TP/index.php HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/www.sock:",host: "54.250.209.6"
135
- 2020/06/07 00:23:02 [error] 4174#0: *25 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 217.76.68.173, server: ec2-54-250-209-6.ap-northeast-1.compute.amazonaws.com, request: "GET /thinkphp/html/public/index.php HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/www.sock:", host: "54.250.209.6"
136
- 2020/06/07 00:23:02 [error] 4174#0: *27 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 217.76.68.173, server: ec2-54-250-209-6.ap-northeast-1.compute.amazonaws.com, request: "GET /html/public/index.php HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/www.sock:", host: "54.250.209.6"
137
- 2020/06/07 00:23:03 [error] 4174#0: *29 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 217.76.68.173, server: ec2-54-250-209-6.ap-northeast-1.compute.amazonaws.com, request: "GET /public/index.php HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/www.sock:", host: "54.250.209.6"
138
- 2020/06/07 00:23:03 [error] 4174#0: *31 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 217.76.68.173, server: ec2-54-250-209-6.ap-northeast-1.compute.amazonaws.com, request: "GET /TP/html/public/index.php HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/www.sock:", host: "54.250.209.6"
139
- 2020/06/07 00:23:04 [error] 4174#0: *33 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 217.76.68.173, server: ec2-54-250-209-6.ap-northeast-1.compute.amazonaws.com, request: "GET /elrekt.php HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/www.sock:", host: "54.250.209.6"
140
- @@@
127
+ /latest/dynamic/instance-identity/document HTTP/1.1", host: "[::ffff:a9fe:a9fe]"
128
+ 2020/06/07 01:58:01 [error] 4548#0: *47 "/usr/share/nginx/html/HNAP1/index.php" is not found (2: No such file or directory), client: 178.32.89.137, server: ec2-54-250-209-6.ap-northeast-1.compute.amazonaws.com, request: "GET /HNAP1/ HTTP/1.1", host: "54.250.209.6", referrer: "http://54.250.209.6/"
129
+ 2020/06/07 06:04:13 [error] 4548#0: *61 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 122.51.94.168, server: ec2-54-250-209-6.ap-northeast-1.compute.amazonaws.com, request: "GET /TP/public/index.php HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/www.sock:", host: "54.250.209.6"
130
+ 2020/06/07 06:04:14 [error] 4548#0: *63 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 122.51.94.168, server: ec2-54-250-209-6.ap-northeast-1.compute.amazonaws.com, request: "GET /TP/index.php HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/www.sock:",host: "54.250.209.6"
131
+ 2020/06/07 06:04:15 [error] 4548#0: *65 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 122.51.94.168, server: ec2-54-250-209-6.ap-northeast-1.compute.amazonaws.com, request: "GET /thinkphp/html/public/index.php HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/www.sock:", host: "54.250.209.6"
132
+ 2020/06/07 06:04:15 [error] 4548#0: *67 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 122.51.94.168, server: ec2-54-250-209-6.ap-northeast-1.compute.amazonaws.com, request: "GET /html/public/index.php HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/www.sock:", host: "54.250.209.6"
133
+ 2020/06/07 06:04:16 [error] 4548#0: *69 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 122.51.94.168, server: ec2-54-250-209-6.ap-northeast-1.compute.amazonaws.com, request: "GET /public/index.php HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/www.sock:", host: "54.250.209.6"
134
+ 2020/06/07 06:04:16 [error] 4548#0: *71 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 122.51.94.168, server: ec2-54-250-209-6.ap-northeast-1.compute.amazonaws.com, request: "GET /TP/html/public/index.php HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/www.sock:", host: "54.250.209.6"
135
+ 2020/06/07 06:04:17 [error] 4548#0: *73 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 122.51.94.168, server: ec2-54-250-209-6.ap-northeast-1.compute.amazonaws.com, request: "GET /elrekt.php HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/www.sock:", host: "54.250.209.6"
136
+ 2020/06/07 08:08:14 [error] 4548#0: *80 open() "/usr/share/nginx/html/solr/admin/info/system" failed (2: No such file or directory), client: 195.54.160.135, server: ec2-54-250-209-6.ap-northeast-1.compute.amazonaws.com, request: "GET /solr/admin/info/system?wt=json HTTP/1.1", host: "54.250.209.6:80"
137
+ 2020/06/07 08:42:59 [error] 4548#0: *90 open() "/usr/share/nginx/html/robots.txt" failed (2: No such file or directory), client: 66.249.66.203, server: ec2-54-250-209-6.ap-northeast-1.compute.amazonaws.com, request: "GET /robots.txt HTTP/1.1", host: "ec2-54-250-209-6.ap-northeast-1.compute.amazonaws.com"
141
138
 
142
139
  ```

5

追記

2020/06/07 08:55

投稿

study_111
study_111

スコア82

title CHANGED
File without changes
body CHANGED
@@ -121,8 +121,22 @@
121
121
  86.175.251.41 - - [06/Jun/2020:23:16:07 +0000] "GET / HTTP/1.0" 500 3708 "-" "-" "-"
122
122
  115.165.12.59 - - [06/Jun/2020:23:21:27 +0000] "GET / HTTP/1.1" 500 3708 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" "-"
123
123
  115.165.12.59 - - [06/Jun/2020:23:21:30 +0000] "GET / HTTP/1.1" 500 3708 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" "-"
124
- 115.165.12.59 - - [06/Jun/2020:23:21:32 +0000] "GET / HTTP/1.1" 500 3708 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" "-"
125
- 115.165.12.59 - - [06/Jun/2020:23:25:09 +0000] "GET / HTTP/1.1" 500 3708 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" "-"
126
- 115.165.12.59 - - [06/Jun/2020:23:27:47 +0000] "GET / HTTP/1.1" 500 3708 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" "-"
127
- 115.165.12.59 - - [06/Jun/2020:23:29:08 +0000] "GET / HTTP/1.1" 500 3708 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" "-"
124
+ 115.165.12.59 - - [06/Jun/2020:23:21:32 +0000] "GET / HTTP/1.1" 500 3708 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36
125
+ ```
126
+
127
+ /var/log/nginx/error.log」は以下になります。
128
+
129
+ ```
130
+ 020/06/06 22:53:50 [error] 3478#0: *2 open() "/usr/share/nginx/html/favicon.ico" failed (2: No such file or directory), client: 115.165.12.59, server: _,request: "GET /favicon.ico HTTP/1.1", host: "ec2-54-250-209-6.ap-northeast-1.compute.amazonaws.com", referrer: "http://ec2-54-250-209-6.ap-northeast-1.compute.amazonaws.com/index.php"
131
+ 2020/06/06 23:43:49 [error] 4081#0: *25 open() "/usr/share/nginx/html/favicon.ico" failed (2: No such file or directory), client: 115.165.12.59, server: ec2-54-250-209-6.ap-northeast-1.compute.amazonaws.com, request: "GET /favicon.ico HTTP/1.1", host: "ec2-54-250-209-6.ap-northeast-1.compute.amazonaws.com"
132
+ 2020/06/06 23:51:49 [error] 4174#0: *16 open() "/usr/share/nginx/html/favicon.ico" failed (2: No such file or directory), client: 115.165.12.59, server: ec2-54-250-209-6.ap-northeast-1.compute.amazonaws.com, request: "GET /favicon.ico HTTP/1.1", host: "ec2-54-250-209-6.ap-northeast-1.compute.amazonaws.com", referrer: "http://ec2-54-250-209-6.ap-northeast-1.compute.amazonaws.com/"
133
+ 2020/06/07 00:23:01 [error] 4174#0: *21 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 217.76.68.173, server: ec2-54-250-209-6.ap-northeast-1.compute.amazonaws.com, request: "GET /TP/public/index.php HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/www.sock:", host: "54.250.209.6"
134
+ 2020/06/07 00:23:01 [error] 4174#0: *23 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 217.76.68.173, server: ec2-54-250-209-6.ap-northeast-1.compute.amazonaws.com, request: "GET /TP/index.php HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/www.sock:",host: "54.250.209.6"
135
+ 2020/06/07 00:23:02 [error] 4174#0: *25 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 217.76.68.173, server: ec2-54-250-209-6.ap-northeast-1.compute.amazonaws.com, request: "GET /thinkphp/html/public/index.php HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/www.sock:", host: "54.250.209.6"
136
+ 2020/06/07 00:23:02 [error] 4174#0: *27 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 217.76.68.173, server: ec2-54-250-209-6.ap-northeast-1.compute.amazonaws.com, request: "GET /html/public/index.php HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/www.sock:", host: "54.250.209.6"
137
+ 2020/06/07 00:23:03 [error] 4174#0: *29 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 217.76.68.173, server: ec2-54-250-209-6.ap-northeast-1.compute.amazonaws.com, request: "GET /public/index.php HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/www.sock:", host: "54.250.209.6"
138
+ 2020/06/07 00:23:03 [error] 4174#0: *31 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 217.76.68.173, server: ec2-54-250-209-6.ap-northeast-1.compute.amazonaws.com, request: "GET /TP/html/public/index.php HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/www.sock:", host: "54.250.209.6"
139
+ 2020/06/07 00:23:04 [error] 4174#0: *33 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 217.76.68.173, server: ec2-54-250-209-6.ap-northeast-1.compute.amazonaws.com, request: "GET /elrekt.php HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/www.sock:", host: "54.250.209.6"
140
+ @@@
141
+
128
142
  ```

4

追記

2020/06/07 08:30

投稿

study_111
study_111

スコア82

title CHANGED
File without changes
body CHANGED
@@ -99,4 +99,30 @@
99
99
 
100
100
  }
101
101
 
102
+ ```
103
+
104
+ **追記**
105
+ /var/log/nginx/access.logは以下になります
106
+
107
+ ```
108
+ 128.14.209.154 - - [06/Jun/2020:08:29:53 +0000] "GET / HTTP/1.1" 200 3520 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36" "-"
109
+ 88.135.87.177 - - [06/Jun/2020:08:52:51 +0000] "GET / HTTP/1.1" 200 3520 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36" "-"
110
+ 114.35.30.134 - - [06/Jun/2020:09:22:47 +0000] "GET / HTTP/1.1" 400 157 "-" "-" "-"
111
+ 143.255.243.104 - - [06/Jun/2020:09:52:36 +0000] "GET / HTTP/1.1" 200 3520 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/601.7.7 (KHTML, like Gecko) Version/9.1.2 Safari/601.7.7" "-"
112
+ 115.165.12.59 - - [06/Jun/2020:22:53:49 +0000] "GET /index.php HTTP/1.1" 200 65450 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36(KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" "-"
113
+ 115.165.12.59 - - [06/Jun/2020:22:53:50 +0000] "GET /favicon.ico HTTP/1.1" 404 3665 "http://ec2-54-250-209-6.ap-northeast-1.compute.amazonaws.com/index.php" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" "-"
114
+ 115.165.12.59 - - [06/Jun/2020:23:05:09 +0000] "GET / HTTP/1.1" 500 3708 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" "-"
115
+ 115.165.12.59 - - [06/Jun/2020:23:05:10 +0000] "GET /nginx-logo.png HTTP/1.1" 200 368 "http://ec2-54-250-209-6.ap-northeast-1.compute.amazonaws.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" "-"
116
+ 115.165.12.59 - - [06/Jun/2020:23:05:10 +0000] "GET /poweredby.png HTTP/1.1" 200 368 "http://ec2-54-250-209-6.ap-northeast-1.compute.amazonaws.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" "-"
117
+ 115.165.12.59 - - [06/Jun/2020:23:08:06 +0000] "GET / HTTP/1.1" 500 3708 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" "-"
118
+ 115.165.12.59 - - [06/Jun/2020:23:14:54 +0000] "GET / HTTP/1.1" 500 3708 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" "-"
119
+ 115.165.12.59 - - [06/Jun/2020:23:14:55 +0000] "GET / HTTP/1.1" 500 3708 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" "-"
120
+ 115.165.12.59 - - [06/Jun/2020:23:14:56 +0000] "GET / HTTP/1.1" 500 3708 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" "-"
121
+ 86.175.251.41 - - [06/Jun/2020:23:16:07 +0000] "GET / HTTP/1.0" 500 3708 "-" "-" "-"
122
+ 115.165.12.59 - - [06/Jun/2020:23:21:27 +0000] "GET / HTTP/1.1" 500 3708 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" "-"
123
+ 115.165.12.59 - - [06/Jun/2020:23:21:30 +0000] "GET / HTTP/1.1" 500 3708 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" "-"
124
+ 115.165.12.59 - - [06/Jun/2020:23:21:32 +0000] "GET / HTTP/1.1" 500 3708 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" "-"
125
+ 115.165.12.59 - - [06/Jun/2020:23:25:09 +0000] "GET / HTTP/1.1" 500 3708 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" "-"
126
+ 115.165.12.59 - - [06/Jun/2020:23:27:47 +0000] "GET / HTTP/1.1" 500 3708 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" "-"
127
+ 115.165.12.59 - - [06/Jun/2020:23:29:08 +0000] "GET / HTTP/1.1" 500 3708 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" "-"
102
128
  ```

3

nginx.confの追記

2020/06/07 08:28

投稿

study_111
study_111

スコア82

title CHANGED
File without changes
body CHANGED
@@ -3,4 +3,100 @@
3
3
  ![イメージ説明](d7797d14736baafd8971fc3730b87fd4.png)
4
4
 
5
5
  [こちら](https://teratail.com/questions/40396)を参考に、「server_name」にドメインを追加しnginxを再起動、php-fpmを再起動し再度アクセスしてみましたが同様のエラーページが表示されてしまっている状況です。
6
- 修正が必要な部分など、ご助言頂けましたら幸いです。
6
+ 修正が必要な部分など、ご助言頂けましたら幸いです。
7
+
8
+ **追記**
9
+ nginx.confは以下になります。
10
+ ```
11
+ # For more information on configuration, see:
12
+ # * Official English Documentation: http://nginx.org/en/docs/
13
+ # * Official Russian Documentation: http://nginx.org/ru/docs/
14
+
15
+ user nginx;
16
+ worker_processes auto;
17
+ error_log /var/log/nginx/error.log;
18
+ pid /run/nginx.pid;
19
+
20
+ # Load dynamic modules. See /usr/share/doc/nginx/README.dynamic.
21
+ include /usr/share/nginx/modules/*.conf;
22
+
23
+ events {
24
+ worker_connections 1024;
25
+ }
26
+
27
+ http {
28
+ log_format main '$remote_addr - $remote_user [$time_local] "$request" '
29
+ '$status $body_bytes_sent "$http_referer" '
30
+ '"$http_user_agent" "$http_x_forwarded_for"';
31
+
32
+ access_log /var/log/nginx/access.log main;
33
+
34
+ sendfile on;
35
+ tcp_nopush on;
36
+ tcp_nodelay on;
37
+ keepalive_timeout 65;
38
+ types_hash_max_size 2048;
39
+
40
+ include /etc/nginx/mime.types;
41
+ default_type application/octet-stream;
42
+
43
+ # Load modular configuration files from the /etc/nginx/conf.d directory.
44
+ # See http://nginx.org/en/docs/ngx_core_module.html#include
45
+ # for more information.
46
+ include /etc/nginx/conf.d/*.conf;
47
+
48
+ server {
49
+ listen 80 default_server;
50
+ listen [::]:80 default_server;
51
+ server_name ec2-54-250-209-6.ap-northeast-1.compute.amazonaws.com;
52
+ root /usr/share/nginx/html;
53
+
54
+ # Load configuration files for the default server block.
55
+ include /etc/nginx/default.d/*.conf;
56
+
57
+ location / {
58
+ }
59
+
60
+ error_page 404 /404.html;
61
+ location = /40x.html {
62
+ }
63
+
64
+ error_page 500 502 503 504 /50x.html;
65
+ location = /50x.html {
66
+ }
67
+ }
68
+
69
+
70
+ # Settings for a TLS enabled server.
71
+ #
72
+ # server {
73
+ # listen 443 ssl http2 default_server;
74
+ # listen [::]:443 ssl http2 default_server;
75
+ # server_name _;
76
+ # root /usr/share/nginx/html;
77
+ #
78
+ # ssl_certificate "/etc/pki/nginx/server.crt";
79
+ # ssl_certificate_key "/etc/pki/nginx/private/server.key";
80
+ # ssl_session_cache shared:SSL:1m;
81
+ # ssl_session_timeout 10m;
82
+ # ssl_ciphers PROFILE=SYSTEM;
83
+ # ssl_prefer_server_ciphers on;
84
+ #
85
+ # # Load configuration files for the default server block.
86
+ # include /etc/nginx/default.d/*.conf;
87
+ #
88
+ # location / {
89
+ # }
90
+ #
91
+ # error_page 404 /404.html;
92
+ # location = /40x.html {
93
+ # }
94
+ #
95
+ # error_page 500 502 503 504 /50x.html;
96
+ # location = /50x.html {
97
+ # }
98
+ # }
99
+
100
+ }
101
+
102
+ ```

2

画像追加

2020/06/07 00:20

投稿

study_111
study_111

スコア82

title CHANGED
File without changes
body CHANGED
@@ -1,4 +1,6 @@
1
1
  [こちらの記事](https://note.com/hiroki_hachisuka/n/nc1d5342c3a9b)を参考に、wordpressの導入を進めていたのですが、ドメインを入力しwordpressの管理画面へアクセスする部分で、エラーページが表示されてしまいました。
2
+ 表示されたエラーページは以下になります。
3
+ ![イメージ説明](d7797d14736baafd8971fc3730b87fd4.png)
2
4
 
3
5
  [こちら](https://teratail.com/questions/40396)を参考に、「server_name」にドメインを追加しnginxを再起動、php-fpmを再起動し再度アクセスしてみましたが同様のエラーページが表示されてしまっている状況です。
4
6
  修正が必要な部分など、ご助言頂けましたら幸いです。

1

本文修正

2020/06/07 00:18

投稿

study_111
study_111

スコア82

title CHANGED
File without changes
body CHANGED
@@ -1,4 +1,4 @@
1
- [こちら](https://note.com/hiroki_hachisuka/n/nc1d5342c3a9b)を参考に、wordpressの導入を進めていたのですが、ドメインを入力しwordpressの管理画面へアクセスする部分で、エラーページが表示されてしまいました。
1
+ [こちらの記事](https://note.com/hiroki_hachisuka/n/nc1d5342c3a9b)を参考に、wordpressの導入を進めていたのですが、ドメインを入力しwordpressの管理画面へアクセスする部分で、エラーページが表示されてしまいました。
2
2
 
3
3
  [こちら](https://teratail.com/questions/40396)を参考に、「server_name」にドメインを追加しnginxを再起動、php-fpmを再起動し再度アクセスしてみましたが同様のエラーページが表示されてしまっている状況です。
4
4
  修正が必要な部分など、ご助言頂けましたら幸いです。