启动时出现Apache错误:
Address already in use: make_sock: could not bind to address [::]:443
*Executing start method ("/lib/svc/method/http-apache2 start") ]
(125)Address already in use: make_sock: could not bind to address [::]:443
no listening sockets available, shutting down
Unable to open logs*
Listen 443 is added in ssl.conf.
Listen 80 is added in httpd.conf.
HTTPD.conf文件:
DocumentRoot "/var/apache2/htdocs"
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory "/var/apache2/htdocs">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
还在error_log文件中收到以下错误:
configuration error: couldn't perform authentication. AuthType not set!:index.html**
index.html's location : /var/apache2/htdocs
提前致谢
答案 0 :(得分:1)
在侦听端口
后添加以下行#You will have
Listen 443 https
#add NameVirtualHost entry after that,
NameVirtualHost *:443
并重新启动httpd服务器,希望这对您有用。
答案 1 :(得分:1)
答案 2 :(得分:1)
我不得不注释掉
升级到httpd版本 2.4.6-80 后,在/etc/.../conf.d/ssl.conf中的听443 https
。