You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by James Green <ja...@stealthnet.co.uk> on 2002/09/27 16:21:29 UTC
[users@httpd] Securing locations
Hi all,
I've got a directory on a site secured using a .htaccess file and a
username/passwd. What I'd like to do is allow entry to a particular set of
IP addressess without them needing to put the username/password in.
End result will be the office get non-passworded access, others will need
the password.
Any ideas?
--
James Green
Developer
Stealthnet.co.uk
---------------------------------------------------------------------
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] Securing locations
Posted by James Green <ja...@stealthnet.co.uk>.
Excellent stuff. Many thanks to all who replied.
:D
James
---------------------------------------------------------------------
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] Securing locations
Posted by Luc Santeramo <lu...@univ-avignon.fr>.
try something like that
<Directory /www/thedir>
-> Order Deny,Allow
-> Deny from all
-> Allow from 211.111.111.11
AllowOverride None
AuthName "Acces Visiteur"
AuthType Basic
AuthUserFile /www...../.passwd_web
AuthGroupFile /www..../.group_web
require group thegroup
-> Satisfy any
</Directory>
Luc
At 15:21 27/09/2002 +0100, James Green wrote:
>Hi all,
>
>I've got a directory on a site secured using a .htaccess file and a
>username/passwd. What I'd like to do is allow entry to a particular set of
>IP addressess without them needing to put the username/password in.
>
>End result will be the office get non-passworded access, others will need
>the password.
>
>Any ideas?
>
>--
>James Green
>Developer
>Stealthnet.co.uk
>
>
>
>---------------------------------------------------------------------
>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
Re: [users@httpd] Securing locations
Posted by Stanislas Renan <st...@renan.org>.
Hi,
Le Fri, 27 Sep 2002 15:21:29 +0100, James Green écrivait :
>I've got a directory on a site secured using a .htaccess file and a
>username/passwd. What I'd like to do is allow entry to a particular
>set of
>IP addressess without them needing to put the username/password in.
>
>End result will be the office get non-passworded access, others will
>need
>the password.
>>From apache FAQ G,3 :
<http://httpd.apache.org/docs/misc/FAQ.html#remote-auth-only>
Deny from all
Allow from .domain.com
AuthType Basic
AuthUserFile /usr/local/apache/conf/htpasswd.users
AuthName "special directory"
Require valid-user
Satisfy any
you can allow for any IP, thus no password is needed for
these IPs.
Worked fine for me.
Stan
---------------------------------------------------------------------
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