質問編集履歴

1

追記

2018/11/13 07:50

投稿

kozica
kozica

スコア58

test CHANGED
File without changes
test CHANGED
@@ -98,9 +98,55 @@
98
98
 
99
99
  }
100
100
 
101
+ ```
101
102
 
103
+ ###試したこと
102
104
 
105
+ 下記curlでアクセスすると下記結果が返ってきました。
103
106
 
107
+ curl localhost:80
108
+
109
+ ```html
110
+
111
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
112
+
113
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
114
+
115
+ <head>
116
+
117
+ <title>Test Page for the Nginx HTTP Server on the Amazon Linux AMI</title>
118
+
119
+
120
+
121
+ ・ 
122
+
123
+ </div>
124
+
125
+ </body>
126
+
127
+ </html>
128
+
129
+ ```
130
+
131
+ しかし、ドメイン名からcurlすると403返ってきます。
132
+
133
+ curl ドメイン名:80
134
+
135
+ ```html
136
+
137
+ <html>
138
+
139
+ <head><title>403 Forbidden</title></head>
140
+
141
+ <body bgcolor="white">
142
+
143
+ <center><h1>403 Forbidden</h1></center>
144
+
145
+ <hr><center>nginx/1.12.1</center>
146
+
147
+ </body>
148
+
149
+ </html>
104
150
 
105
151
 
106
152