質問編集履歴

1

説明追加

2017/02/22 03:48

投稿

hyskyo
hyskyo

スコア79

test CHANGED
File without changes
test CHANGED
@@ -7,3 +7,115 @@
7
7
  これはどうしたらいいですか?
8
8
 
9
9
  httpがhttpsになったことで表示されなくなったと思いますがどうしたら https://example.comでも正常に表示されるようにできますか?
10
+
11
+
12
+
13
+
14
+
15
+ httpd.confファイルは下記です.
16
+
17
+
18
+
19
+ ```
20
+
21
+ #Listen 12.34.56.78:80
22
+
23
+ Listen 80
24
+
25
+
26
+
27
+
28
+
29
+ <VirtualHost *:80>
30
+
31
+ ServerAdmin http://example.jp
32
+
33
+ DocumentRoot /var/www/html/bugzilla
34
+
35
+ <Directory /var/www/html/bugzilla/>
36
+
37
+ AddHandler cgi-script .cgi
38
+
39
+ Options +Indexes +ExecCGI +FollowSymLinks
40
+
41
+ DirectoryIndex index.cgi
42
+
43
+ AllowOverride all
44
+
45
+ Order allow,deny
46
+
47
+ Allow from all
48
+
49
+ </Directory>
50
+
51
+ ServerSignature On
52
+
53
+ </VirtualHost>
54
+
55
+ <VirtualHost *:443>
56
+
57
+ ServerName example.jp
58
+
59
+ DocumentRoot "/var/www/html"
60
+
61
+
62
+
63
+ SSLEngine on
64
+
65
+ SSLHonorCipherOrder on
66
+
67
+ Header set Strict-Transport-Security "max-age=31536000; includeSubDomains"
68
+
69
+ SSLProtocol -All +TLSv1 +TLSv1.1 +TLSv1.2
70
+
71
+ SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5
72
+
73
+
74
+
75
+ SSLCertificateFile /etc/letsencrypt/live/example.jp/cert.pem
76
+
77
+ SSLCertificateKeyFile /etc/letsencrypt/live/example.jp/privkey.pem
78
+
79
+ SSLCertificateChainFile /etc/letsencrypt/live/example.jp/chain.pem
80
+
81
+
82
+
83
+ <Directory “/var/www/html”>
84
+
85
+ Options FollowSymLinks
86
+
87
+ AllowOverride None
88
+
89
+ Require all granted
90
+
91
+ </Directory>
92
+
93
+
94
+
95
+ SetEnvIf Request_URI "\.(gif|jpg|png|css|js)$" nolog
96
+
97
+ ErrorLog logs/error_log
98
+
99
+ CustomLog logs/access_log combined env=!nolog
100
+
101
+ </VirtualHost>
102
+
103
+ <IfModule mod_ssl.c>
104
+
105
+ # If you add NameVirtualHost *:443 here, you will also have to change
106
+
107
+ # the VirtualHost statement in /etc/apache2/sites-available/default-ssl
108
+
109
+ # to <VirtualHost *:443>
110
+
111
+ # Server Name Indication for SSL named virtual hosts is currently not
112
+
113
+ # supported by MSIE on Windows XP.
114
+
115
+ # !important below!
116
+
117
+ NameVirtualHost *:443
118
+
119
+ </IfModule>
120
+
121
+ ```