Apache: Disable Access By Server's IP Address

Giganews Newsgroups
Subject: Apache: Disable Access By Server's IP Address
Posted by:  thatguy26 (thatguy…@gmail.com)
Date: 15 Apr 2007

Hello,
I am running a couple virtual hosts on Apache (windows) and was
wondering if there is a way to disable access to the web pages via IP
address.

For example, I only want the actual websites accessible by someone
typing in the domain name.

Currently, if someone types in 123.45.67.89, it pulls up the main web
site I'm hosting.  I would like to disable this so the only way to get
to the main site is by typing http://www.mysite.com.

Thanks for the assistance!

Replies