【发布时间】:2018-06-14 23:57:30
【问题描述】:
这是“000-default”文件的内容:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName myServeName
DocumentRoot /var/www/test
#<Directory "/var/www">
# Options Indexes FollowSymLinks
# AllowOverride None
# Order allow,deny
# Allow from all
#</Directory>
ErrorLog /var/www/test/judianer-error.log
CustomLog /var/www/test/judianer-access.log common
</VirtualHost>
和apache可以使用,浏览器可以访问http:(myserveName),但是当我在底部添加内容时:
<VirtualHost *:443>
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/214399318900951.pem
ServerAdmin webmaster@localhost
DocumentRoot /var/www/test
ServerName myserveName
#<Directory />
# Options FollowSymLinks
#AllowOverride All
# </Directory>
# <Directory /var/www/>
# Options FollowSymLinks MultiViews
# AllowOverride None
# Order allow,deny
# allow from all
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
#RedirectMatch ^/$ /apache2-default/
# </Directory>
</VirtualHost>
我的 apache 无法启动。如何解决。
【问题讨论】: