質問編集履歴
2
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -56,7 +56,9 @@
|
|
56
56
|
|
57
57
|
</VirtualHost>
|
58
58
|
|
59
|
+
|
60
|
+
|
59
|
-
|
61
|
+
//コマンドを実行
|
60
62
|
|
61
63
|
# systemctl restart httpd
|
62
64
|
|
@@ -66,6 +68,8 @@
|
|
66
68
|
|
67
69
|
# systemctl restart httpd
|
68
70
|
|
71
|
+
```
|
72
|
+
|
69
73
|
|
70
74
|
|
71
75
|
よろしくお願いいたします。
|
1
SSL化前の方法を記述
test
CHANGED
File without changes
|
test
CHANGED
@@ -32,4 +32,40 @@
|
|
32
32
|
|
33
33
|
|
34
34
|
|
35
|
+
また、SSL化前の操作は以下の通りです。
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
・ファイアウォールの設定でhttpsを加える
|
40
|
+
|
41
|
+
firewall-cmd --permanent --add-service=https --zone=public
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
・httpd.confに下記内容を記述し、SSL証明書をインストール
|
46
|
+
|
47
|
+
```httpd.conf
|
48
|
+
|
49
|
+
<VirtualHost *:80>
|
50
|
+
|
51
|
+
ServerAdmin root@example.com
|
52
|
+
|
53
|
+
DocumentRoot /var/www/html/laravel/public
|
54
|
+
|
55
|
+
ServerName example.com
|
56
|
+
|
57
|
+
</VirtualHost>
|
58
|
+
|
59
|
+
```
|
60
|
+
|
61
|
+
# systemctl restart httpd
|
62
|
+
|
63
|
+
# yum install mod_ssl
|
64
|
+
|
65
|
+
# certbot --apache -d example.com
|
66
|
+
|
67
|
+
# systemctl restart httpd
|
68
|
+
|
69
|
+
|
70
|
+
|
35
71
|
よろしくお願いいたします。
|