[root@localhost conf]# service httpd restart停止 httpd: [确定]启动 httpd:AH00548: NameVirtualHost has no effect and will be removed in the next release ...
[root@localhost conf]# service httpd restart 停止 httpd: [确定] 启动 httpd:AH00548: NameVirtualHost has no effect and will be removed in the next release /usr/local/apache/conf/extra/httpd-vhosts.conf:1
文件 /usr/local/apache/conf/extra/httpd-vhosts.conf 的内容如下:
NameVirtualHost *:80 <virtualhost *:80> ServerName www.example.com DocumentRoot /var/www DirectoryIndex index.html index.php <Directory /var/www> Options +Includes -Indexes AllowOverride All Order Deny,Allow Allow from All php_admin_value open_basedir /var/www:/tmp:/proc </Directory> </virtualhost> Include conf/vhost/*
提示很明显 NameVirtualHost 已经无效(指的是Apache2.4.x版本),所以配置虚拟主机时不需要设置 NameVirtualHost,把上面的 “NameVirtualHost *:80” 删除掉,问题解决!
原文:http://www.cnblogs.com/52php/p/5669919.html
本文标题为:Apache2.4.6添加虚拟主机提示:NameVirtualHost has no effect and will be removed in the next release /usr/local/apache/conf/extra/httpd-vhosts.conf
- 【转载】CentOS安装Tomcat 2023-09-24
- IIS搭建ftp服务器的详细教程 2022-11-15
- 解决:apache24 安装后闪退和配置端口映射和连接超时设置 2023-09-11
- KVM虚拟化Linux Bridge环境部署的方法步骤 2023-07-11
- 阿里云ECS排查CPU数据分析 2022-10-06
- 教你在docker 中搭建 PHP8 + Apache 环境的过程 2022-10-06
- CentOS_mini下安装docker 之 安装docker CE 2023-09-23
- nginx中封禁ip和允许内网ip访问的实现示例 2022-09-23
- CentOS7安装GlusterFS集群的全过程 2022-10-10
- 利用Docker 运行 python 简单程序 2022-10-16