Apache solved: [warn] _default_ VirtualHost overlap on port 80, the first has precedence

Kemaren setelah mati listrik,  terjadi hal menarik pada server web. Yaitu error pada saat start Apache server, seperti dibawah ini:

# /usr/local/etc/rc.d/apache22 restart
Performing sanity check on apache22 configuration:
[Thu Oct 11 10:21:21 2012] [warn] _default_ VirtualHost overlap on port 80, the first has precedence
Syntax OK
apache22 not running? (check /var/run/httpd.pid).
Performing sanity check on apache22 configuration:
[Thu Oct 11 10:21:21 2012] [warn] _default_ VirtualHost overlap on port 80, the first has precedence
Syntax OK
Starting apache22.
[Thu Oct 11 10:21:21 2012] [warn] _default_ VirtualHost overlap on port 80, the first has precedence
#

Error ini terjadi karena menggunakan banyak website dalam satu mesin jadi harus mengaktifkan vhost pada apachenya, dan pada setingan di httpd-vhost.conf masih perlu di tambah dengan:

NameVirtualHost *:80

atau langsung ditambah dengan alamat IP dari server pada * jika anda menggunakan banyak IP:

NameVirtualHost 12.34.56.78:80

kemudian restart kembali apachenya:

#/usr/local/etc/rc.d/apache22 restart

Selesai.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s