You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Søren Neigaard <s....@mobilethink.dk> on 2004/02/23 10:33:40 UTC

[users@httpd] Limiting access to specific IP's for a VirtualHost?

I would like to limit access to a VirtualHost so that only a specified list of IP-addresses may enter.

I was thinking about using "Allow from", but theres no directory in this VirtualHost... So can it be done, and how?

Med venlig hilsen/Best regards
Søren Neigaard
System Architect
................................
Mobilethink A/S
Arosgaarden
Åboulevarden 23, 4.sal
DK - 8000 Århus C
Telefon: +45 86207800
Direct: +45 86207810
Fax: +45 86207801
Email: s.neigaard@mobilethink.dk
Web: www.mobilethink.dk
................................ 

---------------------------------------------------------------------
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


Re: [users@httpd] Limiting access to specific IP's for a VirtualHost?

Posted by Cerion Armour-Brown <ce...@terpsichore.ws>.
On Monday 23 February 2004 10:33, Søren Neigaard wrote:
> I would like to limit access to a VirtualHost so that only a specified list
> of IP-addresses may enter.
>
> I was thinking about using "Allow from", but theres no directory in this
> VirtualHost... So can it be done, and how?

<Location />
  Order Deny,Allow
  Deny from all
  Allow from ip_add1
  Allow from ip_add2
</Location>

see http://httpd.apache.org/docs/mod/mod_access.html
Cerion


---------------------------------------------------------------------
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