[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
基础教程推荐
- linux之conda环境安装全过程 2023-07-11
- nginx.conf(centos7 1.14)主配置文件修改 2023-09-23
- linux下安装apache与php;Apache+PHP+MySQL配置攻略 2023-08-07
- Apache服务器配置攻略3 2022-09-01
- Apache Hudi数据布局黑科技降低一半查询时间 2022-10-06
- apache和nginx结合使用 2023-09-10
- 服务器添加git钩子的步骤 2022-12-12
- centos 7 安装及配置zabbix agent 2023-09-24
- IIS 6 的 PHP 最佳配置方法 2022-09-01
- 实战Nginx_取代Apache的高性能Web服务器 2023-09-29