質問編集履歴
3
エラーに表示されているhttpd\.confの該当箇所の追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -106,7 +106,7 @@
|
|
106
106
|
|
107
107
|
|
108
108
|
|
109
|
-
apacheのログに関しては、以下の様に出ております。
|
109
|
+
apacheのログに関しては、最新のところが以下の様に出ております。
|
110
110
|
|
111
111
|
|
112
112
|
|
@@ -146,6 +146,28 @@
|
|
146
146
|
|
147
147
|
|
148
148
|
|
149
|
+
エラーメッセージにでている `/etc/httpd/conf/httpd.conf` の419行目ですが、以下のようなディレクティブが続いています。
|
150
|
+
|
151
|
+
```
|
152
|
+
|
153
|
+
<VirtualHost *:443>
|
154
|
+
|
155
|
+
SSLEngine on
|
156
|
+
|
157
|
+
ServerName my_domain.net
|
158
|
+
|
159
|
+
ServerAlias www.my_domain.net
|
160
|
+
|
161
|
+
DocumentRoot /path/to/my/www/doc/
|
162
|
+
|
163
|
+
CustomLog logs/my_domain-access_log combined
|
164
|
+
|
165
|
+
ErrorLog logs/my_domain-error_log (上述のhttpd_error_logのこと)
|
166
|
+
|
167
|
+
</VirtualHost>
|
168
|
+
|
169
|
+
```
|
170
|
+
|
149
171
|
|
150
172
|
|
151
173
|
よろしくお願いします。
|
2
ログの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -106,4 +106,46 @@
|
|
106
106
|
|
107
107
|
|
108
108
|
|
109
|
+
apacheのログに関しては、以下の様に出ております。
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
```
|
114
|
+
|
115
|
+
# httpd_error_log
|
116
|
+
|
117
|
+
[Sat Jan 28 03:02:49.229090 2017] [ssl:emerg] [pid 23700] AH02240: Server should be SSL-aware but has no certificate configured [Hint: SSLCertificateFile] (/etc/httpd/conf/httpd.conf:419)
|
118
|
+
|
119
|
+
[Sat Jan 28 03:03:21.043074 2017] [ssl:emerg] [pid 23755] AH02240: Server should be SSL-aware but has no certificate configured [Hint: SSLCertificateFile] (/etc/httpd/conf/httpd.conf:419)
|
120
|
+
|
121
|
+
[Sat Jan 28 03:03:59.848238 2017] [ssl:emerg] [pid 1120] AH02240: Server should be SSL-aware but has no certificate configured [Hint: SSLCertificateFile] (/etc/httpd/conf/httpd.conf:419)
|
122
|
+
|
123
|
+
[Sat Jan 28 03:04:34.333542 2017] [ssl:emerg] [pid 2719] AH02240: Server should be SSL-aware but has no certificate configured [Hint: SSLCertificateFile] (/etc/httpd/conf/httpd.conf:419)
|
124
|
+
|
125
|
+
[Sat Jan 28 03:06:14.654515 2017] [ssl:emerg] [pid 2796] AH02240: Server should be SSL-aware but has no certificate configured [Hint: SSLCertificateFile] (/etc/httpd/conf/httpd.conf:419)
|
126
|
+
|
127
|
+
[Sat Jan 28 03:07:55.335009 2017] [ssl:emerg] [pid 2865] AH02240: Server should be SSL-aware but has no certificate configured [Hint: SSLCertificateFile] (/etc/httpd/conf/httpd.conf:419)
|
128
|
+
|
129
|
+
[Sat Jan 28 03:09:16.934538 2017] [ssl:emerg] [pid 2940] AH02240: Server should be SSL-aware but has no certificate configured [Hint: SSLCertificateFile] (/etc/httpd/conf/httpd.conf:419)
|
130
|
+
|
131
|
+
[Sat Jan 28 03:11:41.539592 2017] [ssl:emerg] [pid 3020] AH02240: Server should be SSL-aware but has no certificate configured [Hint: SSLCertificateFile] (/etc/httpd/conf/httpd.conf:419)
|
132
|
+
|
133
|
+
[Sat Jan 28 03:16:12.647846 2017] [ssl:emerg] [pid 3160] AH02240: Server should be SSL-aware but has no certificate configured [Hint: SSLCertificateFile] (/etc/httpd/conf/httpd.conf:419)
|
134
|
+
|
135
|
+
[Sat Jan 28 03:26:53.674303 2017] [ssl:emerg] [pid 3417] AH02240: Server should be SSL-aware but has no certificate configured [Hint: SSLCertificateFile] (/etc/httpd/conf/httpd.conf:419)
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
# ssl_error_log
|
140
|
+
|
141
|
+
[Sat Jan 28 02:01:15.643699 2017] [ssl:warn] [pid 10363] AH01909: RSA certificate configured for ***:***:***:***:***:***:443 does NOT include an ID which matches the server name
|
142
|
+
|
143
|
+
[Sat Jan 28 02:01:15.643699 2017] [ssl:warn] [pid 10363] AH01909: RSA certificate configured for ***:***:***:***:***:***:443 does NOT include an ID which matches the server name
|
144
|
+
|
145
|
+
```
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
|
109
151
|
よろしくお願いします。
|
1
タグの付与、書式の改善
test
CHANGED
File without changes
|
test
CHANGED
@@ -12,7 +12,27 @@
|
|
12
12
|
|
13
13
|
# 経緯
|
14
14
|
|
15
|
-
既存の個人サイトをhttps対応にさせたくて、
|
15
|
+
既存の個人サイトをhttps対応にさせたくて、
|
16
|
+
|
17
|
+
- [http://knowledge.sakura.ad.jp/knowledge/5573/](http://knowledge.sakura.ad.jp/knowledge/5573/)
|
18
|
+
|
19
|
+
- [http://weblabo.oscasierra.net/letsencrypt-2/](http://weblabo.oscasierra.net/letsencrypt-2/)
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
などを参考に、Let's Encryptの証明書の発行を行ったのち、
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
- `/etc/httpd/conf/httpd.conf`
|
30
|
+
|
31
|
+
- `/etc/httpd/conf.d/ssl.conf`
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
に証明書ファイルの場所やバーチャルホストの設定を書き加えたのですが、いざapacheを `sudo systemctl restart httpd` としたところ、起動しなくなってしまいました。
|
16
36
|
|
17
37
|
```
|
18
38
|
|
@@ -26,7 +46,7 @@
|
|
26
46
|
|
27
47
|
|
28
48
|
|
29
|
-
設定ファイルのSyntax errorを疑って `apachectl configtest`
|
49
|
+
設定ファイルのSyntax errorを疑って `apachectl configtest` としたところ、Syntnax errorで「証明書ファイルが見つからない」と言われたのですが、それは証明書ファイルのあるディレクトリパーミッションが適切ではないことが原因だったようで、それを直して `Syntax OK` となったのですが、まだ起動しません。
|
30
50
|
|
31
51
|
|
32
52
|
|