質問編集履歴
2
コマンドのコピペミスを修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
404が返ってきてしまいます。
|
5
5
|
|
6
6
|
```
|
7
|
-
$ curl http://localhost/healthz
|
7
|
+
$ curl http://localhost/healthz/index.html
|
8
8
|
% Total % Received % Xferd Average Speed Time Time Time Current
|
9
9
|
Dload Upload Total Spent Left Speed
|
10
10
|
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0<html>
|
@@ -71,3 +71,11 @@
|
|
71
71
|
}
|
72
72
|
}
|
73
73
|
```
|
74
|
+
|
75
|
+
### /usr/share/nginx/html
|
76
|
+
```
|
77
|
+
satken@debian11:~$ ls -la /usr/share/nginx/html
|
78
|
+
drwxr-xr-x 3 satken satken 4096 Jan 23 20:55 .
|
79
|
+
drwxr-xr-x 3 satken satken 4096 Jan 23 21:11 ..
|
80
|
+
-rw-r--r-- 1 satken satken 5 Jan 23 20:42 index.html
|
81
|
+
```
|
1
誤記修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -58,11 +58,11 @@
|
|
58
58
|
server_name localhost;
|
59
59
|
error_page 403 /403.html;
|
60
60
|
error_page 404 /404.html;
|
61
|
-
location
|
61
|
+
location /healthz {
|
62
62
|
root /usr/share/nginx/html;
|
63
63
|
}
|
64
64
|
# このコメントアウトを戻すとちゃんと動く
|
65
|
-
#location
|
65
|
+
#location / {
|
66
66
|
# root /usr/share/nginx/html;
|
67
67
|
#}
|
68
68
|
error_page 500 502 503 504 /50x.html;
|