質問編集履歴

2

status追記

2020/08/06 13:05

投稿

Masalu_Kudou
Masalu_Kudou

スコア93

title CHANGED
File without changes
body CHANGED
@@ -137,4 +137,39 @@
137
137
  </div>
138
138
  </body></html>
139
139
 
140
- -----------------------------------------------------
140
+ -----------------------------------------------------
141
+ 【Status確認】
142
+
143
+ [root@tk2-258-38511 ~]# systemctl status httpd
144
+ * httpd.service - The Apache HTTP Server
145
+ Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
146
+ Active: active (running) since Tue 2020-07-28 23:28:20 JST; 1 weeks 1 days ago
147
+ Docs: man:httpd(8)
148
+ man:apachectl(8)
149
+ Process: 18345 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=0/SUCCESS)
150
+ Process: 20010 ExecReload=/usr/sbin/httpd $OPTIONS -k graceful (code=exited, status=0/SUCCESS)
151
+ Main PID: 18348 (httpd)
152
+ Status: "Total requests: 0; Current requests/sec: 0; Current traffic: 0 B/sec"
153
+ CGroup: /system.slice/httpd.service
154
+ |-18348 /usr/sbin/httpd -DFOREGROUND
155
+ |-20023 /usr/sbin/httpd -DFOREGROUND
156
+ |-20024 /usr/sbin/httpd -DFOREGROUND
157
+ |-20025 /usr/sbin/httpd -DFOREGROUND
158
+ |-20026 /usr/sbin/httpd -DFOREGROUND
159
+ `-20027 /usr/sbin/httpd -DFOREGROUND
160
+
161
+ [root@tk2-258-38511 ~]# systemctl status firewalld
162
+ * firewalld.service - firewalld - dynamic firewall daemon
163
+ Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)
164
+ Active: active (running) since Thu 2020-08-06 21:58:13 JST; 5min ago
165
+ Docs: man:firewalld(1)
166
+ Main PID: 28040 (firewalld)
167
+ CGroup: /system.slice/firewalld.service
168
+ `-28040 /usr/bin/python2 -Es /usr/sbin/firewalld --nofork --nopid
169
+
170
+ Aug 06 21:58:13 tk2-258-38511.vs.sakura.ne.jp systemd[1]: Starting firewalld - dynamic firewall daemon...
171
+ Aug 06 21:58:13 tk2-258-38511.vs.sakura.ne.jp systemd[1]: Started firewalld - dynamic firewall daemon.
172
+ Aug 06 21:58:14 tk2-258-38511.vs.sakura.ne.jp firewalld[28040]: WARNING: AllowZoneDrifting is enabled. This is considered an insecure configuration option. It will be removed in a future release. Please consider...abling it now.
173
+ Hint: Some lines were ellipsized, use -l to show in full.
174
+
175
+ ----------------------------------------

1

curlの実行結果追記

2020/08/06 13:05

投稿

Masalu_Kudou
Masalu_Kudou

スコア93

title CHANGED
File without changes
body CHANGED
@@ -10,4 +10,131 @@
10
10
 
11
11
  何かfirewallが邪魔しているのかなと、systemctl stop firewalld でファイアーウォールを止めましたが、結果は同じでした。
12
12
 
13
- 他に原因として考えられるのはなんでしょうか?お分かりの方、よろしくお願いいたします。
13
+ 他に原因として考えられるのはなんでしょうか?お分かりの方、よろしくお願いいたします。
14
+
15
+ 8/6 追記------------------------
16
+ 【curlの実行結果】
17
+
18
+ [root@tk2-258-38511 ~]# curl http://127.0.0.1/
19
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html><head>
20
+ <meta http-equiv="content-type" content="text/html; charset=UTF-8">
21
+ <title>Apache HTTP Server Test Page powered by CentOS</title>
22
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
23
+
24
+ <!-- Bootstrap -->
25
+ <link href="/noindex/css/bootstrap.min.css" rel="stylesheet">
26
+ <link rel="stylesheet" href="noindex/css/open-sans.css" type="text/css" />
27
+
28
+ <style type="text/css"><!--
29
+
30
+ body {
31
+ font-family: "Open Sans", Helvetica, sans-serif;
32
+ font-weight: 100;
33
+ color: #ccc;
34
+ background: rgba(10, 24, 55, 1);
35
+ font-size: 16px;
36
+ }
37
+
38
+ h2, h3, h4 {
39
+ font-weight: 200;
40
+ }
41
+
42
+ h2 {
43
+ font-size: 28px;
44
+ }
45
+
46
+ .jumbotron {
47
+ margin-bottom: 0;
48
+ color: #333;
49
+ background: rgb(212,212,221); /* Old browsers */
50
+ background: radial-gradient(ellipse at center top, rgba(255,255,255,1) 0%,rgba(174,174,183,1) 100%); /* W3C */
51
+ }
52
+
53
+ .jumbotron h1 {
54
+ font-size: 128px;
55
+ font-weight: 700;
56
+ color: white;
57
+ text-shadow: 0px 2px 0px #abc,
58
+ 0px 4px 10px rgba(0,0,0,0.15),
59
+ 0px 5px 2px rgba(0,0,0,0.1),
60
+ 0px 6px 30px rgba(0,0,0,0.1);
61
+ }
62
+
63
+ .jumbotron p {
64
+ font-size: 28px;
65
+ font-weight: 100;
66
+ }
67
+
68
+ .main {
69
+ background: white;
70
+ color: #234;
71
+ border-top: 1px solid rgba(0,0,0,0.12);
72
+ padding-top: 30px;
73
+ padding-bottom: 40px;
74
+ }
75
+
76
+ .footer {
77
+ border-top: 1px solid rgba(255,255,255,0.2);
78
+ padding-top: 30px;
79
+ }
80
+
81
+ --></style>
82
+ </head>
83
+ <body>
84
+ <div class="jumbotron text-center">
85
+ <div class="container">
86
+ <h1>Testing 123..</h1>
87
+ <p class="lead">This page is used to test the proper operation of the <a href="http://apache.org">Apache HTTP server</a> after it has been installed. If you can read this page it means that this site is working properly. This server is powered by <a href="http://centos.org">CentOS</a>.</p>
88
+ </div>
89
+ </div>
90
+ <div class="main">
91
+ <div class="container">
92
+ <div class="row">
93
+ <div class="col-sm-6">
94
+ <h2>Just visiting?</h2>
95
+ <p class="lead">The website you just visited is either experiencing problems or is undergoing routine maintenance.</p>
96
+ <p>If you would like to let the administrators of this website know that you've seen this page instead of the page you expected, you should send them e-mail. In general, mail sent to the name "webmaster" and directed to the website's domain should reach the appropriate person.</p>
97
+ <p>For example, if you experienced problems while visiting www.example.com, you should send e-mail to "webmaster@example.com".</p>
98
+ </div>
99
+ <div class="col-sm-6">
100
+ <h2>Are you the Administrator?</h2>
101
+ <p>You should add your website content to the directory <tt>/var/www/html/</tt>.</p>
102
+ <p>To prevent this page from ever being used, follow the instructions in the file <tt>/etc/httpd/conf.d/welcome.conf</tt>.</p>
103
+
104
+ <h2>Promoting Apache and CentOS</h2>
105
+ <p>You are free to use the images below on Apache and CentOS Linux powered HTTP servers. Thanks for using Apache and CentOS!</p>
106
+ <p><a href="http://httpd.apache.org/"><img src="images/apache_pb.gif" alt="[ Powered by Apache ]"></a> <a href="http://www.centos.org/"><img src="images/poweredby.png" alt="[ Powered by CentOS Linux ]" height="31" width="88"></a></p>
107
+ </div>
108
+ </div>
109
+ </div>
110
+ </div>
111
+ </div>
112
+ <div class="footer">
113
+ <div class="container">
114
+ <div class="row">
115
+ <div class="col-sm-6">
116
+ <h2>Important note:</h2>
117
+ <p class="lead">The CentOS Project has nothing to do with this website or its content,
118
+ it just provides the software that makes the website run.</p>
119
+
120
+ <p>If you have issues with the content of this site, contact the owner of the domain, not the CentOS project.
121
+ Unless you intended to visit CentOS.org, the CentOS Project does not have anything to do with this website,
122
+ the content or the lack of it.</p>
123
+ <p>For example, if this website is www.example.com, you would find the owner of the example.com domain at the following WHOIS server:</p>
124
+ <p><a href="http://www.internic.net/whois.html">http://www.internic.net/whois.html</a></p>
125
+ </div>
126
+ <div class="col-sm-6">
127
+ <h2>The CentOS Project</h2>
128
+ <p>The CentOS Linux distribution is a stable, predictable, manageable and reproduceable platform derived from
129
+ the sources of Red Hat Enterprise Linux (RHEL).<p>
130
+
131
+ <p>Additionally to being a popular choice for web hosting, CentOS also provides a rich platform for open source communities to build upon. For more information
132
+ please visit the <a href="http://www.centos.org/">CentOS website</a>.</p>
133
+ </div>
134
+ </div>
135
+ </div>
136
+ </div>
137
+ </div>
138
+ </body></html>
139
+
140
+ -----------------------------------------------------