Apache的错误:在端口443 _default_虚拟主机的重叠 [英] Apache error: _default_ virtualhost overlap on port 443

查看:718
本文介绍了Apache的错误:在端口443 _default_虚拟主机的重叠的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在尝试启动Apache时,这个错误。

I get this error when trying to start Apache.

_default_虚拟主机上的重叠端口443

_default_ virtualhost overlap on port 443

我试图建立SSL。几乎所有的解决方案在网上说添加:

I'm trying to set up SSL. Almost every solution online says add:

NameVirtualHost *:443

要conf文件,但仍阿帕奇无法启动,只是说:

to the conf file but Apache still fails to start and just says

行动启动失败。 Apache的日志可能有详细信息。

Action start failed. the apache logs may have more information

有在Apache日志零信息。

There is zero information in the Apache logs.

推荐答案

要解决一个Debian / Ubuntu系统上的问题修改 /etc/apache2/ports.conf 443 它:设置中加入了NameVirtualHost *文件。我的 ports.conf 此刻以下内容:

To resolve the issue on a Debian/Ubuntu system modify the /etc/apache2/ports.conf settings file by adding NameVirtualHost *:443 to it. My ports.conf is the following at the moment:

# /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>

此外确保的网站可用/默认SSL 未启用,键入 a2dissite默认SSL 来关闭该网站。当你向它输入 a2dissite 本身得到一个清单,看看是否有您已启用可能被映射到端口443的任何其他站点设置。

Furthermore ensure that 'sites-available/default-ssl' is not enabled, type a2dissite default-ssl to disable the site. While you're at it type a2dissite by itself to get a list and see if there is any other site settings that you have enabled that might be mapping onto port 443.

这篇关于Apache的错误:在端口443 _default_虚拟主机的重叠的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆