質問編集履歴

5

httpd.conf書き足し

2018/09/26 06:23

投稿

trm
trm

スコア117

test CHANGED
File without changes
test CHANGED
@@ -239,3 +239,145 @@
239
239
  ```
240
240
 
241
241
  どこが間違っているのかご指摘よろしくお願い致します。
242
+
243
+
244
+
245
+ httpd.confの内容は以下の通りです。
246
+
247
+ ```httpd.conf
248
+
249
+ ServerRoot "/etc/httpd"
250
+
251
+ Listen 80
252
+
253
+ Include conf.modules.d/*.conf
254
+
255
+ User apache
256
+
257
+ Group apache
258
+
259
+ ServerAdmin root@trm7.mydns.jp
260
+
261
+
262
+
263
+ ServerName trm7.mydns.jp:80
264
+
265
+ <Directory />
266
+
267
+ AllowOverride all
268
+
269
+ Require all granted
270
+
271
+ </Directory>
272
+
273
+ DocumentRoot "/var/www/html"
274
+
275
+ <Directory "/var/www">
276
+
277
+ AllowOverride all
278
+
279
+ # Allow open access:
280
+
281
+ Require all granted
282
+
283
+ </Directory>
284
+
285
+ <Directory "/var/www/html">
286
+
287
+ Options FollowSymLinks
288
+
289
+ AllowOverride all
290
+
291
+ Require all granted
292
+
293
+ </Directory>
294
+
295
+ <IfModule dir_module>
296
+
297
+ DirectoryIndex index.html
298
+
299
+ </IfModule>
300
+
301
+ <Files ".ht*">
302
+
303
+ Require all denied
304
+
305
+ </Files>
306
+
307
+ <VirtualHost>
308
+
309
+ <VirtualHost>
310
+
311
+ ErrorLog "logs/error_log"
312
+
313
+ LogLevel warn
314
+
315
+ <IfModule log_config_module>
316
+
317
+ LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
318
+
319
+ LogFormat "%h %l %u %t \"%r\" %>s %b" common
320
+
321
+
322
+
323
+ <IfModule logio_module>
324
+
325
+ # You need to enable mod_logio.c to use %I and %O
326
+
327
+ LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
328
+
329
+ </IfModule>
330
+
331
+
332
+
333
+ <VirtualHost>
334
+
335
+ CustomLog "logs/access_log" combined
336
+
337
+ </IfModule>
338
+
339
+
340
+
341
+ <IfModule alias_module>
342
+
343
+ ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
344
+
345
+ </IfModule>
346
+
347
+ <Directory "/var/www/cgi-bin">
348
+
349
+ AllowOverride all
350
+
351
+ Options ExecCGI
352
+
353
+ Require all granted
354
+
355
+ </Directory>
356
+
357
+ <IfModule mime_module>
358
+
359
+ TypesConfig /etc/mime.types
360
+
361
+ AddType application/x-compress .Z
362
+
363
+ AddType application/x-gzip .gz .tgz
364
+
365
+ AddType text/html .shtml
366
+
367
+ AddOutputFilter INCLUDES .shtml
368
+
369
+ </IfModule>
370
+
371
+ AddDefaultCharset UTF-8
372
+
373
+ <IfModule mime_magic_module>
374
+
375
+ MIMEMagicFile conf/magic
376
+
377
+ </IfModule>
378
+
379
+ EnableSendfile on
380
+
381
+ IncludeOptional conf.d/*.conf
382
+
383
+ ```

4

訂正

2018/09/26 06:23

投稿

trm
trm

スコア117

test CHANGED
File without changes
test CHANGED
@@ -4,206 +4,238 @@
4
4
 
5
5
  index.htmlは以下のコードです。
6
6
 
7
+ ```html
8
+
9
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
10
+
11
+ <html>
12
+
13
+ <head>
14
+
15
+ <title>Eurasia</title>
16
+
17
+ <meta http-equiv="content-type" content="text/html; charset=Shift_JIS">
18
+
19
+ </head>
20
+
21
+
22
+
23
+ <body bgcolor="#000066" text="#000000" link="#0000ee" alink="#0000ee" vlink="#551a8b">
24
+
25
+ <font color="#ff0000"><big><big><big>現在ウェブ店舗作成中<br>ご利用までにはしばらく<br>お待ちください。<br>
26
+
27
+ <br>
28
+
29
+ ユーラシア(TRM出版)</big></big></big></font><font color="#ff0000"><big><big><big><br>
30
+
31
+ </big></big></big></font><font color="#ffffff">年会費×,×××円で本(実物商品)がネットで販売できる!販売手数料は××%、××%割引販売、他CD・DVD・ソフトウェア・ビデオゲームも販売できます!電子ファイルは年会費○円で○○○○手数料だけいただきます。<br><br>
32
+
33
+ </font><a href="http:/trm7.mydns.jp/cgi-bin/b1.cgi"><img src="http://trm7.mydns.jp/buhin/btn056_09_4.gif"
34
+
35
+ alt="http://trm7.mydns.jp/cgi-bin/b1.cgi" width="180" height="30">
36
+
37
+   <br>
38
+
39
+ </a><a href="http://trm7.mydns.jp/cgi-bin/b2.cgi"><img src="http://trm7.mydns.jp/buhin/btn056_09_5.gif"
40
+
41
+ alt="http://trm7.mydns.jp/cgi-bin/b2.cgi" width="180" height="30">
42
+
43
+   <br>
44
+
45
+ </a><a href="http://trm7.mydns.jp/cgi-bin/60a11.cgi"><img src="http://trm7.mydns.jp/buhin/btn056_09_6.gif"
46
+
47
+ alt="http://trm7.mydns.jp/cgi-bin/60a11.cgi" width="180" height="30">
48
+
49
+   <br>
50
+
51
+ </a><a href="http://trm7.mydns.jp/cgi-bin/c1.cgi"><img src="http://trm7.mydns.jp/buhin/btn056_09_7.gif"
52
+
53
+ alt="http://trm7.mydns.jp/cgi-bin/c1.cgi" width="180" height="30">
54
+
55
+   <br>
56
+
57
+ </a>
58
+
59
+ </body>
60
+
61
+ </html>
62
+
63
+ ```
64
+
65
+ b1.cgiは以下のコードです。
66
+
7
67
  ```perl
8
68
 
9
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
10
-
11
- <html>
12
-
13
- <head>
14
-
15
- <title>Eurasia</title>
16
-
17
- <meta http-equiv="content-type" content="text/html; charset=Shift_JIS">
18
-
19
- </head>
20
-
21
-
22
-
23
- <body bgcolor="#000066" text="#000000" link="#0000ee" alink="#0000ee" vlink="#551a8b">
24
-
25
- <font color="#ff0000"><big><big><big>現在ウェブ店舗作成中<br>ご利用までにはしばらく<br>お待ちください。<br>
26
-
27
- <br>
28
-
29
- ユーラシ(TRM出版)</big></big></big></font><font color="#ff0000"><big><big><big><br>
30
-
31
- </big></big></big></font><font color="#ffffff">年会費×,×××円で本(実物商品)がネットで販売できる!販売手数料は××%、××%割引販売、他CD・DVD・ソフトウェア・ビデオゲームも販売できます!電子ファイルは年会費○円で○○○○手数料だけいただきます。<br><br>
32
-
33
- </font><a href="http:/trm7.mydns.jp/cgi-bin/b1.cgi"><img src="http://trm7.mydns.jp/buhin/btn056_09_4.gif"
34
-
35
- alt="http://trm7.mydns.jp/cgi-bin/b1.cgi" width="180" height="30">
36
-
37
-   <br>
38
-
39
- </a><a href="http://trm7.mydns.jp/cgi-bin/b2.cgi"><img src="http://trm7.mydns.jp/buhin/btn056_09_5.gif"
40
-
41
- alt="http://trm7.mydns.jp/cgi-bin/b2.cgi" width="180" height="30">
42
-
43
-   <br>
44
-
45
- </a><a href="http://trm7.mydns.jp/cgi-bin/60a11.cgi"><img src="http://trm7.mydns.jp/buhin/btn056_09_6.gif"
46
-
47
- alt="http://trm7.mydns.jp/cgi-bin/60a11.cgi" width="180" height="30">
48
-
49
-   <br>
50
-
51
- </a><a href="http://trm7.mydns.jp/cgi-bin/c1.cgi"><img src="http://trm7.mydns.jp/buhin/btn056_09_7.gif"
52
-
53
- alt="http://trm7.mydns.jp/cgi-bin/c1.cgi" width="180" height="30">
54
-
55
-   <br>
56
-
57
- </a>
69
+ #!/usr/bin/perl
70
+
71
+ use strict;
72
+
73
+ use utf8;
74
+
75
+ binmode(STDOUT,":utf8");
76
+
77
+
78
+
79
+ print "Content-type: text/html\n\n";
80
+
81
+ print <<"HTML";
82
+
83
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
84
+
85
+ <html>
86
+
87
+ <head>
88
+
89
+ <title>ユーザーカウント登録(お客様)</title>
90
+
91
+ </head>
92
+
93
+ <body>
94
+
95
+
96
+
97
+ <form action="b2.cgi">
98
+
99
+ <table>
100
+
101
+ <tr>
102
+
103
+ <td>希望ユーザーID:</td>
104
+
105
+ <td><input type="text" name="kokyakuID" size="40" maxlength="30"></td>
106
+
107
+ </tr>
108
+
109
+ <tr>
110
+
111
+ <td>希望パスワード:</td>
112
+
113
+ <td><input type="password" name="kokyakupass" size="40" maxlength="30"></td>
114
+
115
+ </tr>
116
+
117
+ <tr>
118
+
119
+ <td>パスワード確認:</td>
120
+
121
+ <td><input type="password" name="kokyakupass2" size="40" maxlength="30"></td>
122
+
123
+ </tr>
124
+
125
+ <tr>
126
+
127
+ <td>氏名:</td>
128
+
129
+ <td><input type="text" name="kokyakushimei" size="40" maxlength="30"></td>
130
+
131
+ </tr>
132
+
133
+ <tr>
134
+
135
+ <td>〒:</td>
136
+
137
+ <td><input type="text" name="kokyakuyuubinbangou" size="40" maxlength="30"></td>
138
+
139
+ </tr>
140
+
141
+ <tr>
142
+
143
+ <td>住所:</td>
144
+
145
+ <td><input type="text" name="kokyakujuusyo" size="40" maxlength="30"></td>
146
+
147
+ </tr>
148
+
149
+ <tr>
150
+
151
+ <td>メールアドレス:</td>
152
+
153
+ <td><input type=""text"" name="kokyakumail" size="40" maxlength="30"></td>
154
+
155
+ </tr>
156
+
157
+ <tr>
158
+
159
+ <td><textarea name="kokyakumojijouhou" rows="4" cols="40" readonly></textarea><br></td>
160
+
161
+ </tr>
162
+
163
+ <tr>
164
+
165
+ <th>
166
+
167
+ <input type="submit" onclick="location.href'b2.cgi'" value="送信">
168
+
169
+ <input type="reset" value="リセット"></th><td></td>
170
+
171
+ </tr>
172
+
173
+
174
+
175
+
176
+
177
+ </table>
178
+
179
+ </tbody>
180
+
181
+ </form>
182
+
183
+ <br>
184
+
185
+ <br>
58
186
 
59
187
  </body>
60
188
 
61
189
  </html>
62
190
 
191
+ HTML
192
+
193
+ exit;
194
+
195
+
196
+
197
+
198
+
199
+
200
+
201
+
202
+
203
+
204
+
205
+
206
+
207
+ # <tr>
208
+
209
+ # <td>このサイトについてご意見を書いて下さい</td>
210
+
211
+ # <td><textarea name="mess" cols="40" rows="5"></textarea></td>
212
+
213
+ # </tr>
214
+
215
+ #</table>
216
+
217
+ #</form>
218
+
219
+ #</body>
220
+
221
+ #</html>
222
+
223
+ #HTML
224
+
225
+ #
226
+
227
+ #exit;
228
+
63
229
  ```
64
230
 
65
- b1.cgiは以下のコードです。
66
-
67
- ```perl
68
-
69
- #!/usr/bin/perl
70
-
71
- binmode(STDOUT,":utf8");
72
-
73
-
74
-
75
- use strict;
76
-
77
- use utf8;
78
-
79
-
80
-
81
- print "Content-type: text/html\n\n";
82
-
83
- print <<"HTML";
84
-
85
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
86
-
87
- <html>
88
-
89
- <head>
90
-
91
- <title>ユーザーアカウント登録(お客様)</title>
92
-
93
- </head>
94
-
95
- <body>
96
-
97
-
98
-
99
- <form action="b2.cgi">
100
-
101
- <table>
102
-
103
- <tr>
104
-
105
- <td>希望ユーザーID:</td>
106
-
107
- <td><input type="text" name="kokyakuID" size="40" maxlength="30"></td>
108
-
109
- </tr>
110
-
111
- <tr>
112
-
113
- <td>希望パスワード:</td>
114
-
115
- <td><input type="password" name="kokyakupass" size="40" maxlength="30"></td>
116
-
117
- </tr>
118
-
119
- <tr>
120
-
121
- <td>パスワード確認:</td>
122
-
123
- <td><input type="password" name="kokyakupass2" size="40" maxlength="30"></td>
124
-
125
- </tr>
126
-
127
- <tr>
128
-
129
- <td>氏名:</td>
130
-
131
- <td><input type="text" name="kokyakushimei" size="40" maxlength="30"></td>
132
-
133
- </tr>
134
-
135
- <tr>
136
-
137
- <td>〒:</td>
138
-
139
- <td><input type="text" name="kokyakuyuubinbangou" size="40" maxlength="30"></td>
140
-
141
- </tr>
142
-
143
- <tr>
144
-
145
- <td>住所:</td>
146
-
147
- <td><input type="text" name="kokyakujuusyo" size="40" maxlength="30"></td>
148
-
149
- </tr>
150
-
151
- <tr>
152
-
153
- <td>メールアドレス:</td>
154
-
155
- <td><input type=""text"" name="kokyakumail" size="40" maxlength="30"></td>
156
-
157
- </tr>
158
-
159
- <tr>
160
-
161
- <td><textarea name="kokyakumojijouhou" rows="4" cols="40" readonly></textarea><br></td>
162
-
163
- </tr>
164
-
165
- <tr>
166
-
167
- <th>
168
-
169
- <input type="submit" onclick="location.href'b2.cgi'" value="送信">
170
-
171
- <input type="reset" value="リセット"></th><td></td>
172
-
173
- </tr>
174
-
175
-
176
-
177
-
178
-
179
- </table>
180
-
181
- </tbody>
182
-
183
- </form>
184
-
185
- <br>
186
-
187
- <br>
188
-
189
- </body>
190
-
191
- </html>
192
-
193
- HTML
194
-
195
- exit;
231
+ CentOS7のエラーログは以下の通りです。
232
+
233
+ ```error_log
234
+
235
+ [Wed Sep 26 07:53:45.819439 2018] [cgi:error] [pid 2596] [client 2400:4050:a1:6200:d253:49ff:fe36:e025:35307] AH01215: (2)No such file or directory: exec of '/var/www/cgi-bin/b1.cgi' failed, referer: http://trm7.mydns.jp/
236
+
237
+ [Wed Sep 26 07:53:45.831447 2018] [cgi:error] [pid 2596] [client 2400:4050:a1:6200:d253:49ff:fe36:e025:35307] End of script output before headers: b1.cgi, referer: http://trm7.mydns.jp/
196
238
 
197
239
  ```
198
240
 
199
- CentOS7のエラーログは以下の通りです。
200
-
201
- ```error_log
202
-
203
- [Wed Sep 26 07:53:45.819439 2018] [cgi:error] [pid 2596] [client 2400:4050:a1:6200:d253:49ff:fe36:e025:35307] AH01215: (2)No such file or directory: exec of '/var/www/cgi-bin/b1.cgi' failed, referer: http://trm7.mydns.jp/
204
-
205
- [Wed Sep 26 07:53:45.831447 2018] [cgi:error] [pid 2596] [client 2400:4050:a1:6200:d253:49ff:fe36:e025:35307] End of script output before headers: b1.cgi, referer: http://trm7.mydns.jp/
206
-
207
- ```
208
-
209
241
  どこが間違っているのかご指摘よろしくお願い致します。

3

訂正

2018/09/26 05:12

投稿

trm
trm

スコア117

test CHANGED
File without changes
test CHANGED
@@ -28,7 +28,7 @@
28
28
 
29
29
  ユーラシア(TRM出版)</big></big></big></font><font color="#ff0000"><big><big><big><br>
30
30
 
31
- </big></big></big></font><font color="#ffffff">年会費1,500円で本(実物商品)がネットで販売できる!販売手数料は20%、10%割引販売、他CD・DVD・ソフトウェア・ビデオゲームも販売できます!電子ファイルは年会費円でわずかな手数料だけいただきます。<br><br>
31
+ </big></big></big></font><font color="#ffffff">年会費×,×××円で本(実物商品)がネットで販売できる!販売手数料は××%、××%割引販売、他CD・DVD・ソフトウェア・ビデオゲームも販売できます!電子ファイルは年会費円で○○○○手数料だけいただきます。<br><br>
32
32
 
33
33
  </font><a href="http:/trm7.mydns.jp/cgi-bin/b1.cgi"><img src="http://trm7.mydns.jp/buhin/btn056_09_4.gif"
34
34
 

2

訂正

2018/09/26 00:26

投稿

trm
trm

スコア117

test CHANGED
File without changes
test CHANGED
@@ -30,27 +30,27 @@
30
30
 
31
31
  </big></big></big></font><font color="#ffffff">年会費1,500円で本(実物商品)がネットで販売できる!販売手数料は20%、10%割引販売、他CD・DVD・ソフトウェア・ビデオゲームも販売できます!電子ファイルは年会費0円でわずかな手数料だけいただきます。<br><br>
32
32
 
33
- </font><a href="http://127.0.0.1/cgi-bin/b1.cgi"><img src="http://127.0.0.1/buhin/btn056_09_4.gif"
33
+ </font><a href="http:/trm7.mydns.jp/cgi-bin/b1.cgi"><img src="http://trm7.mydns.jp/buhin/btn056_09_4.gif"
34
-
34
+
35
- alt="http://127.0.0.1/cgi-bin/b1.cgi" width="180" height="30">
35
+ alt="http://trm7.mydns.jp/cgi-bin/b1.cgi" width="180" height="30">
36
-
36
+
37
-   <br>
37
+   <br>
38
-
38
+
39
- </a><a href="http://127.0.0.1/cgi-bin/b2.cgi"><img src="http://127.0.0.1/buhin/btn056_09_5.gif"
39
+ </a><a href="http://trm7.mydns.jp/cgi-bin/b2.cgi"><img src="http://trm7.mydns.jp/buhin/btn056_09_5.gif"
40
-
40
+
41
- alt="http://127.0.0.1/cgi-bin/b2.cgi" width="180" height="30">
41
+ alt="http://trm7.mydns.jp/cgi-bin/b2.cgi" width="180" height="30">
42
-
42
+
43
-   <br>
43
+   <br>
44
-
44
+
45
- </a><a href="http://127.0.0.1/cgi-bin/60a11.cgi"><img src="http://127.0.0.1/buhin/btn056_09_6.gif"
45
+ </a><a href="http://trm7.mydns.jp/cgi-bin/60a11.cgi"><img src="http://trm7.mydns.jp/buhin/btn056_09_6.gif"
46
-
46
+
47
- alt="http://127.0.0.1/cgi-bin/60a11.cgi" width="180" height="30">
47
+ alt="http://trm7.mydns.jp/cgi-bin/60a11.cgi" width="180" height="30">
48
-
48
+
49
-   <br>
49
+   <br>
50
-
50
+
51
- </a><a href="http://127.0.0.1/cgi-bin/c1.cgi"><img src="http://127.0.0.1/buhin/btn056_09_7.gif"
51
+ </a><a href="http://trm7.mydns.jp/cgi-bin/c1.cgi"><img src="http://trm7.mydns.jp/buhin/btn056_09_7.gif"
52
-
52
+
53
- alt="http://127.0.0.1/cgi-bin/c1.cgi" width="180" height="30">
53
+ alt="http://trm7.mydns.jp/cgi-bin/c1.cgi" width="180" height="30">
54
54
 
55
55
    <br>
56
56
 

1

訂正

2018/09/25 23:56

投稿

trm
trm

スコア117

test CHANGED
File without changes
test CHANGED
@@ -200,20 +200,6 @@
200
200
 
201
201
  ```error_log
202
202
 
203
- [Wed Sep 26 07:24:25.225757 2018] [cgi:error] [pid 7426] [client 2400:4050:a1:6200:d253:49ff:fe36:e025:45542] AH01215: (2)No such file or directory: exec of '/var/www/cgi-bin/b1.cgi' failed, referer: http://trm7.mydns.jp/
204
-
205
- [Wed Sep 26 07:24:25.284599 2018] [cgi:error] [pid 7426] [client 2400:4050:a1:6200:d253:49ff:fe36:e025:45542] End of script output before headers: b1.cgi, referer: http://trm7.mydns.jp/
206
-
207
- [Wed Sep 26 07:27:41.863493 2018] [suexec:notice] [pid 1331] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
208
-
209
- [Wed Sep 26 07:27:42.893711 2018] [auth_digest:notice] [pid 1331] AH01757: generating secret for digest authentication ...
210
-
211
- [Wed Sep 26 07:27:42.894600 2018] [lbmethod_heartbeat:notice] [pid 1331] AH02282: No slotmem from mod_heartmonitor
212
-
213
- [Wed Sep 26 07:27:42.902731 2018] [mpm_prefork:notice] [pid 1331] AH00163: Apache/2.4.6 (CentOS) mod_auth_kerb/5.4 mod_nss/2.4.6 NSS/3.15.4 Basic ECC mod_wsgi/3.4 Python/2.7.5 configured -- resuming normal operations
214
-
215
- [Wed Sep 26 07:27:42.902768 2018] [core:notice] [pid 1331] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
216
-
217
203
  [Wed Sep 26 07:53:45.819439 2018] [cgi:error] [pid 2596] [client 2400:4050:a1:6200:d253:49ff:fe36:e025:35307] AH01215: (2)No such file or directory: exec of '/var/www/cgi-bin/b1.cgi' failed, referer: http://trm7.mydns.jp/
218
204
 
219
205
  [Wed Sep 26 07:53:45.831447 2018] [cgi:error] [pid 2596] [client 2400:4050:a1:6200:d253:49ff:fe36:e025:35307] End of script output before headers: b1.cgi, referer: http://trm7.mydns.jp/