【问题标题】:fail httpd restart: NameVirtualHost errorhttpd 重启失败:NameVirtualHost 错误
【发布时间】:2021-05-21 22:02:33
【问题描述】:

我收到此错误httpd restart fail

[root@centos6 etc]# service https restart
Stopping httpd:   [  OK  ]
Starting https: httpd: apr_socketaddr_info_get() failed for centos6
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[Thu Feb 18 22:38:09 2021] [warn] NameVirtualHost *:80 has no VirtualHosts
                  [  OK  ]

这是我的 httpd.conf:NameVirtualHost Virtual Host

这是我的 /etc/hosts /etc/hosts

知道我已经创建了目录及其 index.html 文件/var/www/

【问题讨论】:

标签: apache virtualhost httpd.conf centos6


【解决方案1】:

您将相同的 IP 地址分配给 2 个不同的虚拟主机。制作一个 192.168.0.100 和另一个 192.168.0.101.

【讨论】:

    猜你喜欢
    • 2012-08-06
    • 1970-01-01
    • 2017-09-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-01-22
    • 2013-05-19
    • 2023-04-04
    相关资源
    最近更新 更多