gpt4 book ai didi

Apache 错误: _default_ virtualhost overlap on port 443

转载 作者:行者123 更新时间:2023-12-03 05:41:40 25 4
gpt4 key购买 nike

我在尝试启动 Apache 时收到此错误。

_default_ virtualhost overlap on port 443

我正在尝试设置 SSL。几乎每个在线解决方案都说添加:

NameVirtualHost *:443

到conf文件,但Apache仍然无法启动,只是说

Action start failed. the apache logs may have more information

Apache 日志中的信息为零。

最佳答案

要解决 Debian/Ubuntu 系统上的问题,请修改 /etc/apache2/ports.conf 设置文件,添加 NameVirtualHost *:443 到其中。我的 ports.conf 目前如下:

# /etc/apache/ports.conf
# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default
# This is also true if you have upgraded from before 2.2.9-3 (i.e. from
# Debian etch). See /usr/share/doc/apache2.2-common/NEWS.Debian.gz and
# README.Debian.gz

NameVirtualHost *:80
Listen 80

<IfModule mod_ssl.c>
# If you add NameVirtualHost *:443 here, you will also have to change
# the VirtualHost statement in /etc/apache2/sites-available/default-ssl
# to <VirtualHost *:443>
# Server Name Indication for SSL named virtual hosts is currently not
# supported by MSIE on Windows XP.

NameVirtualHost *:443

Listen 443
</IfModule>

<IfModule mod_gnutls.c>
NameVirtualHost *:443
Listen 443
</IfModule>

此外,请确保未启用'sites-available/default-ssl',输入a2dissite default-ssl以禁用该站点。当您输入 a2dissite 时,单独输入一个列表,看看是否有您启用的任何其他站点设置可能映射到端口 443。

关于 Apache 错误: _default_ virtualhost overlap on port 443,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10658017/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com