You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Scott Chapman <sc...@mischko.com> on 2003/05/01 01:58:46 UTC
[users@httpd] Can I limit a directory to a IP range?
Can I limit anything going to www.domain.com/dir to a given IP range?
Apache 2.0 Linux.
Scott
---------------------------------------------------------------------
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] Can I limit a directory to a IP range?
Posted by Nikunj Virani <ni...@netsurf.co.in>.
Change ServerName and Allow from directive to suit your needs.
<VirtualHost *>
ServerName domain.com
ServerAlias www.domain.com
<Location /dir>
Order deny,allow
Deny from all
Allow from 192.168.10.1
</Location>
</VirtualHost>
Hope this helps,
Regards,
Nikunj Virani
Senior System Administrator
NCPL India.
----- Original Message -----
From: "Scott Chapman" <sc...@mischko.com>
To: <us...@httpd.apache.org>
Sent: Thursday, May 01, 2003 5:28 AM
Subject: [users@httpd] Can I limit a directory to a IP range?
> Can I limit anything going to www.domain.com/dir to a given IP range?
> Apache 2.0 Linux.
> Scott
>
> ---------------------------------------------------------------------
> 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