質問編集履歴
4
記事削除
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
この記事を見ながら(https://qiita.com/kazyam/private/019e4a635479169c8704)、
|
2
|
-
|
3
1
|
AWSでのデプロイを進めました。正常にデプロイ出来た様子がターミナルで出たのですが、下記のような画面になってしまいます。
|
4
2
|
|
5
3
|
|
3
"/etc/nginx/nginx.conf"を(再度)追記致しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -138,6 +138,192 @@
|
|
138
138
|
|
139
139
|
types_hash_max_size 2048;
|
140
140
|
|
141
|
+
|
142
|
+
|
143
|
+
include /etc/nginx/mime.types;
|
144
|
+
|
145
|
+
default_type application/octet-stream;
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
# Load modular configuration files from the /etc/nginx/conf.d directory.
|
150
|
+
|
151
|
+
# See http://nginx.org/en/docs/ngx_core_module.html#include
|
152
|
+
|
153
|
+
# for more information.
|
154
|
+
|
141
|
-
|
155
|
+
include /etc/nginx/conf.d/*.conf;
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
index index.html index.htm;
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
server {
|
164
|
+
|
165
|
+
listen 80 default_server;
|
166
|
+
|
167
|
+
listen [::]:80 default_server;
|
168
|
+
|
169
|
+
server_name localhost;
|
170
|
+
|
171
|
+
root /usr/share/nginx/html;
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
# Load configuration files for the default server block.
|
176
|
+
|
177
|
+
include /etc/nginx/default.d/*.conf;
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
location / {
|
182
|
+
|
183
|
+
}
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
# redirect server error pages to the static page /40x.html
|
188
|
+
|
189
|
+
#
|
190
|
+
|
191
|
+
error_page 404 /404.html;
|
192
|
+
|
193
|
+
location = /40x.html {
|
194
|
+
|
195
|
+
}
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
# redirect server error pages to the static page /50x.html
|
200
|
+
|
201
|
+
#
|
202
|
+
|
203
|
+
error_page 500 502 503 504 /50x.html;
|
204
|
+
|
205
|
+
location = /50x.html {
|
206
|
+
|
207
|
+
}
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
|
212
|
+
|
213
|
+
#
|
214
|
+
|
215
|
+
#location ~ .php$ {
|
216
|
+
|
217
|
+
# proxy_pass http://127.0.0.1;
|
218
|
+
|
219
|
+
#}
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
|
224
|
+
|
225
|
+
#
|
226
|
+
|
227
|
+
#location ~ .php$ {
|
228
|
+
|
229
|
+
# root html;
|
230
|
+
|
231
|
+
# fastcgi_pass 127.0.0.1:9000;
|
232
|
+
|
233
|
+
# fastcgi_index index.php;
|
234
|
+
|
235
|
+
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
|
236
|
+
|
237
|
+
# include fastcgi_params;
|
238
|
+
|
239
|
+
#}
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
# deny access to .htaccess files, if Apache's document root
|
244
|
+
|
245
|
+
# concurs with nginx's one
|
246
|
+
|
247
|
+
#
|
248
|
+
|
249
|
+
#location ~ /.ht {
|
250
|
+
|
251
|
+
# deny all;
|
252
|
+
|
253
|
+
#}
|
254
|
+
|
255
|
+
}
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
# Settings for a TLS enabled server.
|
260
|
+
|
261
|
+
#
|
262
|
+
|
263
|
+
# server {
|
264
|
+
|
265
|
+
# listen 443 ssl http2 default_server;
|
266
|
+
|
267
|
+
# listen [::]:443 ssl http2 default_server;
|
268
|
+
|
269
|
+
# server_name _;
|
270
|
+
|
271
|
+
# root /usr/share/nginx/html;
|
272
|
+
|
273
|
+
#
|
274
|
+
|
275
|
+
# ssl_certificate "/etc/pki/nginx/server.crt";
|
276
|
+
|
277
|
+
# ssl_certificate_key "/etc/pki/nginx/private/server.key";
|
278
|
+
|
279
|
+
# # It is *strongly* recommended to generate unique DH parameters
|
280
|
+
|
281
|
+
# # Generate them with: openssl dhparam -out /etc/pki/nginx/dhparams.pem 2048
|
282
|
+
|
283
|
+
# #ssl_dhparam "/etc/pki/nginx/dhparams.pem";
|
284
|
+
|
285
|
+
# ssl_session_cache shared:SSL:1m;
|
286
|
+
|
287
|
+
# ssl_session_timeout 10m;
|
288
|
+
|
289
|
+
# ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
|
290
|
+
|
291
|
+
# ssl_ciphers HIGH:SEED:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!RSAPSK:!aDH:!aECDH:!EDH-DSS-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA:!SRP;
|
292
|
+
|
293
|
+
# ssl_prefer_server_ciphers on;
|
294
|
+
|
295
|
+
#
|
296
|
+
|
297
|
+
# # Load configuration files for the default server block.
|
298
|
+
|
299
|
+
# include /etc/nginx/default.d/*.conf;
|
300
|
+
|
301
|
+
#
|
302
|
+
|
303
|
+
# location / {
|
304
|
+
|
305
|
+
# }
|
306
|
+
|
307
|
+
#
|
308
|
+
|
309
|
+
# error_page 404 /404.html;
|
310
|
+
|
311
|
+
# location = /40x.html {
|
312
|
+
|
313
|
+
# }
|
314
|
+
|
315
|
+
#
|
316
|
+
|
317
|
+
# error_page 500 502 503 504 /50x.html;
|
318
|
+
|
319
|
+
# location = /50x.html {
|
320
|
+
|
321
|
+
# }
|
322
|
+
|
323
|
+
# }
|
324
|
+
|
325
|
+
|
326
|
+
|
327
|
+
}
|
142
328
|
|
143
329
|
```
|
2
"/etc/nginx/nginx.conf"を追記致しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -69,3 +69,75 @@
|
|
69
69
|
}
|
70
70
|
|
71
71
|
```
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
"/etc/nginx/nginx.conf"の内容も下記に追記致します。
|
80
|
+
|
81
|
+
ご教示頂ければ幸いです。
|
82
|
+
|
83
|
+
```ここに言語を入力
|
84
|
+
|
85
|
+
# For more information on configuration, see:
|
86
|
+
|
87
|
+
# * Official English Documentation: http://nginx.org/en/docs/
|
88
|
+
|
89
|
+
# * Official Russian Documentation: http://nginx.org/ru/docs/
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
user nginx;
|
94
|
+
|
95
|
+
worker_processes auto;
|
96
|
+
|
97
|
+
error_log /var/log/nginx/error.log;
|
98
|
+
|
99
|
+
pid /var/run/nginx.pid;
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
# Load dynamic modules. See /usr/share/doc/nginx/README.dynamic.
|
104
|
+
|
105
|
+
include /usr/share/nginx/modules/*.conf;
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
events {
|
110
|
+
|
111
|
+
worker_connections 1024;
|
112
|
+
|
113
|
+
}
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
http {
|
118
|
+
|
119
|
+
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
120
|
+
|
121
|
+
'$status $body_bytes_sent "$http_referer" '
|
122
|
+
|
123
|
+
'"$http_user_agent" "$http_x_forwarded_for"';
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
access_log /var/log/nginx/access.log main;
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
sendfile on;
|
132
|
+
|
133
|
+
tcp_nopush on;
|
134
|
+
|
135
|
+
tcp_nodelay on;
|
136
|
+
|
137
|
+
keepalive_timeout 65;
|
138
|
+
|
139
|
+
types_hash_max_size 2048;
|
140
|
+
|
141
|
+
"/etc/nginx/nginx.conf" 123L, 3734C
|
142
|
+
|
143
|
+
```
|
1
<code>にてコードの挿入を行いました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -15,6 +15,8 @@
|
|
15
15
|
記載の仕方に間違いがあればご指摘頂ければ幸いでございます。
|
16
16
|
|
17
17
|
|
18
|
+
|
19
|
+
```ここに言語を入力
|
18
20
|
|
19
21
|
listen 80;
|
20
22
|
|
@@ -65,3 +67,5 @@
|
|
65
67
|
error_page 500 502 503 504 /500.html;
|
66
68
|
|
67
69
|
}
|
70
|
+
|
71
|
+
```
|