{"id":4970,"date":"2014-05-01T00:14:27","date_gmt":"2014-04-30T16:14:27","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=4970"},"modified":"2023-06-23T13:13:00","modified_gmt":"2023-06-23T13:13:00","slug":"how-to-fix-_default_-virtualhost-overlap-on-port-80-the-first-has-precedence","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/how-to-fix-_default_-virtualhost-overlap-on-port-80-the-first-has-precedence\/","title":{"rendered":"How to Fix _default_ VirtualHost overlap on port 80, the first has precedence"},"content":{"rendered":"<p><strong>Question :<\/strong><br \/>\nI running wordpress blog on apache web server on Virtual private server (VPS). I had the problem when i restarted the httpd service on my VPS. This error came after i setup multiple domain on my httpd config file, meaning i used more than one VirtualHost on httpd.conf :<\/p>\n<pre>\n[root@vps ~]# service httpd restart\nStopping httpd:                                            [  OK  ]\nStarting httpd: [Thu May 01 00:01:03 2014] [warn] _default_ VirtualHost overlap on port 80, the first has precedence\n                                                           [  OK  ]\n<\/pre>\n<p><strong>Solution :<\/strong><\/p>\n<p>After a few hours troubleshooting and googling to internet, i managed to fix the issue. When we decide to run multiple domain in one web server or web hosting world called it shared hosting service, you need to configure name-based virtual hosts on your apache httpd service. NameVirtualhost is require to be included in httpd.conf file as below :<\/p>\n<pre>\n..\n..\n#\n# Use name-based virtual hosting.\n#\nNameVirtualHost *:80\n#\n# NOTE: NameVirtualHost cannot be used without a port specifier\n# (e.g. :80) if mod_ssl is being used, due to the nature of the\n# SSL protocol.\n#\n..\n..\n<\/pre>\n<p>Then restart the apache httpd. Issue resolved!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Question : I running wordpress blog on apache web server on Virtual private server (VPS). I had the problem when i restarted the httpd service on my VPS. This error&#8230;<\/p>\n","protected":false},"author":6,"featured_media":5020,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[1103],"tags":[1199,1536,1933],"class_list":["post-4970","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-apache","tag-apache","tag-linux","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/4970","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/comments?post=4970"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/4970\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media\/5020"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media?parent=4970"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=4970"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=4970"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}