{"id":6656,"date":"2014-04-20T20:31:51","date_gmt":"2014-04-20T20:31:51","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/20\/apache-2-startup-warning-namevirtualhost-80-has-no-virtualhosts-collection-of-common-programming-errors\/"},"modified":"2014-04-20T20:31:51","modified_gmt":"2014-04-20T20:31:51","slug":"apache-2-startup-warning-namevirtualhost-80-has-no-virtualhosts-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/20\/apache-2-startup-warning-namevirtualhost-80-has-no-virtualhosts-collection-of-common-programming-errors\/","title":{"rendered":"Apache 2 startup warning: NameVirtualHost *:80 has no VirtualHosts-Collection of common programming errors"},"content":{"rendered":"<p>Change<\/p>\n<pre><code>\n<\/code><\/pre>\n<p>to read<\/p>\n<pre><code>\n<\/code><\/pre>\n<p>Or its (NameVirtualHost *:80) added twice in your apache2 Confing file. ( By Default its added in ports.conf file )<\/p>\n<p>This should clear the error.<\/p>\n<p><em>Aside:<\/em> you shouldn&#8217;t ignore this error. Apache&#8217;s config, especially when globbing virtual hosts (eg Include \/etc\/httpd\/vhosts.d\/*) is not stable. That means you don&#8217;t control the order of loading the hosts explicitly so the default vhost for an IP becomes the one that is loaded first, which can lead to unintended consequences.<\/p>\n<p>One example of this is the default vhost for an IP will also be available on that IP, rather than its <em>name<\/em>. This can cause information to leak onto google referring to your sites IP rather than name, which can be confusing for customers.<\/p>\n<p>The NameVirtualHost error above can be a hint that apache has loaded things in a non optimal way, so you shouldn&#8217;t ignore it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Change to read Or its (NameVirtualHost *:80) added twice in your apache2 Confing file. ( By Default its added in ports.conf file ) This should clear the error. Aside: you shouldn&#8217;t ignore this error. Apache&#8217;s config, especially when globbing virtual hosts (eg Include \/etc\/httpd\/vhosts.d\/*) is not stable. That means you don&#8217;t control the order of [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6656","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6656","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6656"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6656\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6656"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6656"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6656"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}