Tuesday, June 03, 2014

Apache - [warn] _default_ VirtualHost overlap Error

If you see the following errors while start Apache process:
[Fri Aug 02 10:05:08 2013] [warn] _default_ VirtualHost overlap on port 443, the first has precedence
[Fri Aug 02 10:05:08 2013] [warn] _default_ VirtualHost overlap on port 80, the first has precedence

To remove this error add “NameVirtualHost” directive to /etc/httpd/conf/httpd.conf (or /etc/apache2/ports.conf). For port 80 you must add “NameVirtualHost *:80″ and for port 443 you must add “NameVirtualHost *:443″.

NameVirtualHost *:80
NameVirtualHost *:3000
NameVirtualHost *:443

When you will restart your Apache this error will not appear anymore!
# service apache2 restart

No comments: