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

質問編集履歴

2

typo

2018/02/25 02:55

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -31,7 +31,7 @@
31
31
 
32
32
  よろしくお願いたします。
33
33
 
34
- 追記です。`/etc/ngnix/nginx.confは以下のようになっています。`
34
+ 追記です。`/etc/ngnix/nginx.conf`は以下のようになっています。
35
35
 
36
36
  ```
37
37
  user nginx;

1

追加説明

2018/02/25 02:55

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -29,4 +29,36 @@
29
29
  が返ってきます。どのように設定すればステータスコードを200にできるでしょうか?
30
30
  ヘルスチェック用なので、何も返す必要がありません。
31
31
 
32
- よろしくお願いたします。
32
+ よろしくお願いたします。
33
+
34
+ 追記です。`/etc/ngnix/nginx.confは以下のようになっています。`
35
+
36
+ ```
37
+ user nginx;
38
+ worker_processes 1;
39
+
40
+ error_log /var/log/nginx/error.log warn;
41
+ pid /var/run/nginx.pid;
42
+
43
+
44
+ events {
45
+ worker_connections 1024;
46
+ }
47
+
48
+
49
+ http {
50
+ include /etc/nginx/mime.types;
51
+ default_type application/octet-stream;
52
+
53
+ log_format main '$remote_addr - $remote_user [$time_local] "$request" '
54
+ '$status $body_bytes_sent "$http_referer" '
55
+ '"$http_user_agent" "$http_x_forwarded_for"';
56
+
57
+ access_log /var/log/nginx/access.log main;
58
+ sendfile on;
59
+ keepalive_timeout 65;
60
+
61
+ include /etc/nginx/conf.d/*.conf;
62
+ }
63
+
64
+ ```