You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Skladovs, Victor" <Sk...@his.de> on 2002/09/02 11:26:55 UTC
[users@httpd] Basic Authorization:Can I protect two directories simultaneously?
Hi to all!
The question to all is: can I protect two directories (in httpd.conf)
simultaneously?
I mean: if I log in for directory /dir1, it will valid also for /dir2, I
will not be promted to authentificate myself for /dir2 anymore.
Is it possible at all?
Thanks for help!
Viktor
---------------------------------------------------------------------
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] Basic Authorization:Can I protect two directories
simultaneously?
Posted by BAO RuiXian <ba...@atbusiness.com>.
I think if dir2 is a subdirectory of dir1, then, dir2 wont be further prompted
for authorization.
Bao
"Skladovs, Victor" wrote:
> Hi to all!
>
> The question to all is: can I protect two directories (in httpd.conf)
> simultaneously?
> I mean: if I log in for directory /dir1, it will valid also for /dir2, I
> will not be promted to authentificate myself for /dir2 anymore.
> Is it possible at all?
>
> Thanks for help!
> Viktor
--
BAO RuiXian, PROGRAMMER, Project Consulting Team, Software Services Group
AtBusiness Communications Corporation, Kaapeliaukio 1, FIN-00180 Helsinki
Telephone +358-9-2311 6674, Mobile +358-50-329 6275, Fax +358-9-2311 6601
Web: www.atbusiness.com, Email: {bao.ruixian, ruixian.bao}@atbusiness.com
---------------------------------------------------------------------
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] Basic Authorization:Can I protect two directories
simultaneously?
Posted by Dirk-Willem van Gulik <di...@webweaving.org>.
On Mon, 2 Sep 2002, Skladovs, Victor wrote:
> The question to all is: can I protect two directories (in httpd.conf)
> simultaneously?
> I mean: if I log in for directory /dir1, it will valid also for /dir2, I
> will not be promted to authentificate myself for /dir2 anymore.
Actually you will find that the server will ask for a password for dir2 -
but that your browser will, behind the scenes, give your password along
with the request for /dir2.
Generally a browser fill re-use a password entered earlier if a) the site
is still the same and b) the Realm string (AuthName) is the still same.
Most (but not all - MS is most notably broken a bit) browsers will not
prompt you for a passwd for /second if you gave it for /first; but will
ask it for /third.
<Directory ...../first>
AuthType basic
AuthName Foo
Auth...
require valid-user
</Directory>
<Directory ...../second>
AuthType basic
AuthName Foo
Auth...
require valid-user
</Directory>
<Directory ..../third>
AuthType basic
AuthName Bar
Auth...
require valid-user
</Directory>
Dw
---------------------------------------------------------------------
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