httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Zander" <mark_zan...@email.com>
Subject Re: [users@httpd] Securing locations
Date Fri, 27 Sep 2002 14:46:30 GMT
That should work OK, but this example moves all authentication out of the .htaccess file and
into the httpd.conf file.  Also you can allow multiple IP addresses on the same line with
a space between them, i.e.:

Allow from 211.111.111.11 211.111.111.12 192.168.100.1

If you want to keep the authentication in the .htaccess file, I believe you need only the
followinf lines:

->        Order Deny,Allow
->        Deny from all
->        Allow from 211.111.111.11

         AuthName "Acces Visiteur"                   \
         AuthType Basic                               \
         AuthUserFile /www...../.passwd_web            ->These are
         AuthGroupFile /www..../.group_web            /    probably
         require group thegroup                      /     already there

->       Satisfy any



Mark

----- Original Message -----
From: Luc Santeramo <luc.santeramo@univ-avignon.fr>
Date: Fri, 27 Sep 2002 16:37:32 +0200
To: users@httpd.apache.org
Subject: Re: [users@httpd] Securing locations 


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

-- 
__________________________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup


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