Apache2默认主机未提供服务-ispconfig

Apache2默认主机未提供服务-ispconfig,apache2,vhosts,ispconfig,Apache2,Vhosts,Ispconfig,我的ISPconfig/apache2安装程序遇到了以下问题: 我的默认主机000默认未被服务。当我在浏览器中输入服务器ip(服务器主机名)时,服务器提供的域名以数字开头 My/etc/apache2/sites enabled文件夹如下所示: 我运行了apache2ctl-S,它告诉我,以3xxx开头的域是默认主机: 188.68.40.181:443 is a NameVirtualHost default server 3xxxxxxxx.de (/etc/apach

我的ISPconfig/apache2安装程序遇到了以下问题:

我的默认主机000默认未被服务。当我在浏览器中输入服务器ip(服务器主机名)时,服务器提供的域名以数字开头

My/etc/apache2/sites enabled文件夹如下所示:

我运行了apache2ctl-S,它告诉我,以3xxx开头的域是默认主机:

188.68.40.181:443      is a NameVirtualHost
     default server 3xxxxxxxx.de (/etc/apache2/sites-enabled/100-3xxxxxxxx.de.vhost:109)
     port 443 namevhost 3xxxxxxxx.de (/etc/apache2/sites-enabled/100-3xxxxxxxx.de.vhost:109)
             alias www.3xxxxxxxx.de
     port 443 namevhost dxxxx.de (/etc/apache2/sites-enabled/100-dxxxx.de.vhost:93)
             alias www.dxxxx.de
     port 443 namevhost jxxxxxx.de (/etc/apache2/sites-enabled/100-jxxxxxx.de.vhost:130)
             alias www.jxxxxxx.de
     port 443 namevhost lxx.dxxxx.de (/etc/apache2/sites-enabled/100-lxx.dxxxx.de.vhost:124)
     port 443 namevhost lxxxxxx.dxxxx.de (/etc/apache2/sites-enabled/100-lxxxxxx.dxxxx.de.vhost:100)
188.68.40.181:80       is a NameVirtualHost
     default server 3xxxxxxxx.de (/etc/apache2/sites-enabled/100-3xxxxxxxx.de.vhost:7)
     port 80 namevhost 3xxxxxxxx.de (/etc/apache2/sites-enabled/100-3xxxxxxxx.de.vhost:7)
             alias www.3xxxxxxxx.de
     port 80 namevhost dxxxx.de (/etc/apache2/sites-enabled/100-dxxxx.de.vhost:7)
             alias www.dxxxx.de
     port 80 namevhost jxxxxxx.de (/etc/apache2/sites-enabled/100-jxxxxxx.de.vhost:7)
             alias www.jxxxxxx.de
     port 80 namevhost lxx.dxxxx.de (/etc/apache2/sites-enabled/100-lxx.dxxxx.de.vhost:7)
     port 80 namevhost lxxxxxx.dxxxx.de (/etc/apache2/sites-enabled/100-lxxxxxx.dxxxx.de.vhost:7)
     port 80 namevhost txxxxx.dxxxx.de (/etc/apache2/sites-enabled/100-txxxxx.dxxxx.de.vhost:7)
*:8081                 server1.xxxxxxxxxxx.com (/etc/apache2/sites-enabled/000-apps.vhost:9)
*:80                   server1.xxxxxxxxxxx.com (/etc/apache2/sites-enabled/000-default.conf:2)
*:8080                 server1.xxxxxxxxxxx.com (/etc/apache2/sites-enabled/000-ispconfig.vhost:9)
ServerRoot: "/etc/apache2"
Main DocumentRoot: "/var/www/html"
Main ErrorLog: "/var/log/apache2/error.log"
Mutex ssl-cache: using_defaults
Mutex default: dir="/var/lock/apache2" mechanism=fcntl
Mutex mpm-accept: using_defaults
Mutex fcgid-pipe: using_defaults
Mutex authdigest-opaque: using_defaults
Mutex watchdog-callback: using_defaults
Mutex rewrite-map: using_defaults
Mutex ssl-stapling-refresh: using_defaults
Mutex authdigest-client: using_defaults
Mutex fcgid-proctbl: using_defaults
Mutex ssl-stapling: using_defaults
PidFile: "/var/run/apache2/apache2.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
Define: MODPERL2
Define: ENABLE_USR_LIB_CGI_BIN
User: name="www-data" id=33
Group: name="www-data" id=33
据我所知,000-default.conf应该是默认的vhost,因为它是按字母顺序排列的第一个

000-default.conf如下所示:

<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com

ServerAdmin webmaster@localhost
DocumentRoot /var/www/html


# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>

#ServerName指令设置请求方案、主机名和端口
#服务器使用来标识自身。这在创建时使用
#重定向URL。在虚拟主机的上下文中,服务器名
#指定必须在请求的主机:标头中显示的主机名
#匹配此虚拟主机。对于默认虚拟主机(此文件),此
#该值不是决定性的,因为它被用作最后的宿主。
#但是,必须为任何其他虚拟主机显式设置它。
#服务器名www.example.com
服务器管理员webmaster@localhost
DocumentRoot/var/www/html
#可用日志级别:trace8、…、trace1、调试、信息、通知、警告、,
#错误、暴击、警报、紧急情况。
#还可以为特定应用程序配置日志级别
#模块,例如。
#日志级别信息ssl:警告
ErrorLog${APACHE_LOG_DIR}/error.LOG
CustomLog${APACHE\u LOG\u DIR}/access.LOG组合

有人知道为什么会忽略die 000-default.conf吗?

000-default.conf只是*:80的默认值,但您也知道 在特定接口/IP地址上定义的虚拟主机(我不确定您是否有意混淆它们,所以我不会在这里引用它们)

每个基于名称的vhost“集合”都有一个默认值。带有*:80的所有vHost为一组,带有1.2.3.4:80的每个vHost为另一组


一旦IP/接口层与特定vhost完全匹配,Apache将永远不会查看*:80 vhost中的名称。

谢谢,就是这样!