NameVirtualHost Directive is gone

With Apache httpd-2.4, NameVirtualHost Directive is deprecated. If we happen to bring over httpd.conf from old version to newer httpd-2.4 and have NameVirtualHost *:80 then we will find this warning. We can simply remove NameVirtualHost directive in this case.

Usually, we use virtual hosts (vhosts). With this effect, if we turn on the first vhost configuration, the default document root (usually htdocs for localhost) also has to describe inside vhost configuration (usually httpd-vhosts.conf). Once vhosts are on, localhost won’t point to main DocumentRoot that said in httpd.conf like in old day. We will have to explicitly said inside vhost now.

e.g. httpd-vhosts.conf