質問するログイン新規登録

質問編集履歴

1

試したことを追加

2018/09/26 19:06

投稿

glow
glow

スコア10

title CHANGED
File without changes
body CHANGED
@@ -71,4 +71,40 @@
71
71
  <VirtualHost *:80>を<VirtualHost (ip address):80>にした。
72
72
 
73
73
  記述順序変更や末尾スラッシュ削除、細かな修正を何度も繰り返したものの、改善されず・・。
74
- 無効な設定にした場合はページ表示されなくなる為、「/etc/httpd/conf.d/vhost.conf」が反映されていること確実であると思われます。
74
+ 無効な設定にした場合はページ表示されなくなる為、「/etc/httpd/conf.d/vhost.conf」が反映されていること確実であると思われます。
75
+
76
+ ---
77
+ ```
78
+ # httpd -t -D DUMP_CONFIG 2>/dev/null | grep -n -B 1 '^# In'
79
+ 1:# In file: /etc/httpd/conf/httpd.conf
80
+ --
81
+ 80-EnableSendfile on
82
+ 81:# In file: /etc/httpd/conf.d/autoindex.conf
83
+ --
84
+ 154-IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
85
+ 155:# In file: /etc/httpd/conf.d/phpMyAdmin.conf
86
+ --
87
+ 204-</Directory>
88
+ 205:# In file: /etc/httpd/conf.d/ssl.conf
89
+ --
90
+ 252-</VirtualHost>
91
+ 253:# In file: /etc/httpd/conf.d/userdir.conf
92
+ --
93
+ 264-</Directory>
94
+ 265:# In file: /etc/httpd/conf.d/vhost.conf
95
+ --
96
+ 313-</VirtualHost>
97
+ 314:# In file: /etc/httpd/conf/httpd-le-ssl.conf
98
+ --
99
+ 326- SSLCertificateKeyFile /etc/letsencrypt/live/3810.pro/privkey.pem
100
+ 327:# In file: /etc/letsencrypt/options-ssl-apache.conf
101
+ --
102
+ 341- LogFormat "%v %h %l %u %t \"%r\" %>s %b" vhost_common
103
+ 342:# In file: /etc/httpd/conf/httpd-le-ssl.conf
104
+ --
105
+ 345-</VirtualHost>
106
+ 346:# In file: /etc/httpd/conf.d/welcome.conf
107
+ ```
108
+ ---
109
+ https://teratail.com/questions/138373
110
+ からヒントを得て、SSLの場合は設定を複数記述する必要性があることを理解しました。