質問編集履歴

1

説明追加

2017/02/22 03:48

投稿

hyskyo
hyskyo

スコア79

title CHANGED
File without changes
body CHANGED
@@ -2,4 +2,60 @@
2
2
 
3
3
  少し全体を説明しますと、先ず、AWS LinuxにBugzillaをインストールして、http://example.comでBugzillaが見れていましたがLet’s encryptを設定したら、https://example.comでBugzillaが見れなくなり、apacheのページ表示されるようになりました。
4
4
  これはどうしたらいいですか?
5
- httpがhttpsになったことで表示されなくなったと思いますがどうしたら https://example.comでも正常に表示されるようにできますか?
5
+ httpがhttpsになったことで表示されなくなったと思いますがどうしたら https://example.comでも正常に表示されるようにできますか?
6
+
7
+
8
+ httpd.confファイルは下記です.
9
+
10
+ ```
11
+ #Listen 12.34.56.78:80
12
+ Listen 80
13
+
14
+
15
+ <VirtualHost *:80>
16
+ ServerAdmin http://example.jp
17
+ DocumentRoot /var/www/html/bugzilla
18
+ <Directory /var/www/html/bugzilla/>
19
+ AddHandler cgi-script .cgi
20
+ Options +Indexes +ExecCGI +FollowSymLinks
21
+ DirectoryIndex index.cgi
22
+ AllowOverride all
23
+ Order allow,deny
24
+ Allow from all
25
+ </Directory>
26
+ ServerSignature On
27
+ </VirtualHost>
28
+ <VirtualHost *:443>
29
+ ServerName example.jp
30
+ DocumentRoot "/var/www/html"
31
+
32
+ SSLEngine on
33
+ SSLHonorCipherOrder on
34
+ Header set Strict-Transport-Security "max-age=31536000; includeSubDomains"
35
+ SSLProtocol -All +TLSv1 +TLSv1.1 +TLSv1.2
36
+ SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5
37
+
38
+ SSLCertificateFile /etc/letsencrypt/live/example.jp/cert.pem
39
+ SSLCertificateKeyFile /etc/letsencrypt/live/example.jp/privkey.pem
40
+ SSLCertificateChainFile /etc/letsencrypt/live/example.jp/chain.pem
41
+
42
+ <Directory “/var/www/html”>
43
+ Options FollowSymLinks
44
+ AllowOverride None
45
+ Require all granted
46
+ </Directory>
47
+
48
+ SetEnvIf Request_URI "\.(gif|jpg|png|css|js)$" nolog
49
+ ErrorLog logs/error_log
50
+ CustomLog logs/access_log combined env=!nolog
51
+ </VirtualHost>
52
+ <IfModule mod_ssl.c>
53
+ # If you add NameVirtualHost *:443 here, you will also have to change
54
+ # the VirtualHost statement in /etc/apache2/sites-available/default-ssl
55
+ # to <VirtualHost *:443>
56
+ # Server Name Indication for SSL named virtual hosts is currently not
57
+ # supported by MSIE on Windows XP.
58
+ # !important below!
59
+ NameVirtualHost *:443
60
+ </IfModule>
61
+ ```