質問編集履歴

4

ssl.confで指定されたerror.logの追加

2020/11/27 05:43

投稿

youplus40
youplus40

スコア19

test CHANGED
File without changes
test CHANGED
@@ -116,7 +116,7 @@
116
116
 
117
117
  ```log
118
118
 
119
- //error.log
119
+ //error.log (httpd.confで指定されているlog)
120
120
 
121
121
  AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
122
122
 
@@ -124,6 +124,18 @@
124
124
 
125
125
 
126
126
 
127
+ ```log
128
+
129
+ //error.log (ssl.confで指定されているlog
130
+
131
+ [ssl:emerg] [pid 556664] SSL Library Error: error:140AD009:SSL routines:SSL_CTX_use_certificate_file:PEM lib
132
+
133
+ ```
134
+
135
+
136
+
137
+
138
+
127
139
  ### 該当のソースコード
128
140
 
129
141
 

3

ssl.confの追加

2020/11/27 05:43

投稿

youplus40
youplus40

スコア19

test CHANGED
File without changes
test CHANGED
@@ -472,7 +472,63 @@
472
472
 
473
473
  ```
474
474
 
475
-
475
+ ```conf
476
+
477
+ #ssl.conf
478
+
479
+ LoadModule ssl_module modules/mod_ssl.so
480
+
481
+
482
+
483
+ Listen 443
484
+
485
+
486
+
487
+ AddType application/x-x509-ca-cert .crt
488
+
489
+ AddType application/x-pkcs7-crl .crl
490
+
491
+
492
+
493
+ SSLPassPhraseDialog builtin
494
+
495
+
496
+
497
+ #SSLSessionCache dc:UNIX:/var/cache/mod_ssl/distcache
498
+
499
+ SSLSessionCache shmcb:/var/cache/mod_ssl/scache(512000)
500
+
501
+ SSLSessionCacheTimeout 300
502
+
503
+
504
+
505
+ SSLMutex default
506
+
507
+
508
+
509
+ SSLRandomSeed startup file:/dev/urandom 256
510
+
511
+ SSLRandomSeed connect builtin
512
+
513
+
514
+
515
+ SSLCryptoDevice builtin
516
+
517
+
518
+
519
+ SSLProtocol all -SSLv2 -SSLv3
520
+
521
+ SSLCipherSuite RSA+xxx
522
+
523
+
524
+
525
+ SSLCertificateKeyFile /etc/httpd/conf/certs/wildcard.bb-f.net_2020.key.pem
526
+
527
+ SSLCertificateFile /etc/httpd/conf/certs/wildcard.bb-f.net_2020.crt
528
+
529
+ SSLCertificateChainFile /etc/httpd/conf/certs/FujiSSxxx.ca
530
+
531
+ ```
476
532
 
477
533
  ### 補足情報(FW/ツールのバージョンなど)
478
534
 

2

バージョンの追加など

2020/11/27 05:21

投稿

youplus40
youplus40

スコア19

test CHANGED
File without changes
test CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  systemctl restart httpdを実行したところ、エラーになりました。
10
10
 
11
-
11
+ 何が原因か分からず、困っております。
12
12
 
13
13
 
14
14
 
@@ -52,13 +52,13 @@
52
52
 
53
53
 
54
54
 
55
- Nov 27 11:44:53 web06.at-scelta.com systemd[1]: Starting The Apache HTTP Server...
55
+ Nov 27 11:44:53 web06.xx.com systemd[1]: Starting The Apache HTTP Server...
56
-
56
+
57
- Nov 27 11:44:53 web06.at-scelta.com systemd[1]: httpd.service: Main process exited, code=exi>
57
+ Nov 27 11:44:53 web06.xx.com systemd[1]: httpd.service: Main process exited, code=exi>
58
-
58
+
59
- Nov 27 11:44:53 web06.at-scelta.com systemd[1]: httpd.service: Failed with result 'exit-code>
59
+ Nov 27 11:44:53 web06.xx.com systemd[1]: httpd.service: Failed with result 'exit-code>
60
-
60
+
61
- Nov 27 11:44:53 web06.at-scelta.com systemd[1]: Failed to start The Apache HTTP Server.
61
+ Nov 27 11:44:53 web06.xx.com systemd[1]: Failed to start The Apache HTTP Server.
62
62
 
63
63
  ```
64
64
 
@@ -72,13 +72,13 @@
72
72
 
73
73
  -- The start-up result is done.
74
74
 
75
- Nov 27 11:44:34 web06.at-scelta.com postfix/smtpd[556608]: connect from unknown[193.169.254.107]>
75
+ Nov 27 11:44:34 web06.xx.com postfix/smtpd[556608]: connect from unknown[193.169.254.107]>
76
-
76
+
77
- Nov 27 11:44:35 web06.at-scelta.com postfix/smtpd[556608]: lost connection after AUTH from unknown[193.169.254.107]>
77
+ Nov 27 11:44:35 web06.xx.com postfix/smtpd[556608]: lost connection after AUTH from unknown[193.169.254.107]>
78
-
78
+
79
- Nov 27 11:44:35 web06.at-scelta.com postfix/smtpd[556608]: disconnect from unknown[193.169.2254.107] ehlo=1 auth=0/1 commands=1/2>
79
+ Nov 27 11:44:35 web06.xx.com postfix/smtpd[556608]: disconnect from unknown[193.169.2254.107] ehlo=1 auth=0/1 commands=1/2>
80
-
80
+
81
- Nov 27 11:44:53 web06.at-scelta.com systemd[1]: Starting The Apache HTTP Server...
81
+ Nov 27 11:44:53 web06.xx.com systemd[1]: Starting The Apache HTTP Server...
82
82
 
83
83
  -- Subject: Unit httpd.service has begun start-up
84
84
 
@@ -90,11 +90,11 @@
90
90
 
91
91
  -- Unit httpd.service has begun starting up.
92
92
 
93
- Nov 27 11:44:53 web06.at-scelta.com systemd[1]: httpd.service: Main process exited, code=exited ,status=1/FAILURE
93
+ Nov 27 11:44:53 web06.xx.com systemd[1]: httpd.service: Main process exited, code=exited ,status=1/FAILURE
94
-
94
+
95
- Nov 27 11:44:53 web06.at-scelta.com systemd[1]: httpd.service: Failed with result 'exit-code'.
95
+ Nov 27 11:44:53 web06.xx.com systemd[1]: httpd.service: Failed with result 'exit-code'.
96
-
96
+
97
- Nov 27 11:44:53 web06.at-scelta.com systemd[1]: Failed to start The Apache HTTP Server.
97
+ Nov 27 11:44:53 web06.xx.com systemd[1]: Failed to start The Apache HTTP Server.
98
98
 
99
99
  -- Subject: Unit httpd.service has failed
100
100
 
@@ -472,16 +472,10 @@
472
472
 
473
473
  ```
474
474
 
475
- ### 試したこと
476
-
477
-
478
-
479
- ここに問題に対して試したことを記載してください。
480
-
481
475
 
482
476
 
483
477
  ### 補足情報(FW/ツールのバージョンなど)
484
478
 
485
-
486
-
487
- ここにより詳細な情報を記載してください。
479
+ apache 2.4.37
480
+
481
+ cent os 8.2

1

一部修正

2020/11/27 05:07

投稿

youplus40
youplus40

スコア19

test CHANGED
File without changes
test CHANGED
@@ -414,25 +414,25 @@
414
414
 
415
415
  # TEMP
416
416
 
417
- <DirectoryMatch "/home/www/abahouse.co.jp/www/data">
417
+ <DirectoryMatch "/home/www/xx.co.jp/www/data">
418
418
 
419
419
  Header set Pragma no-cache
420
420
 
421
421
  </DirectoryMatch>
422
422
 
423
- <VirtualHost abahouse.co.jp:443>
423
+ <VirtualHost xx.co.jp:443>
424
-
424
+
425
- ServerName abahouse.co.jp
425
+ ServerName xx.co.jp
426
426
 
427
427
 
428
428
 
429
429
  RewriteEngine On
430
430
 
431
- RewriteCond %{HTTP_HOST} ^www.abahouse.co.jp
431
+ RewriteCond %{HTTP_HOST} ^www.xx.co.jp
432
-
432
+
433
- # RewriteRule ^/(.*)$ https://abahouse.co.jp/$1 [R,NE,L]
433
+ # RewriteRule ^/(.*)$ https://xx.co.jp/$1 [R,NE,L]
434
-
434
+
435
- RewriteRule ^/(.*)$ http://abahouse.co.jp/$1 [R=302,NE,L]
435
+ RewriteRule ^/(.*)$ http://xx.co.jp/$1 [R=302,NE,L]
436
436
 
437
437
 
438
438
 
@@ -444,17 +444,17 @@
444
444
 
445
445
  RewriteCond %{SERVER_PORT} 443
446
446
 
447
- RewriteRule ^/(.*)$ http://abahouse.co.jp/$1 [R=302,NE,L]
447
+ RewriteRule ^/(.*)$ http://xx.co.jp/$1 [R=302,NE,L]
448
-
449
-
450
-
448
+
449
+
450
+
451
- ServerAdmin info@abahouse.co.jp
451
+ ServerAdmin info@xx.co.jp
452
-
452
+
453
- DocumentRoot "/home/www/abahouse.co.jp/www/data"
453
+ DocumentRoot "/home/www/xx.co.jp/www/data"
454
-
454
+
455
- CustomLog "|/usr/sbin/rotatelogs /home/www/abahouse.co.jp/www/log/access_log.%Y%m%d 86400 540" combined env=!no_log
455
+ CustomLog "|/usr/sbin/rotatelogs /home/www/xx.co.jp/www/log/access_log.%Y%m%d 86400 540" combined env=!no_log
456
-
456
+
457
- ErrorLog "|/usr/sbin/rotatelogs /home/www/abahouse.co.jp/www/log/error_log.%Y%m%d 86400 540"
457
+ ErrorLog "|/usr/sbin/rotatelogs /home/www/xx.co.jp/www/log/error_log.%Y%m%d 86400 540"
458
458
 
459
459
  LogLevel rewrite:trace1
460
460
 
@@ -462,11 +462,11 @@
462
462
 
463
463
  SSLEngine On
464
464
 
465
- SSLCertificateKeyFile /etc/httpd/conf/certs/abahouse.co.jp.key
465
+ SSLCertificateKeyFile /etc/httpd/conf/certs/xx.co.jp.key
466
-
466
+
467
- SSLCertificateFile /etc/httpd/conf/certs/abahouse.co.jp.crt
467
+ SSLCertificateFile /etc/httpd/conf/certs/xx.co.jp.crt
468
-
468
+
469
- SSLCertificateChainFile /etc/httpd/conf/certs/abahouse.co.jp.ca
469
+ SSLCertificateChainFile /etc/httpd/conf/certs/xx.co.jp.ca
470
470
 
471
471
  </VirtualHost>
472
472