[[Email protected] conf]# service httpd restart stop httpd: [OK] start httpd:AH00548:NameVirtualHost has no effect and would be removed in the next release/usr/local/apache/conf/extra/httpd-vhosts.conf:1
The contents of the file /usr/local/apache/conf/extra/httpd-vhosts.conf are as follows:
Namevirtualhost *:80<virtualhost *:80>servername Www.example.comDocumentRoot/var/wwwDirectoryIndex index.html index.php<directory/var/www>options +includes-indexesallowoverride AllOrder Deny,AllowAllow from Allphp_admin_value Open_basedir/var/www:/tmp:/proc</directory></virtualhost>include conf/vhost/*
It is obvious that Namevirtualhost is invalid (referring to the apache2.4.x version), so you do not need to set the namevirtualhost When configuring the virtual host. Namevirtualhost *:80"removed, problem solved!
Apache2.4.6 Adding a virtual host prompt: Namevirtualhost has no effect and would be removed in the next Release/usr/local/apache/conf/extra/htt Pd-vhosts.conf