Apache虚拟主机报错:NameVirtualHost has no effect and will be removed in the next release

Apache2.4添加虚拟主机提示:NameVirtualHost has no effect and will be removed in the next release /usr/local/apache/conf/extra/httpd-vhosts.conf

在这里插入图片描述

提示2.4版本中提示NameVirtual将在以后的版本中去掉,所以,从2.4版本开始,做虚拟主机可以不加NameVirtual,直接做

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
systemctl status httpd. service Chttpd. service The Apache HTTP Server Loaded: loaded (/us/lib/systemd/system/httpd.service; disabled; vendor preset: disabled) Active: failed (Result: exit-code) since = 2023-05-24 19:48:16 CST; 1min 40s ago Docs: man: httpd(8) man: apachectl(8) Process: 14126 Execstop=/bin/ KiLL- WINCH $IMAINPID} (code-exited, status-1 /FAILURE) Process: 13507 ExecReload=/usr/ sbin/httpd $OPTIONS - k graceful (code exited. status-O/SUCCESS) Process: 14124 Execstart=/usr/ sbin/httpd $OPTIONS -DFOREGROUND ( code-exited, status-1 /FAILURE) Main PID: 14124 (code exited, status1/FAILURE) 24 19: 48:16 localhost. localdomain httpd(14124): AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/httpd/conf/httpd. conf:1 24 19:48:16 localhost. localdomain httpd/14124] : AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost. localdomain. Set th... his message 24 19:48:16 localhost. localdomain http(14124] : no listening sockets available, shutting down 24 19:48:16 localhost. Localdomain http 14124) : AH00015: Unable to open logs 24 19: 48:16 localhost. localdomain systemd(1): httpd, service: main process exited, code exited, status -1 /FAILURE 24 19: 48:16 localhost. localdomain kill|14126| : kill: cannot find process 24 19: 48:16 localhost. localdomain systemd(1]: httpd. service: control process exited, code exited status 1 24 19:48:16 localhost. localdomain systemd(1]: Failed to start The Apache HTTP Server 24 19:48:16 localhost. Localdomain systemd(1): Unit httpd. service entered failed state. 59 24 19:48:16 localhost. localdomain systemd(1|: httpd. service failed. Hint: some lines were eLlipsized, use - L to show in Tull
05-25

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值