httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <wa...@xs4all.nl>
Subject Re: [users@httpd] Apache to except only connections for one hostname
Date Fri, 18 Oct 2002 08:46:29 GMT
Hello,

the solution given by Joshua worked. Thanx Joshua!

Lars.

> waldi@xs4all.nl wrote:
>
>>
>>
>> I have read that Apache always takes the first virtual host as it's
>> default, so when a http connection comes in for somename.mydomain.com
>> it drops it on the first virtual host.
>> MTIA.
>
>
> Right.  So all you need to do is create a new <virtualhost> block, list
>  it first, and include
> <Location />
> Deny from all
> </Location>
>
> Then all hostnames that don't match one of the ServerName's or
> ServerAlias's in the other <virtualhost> blocks will be denied access.
>
> Joshua.
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server
> Project. See <URL:http://httpd.apache.org/userslist.html> for more
> info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message