httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Stuart <>
Subject Re: [users@httpd] ?Name based virtual hosting (v2)
Date Fri, 18 Oct 2002 11:13:28 GMT
On Sat, 2002-10-12 at 19:13, David Busby wrote:
> List,
> 	I've got an apache server that I'm hosting multiple name based sites
> (,, and all are on the same IP
> address,  How can I tell apache that if someone accesses the site via
> the IP address to return an error message or ???.  Pointer to a manual
> page would be great, sample even better.
Apache 1.x or 2.x?

The manual for 2.x has a great section on default servers, etc... (see

My suggestion would be to have 'x', 'y', & 'z' as seperate servers, and
have a fourth (in this case) server as the default, which deals with
no-name/IP-accessed/mis-named addressing...

> New:
> 	Or how can I make apache disallow connections from certian hosts?
Nice and simple, this one..

Don't go for a fancy solution, use

 <Location />
     Order Deny,Allow
     Deny from

within the vhost config :)

Ian Stuart: Edinburgh University Data Library.

Information is not knowledge
Knowledge is not wisdom
Wisdom is not truth
Truth is not beauty
Beauty is not love
Love is not music
              -- Mary.

 Personal web site: 

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message