You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Peng Annie <An...@KONE.com> on 2002/11/20 12:14:33 UTC
[users@httpd] question about apache
Hi, another question again.
Now I understand with
SetEnvIf SM-USER ^admin$ got_admin
Order deny,allow
deny from all
allow from env=got_admin
I can allow user admin to access the dir. How about if we have a lot of
users. Is it possible to load usernames from a file?
Thanks!
Annie
On Tue, 19 Nov 2002, Peng Annie wrote:
> The Apache2 is behind NETEGRITY firewall, NETEGRITY is taking care of
> the user authentication, after the checking, NETEGRITY put a HTTP header
> which called HTTP_SM_USER. Under Apache2's document room, there is a
> secret directory (for example $Apache_Document_Root/secretDir/) , which
> is only accessable by one user (for example this username is admin, it
> means HTTP_SM_USER=admin). What do I have to do with this security
> checking?
See mod_setenvif or mod_rewrite.
In the first case, it will look something like:
SetEnvIf SM-USER ^admin$ got_admin
Order deny,allow
deny from all
allow from env=got_admin
I'm assuming that the real name of the HTTP header is SM-USER.
Joshua.
---------------------------------------------------------------------
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
This message has been checked by KONE Corporation for the presence of
computer viruses
This message has been checked by KONE Corporation for the presence of computer viruses
Re: [users@httpd] question about apache
Posted by Joshua Slive <jo...@slive.ca>.
On Wed, 20 Nov 2002, Peng Annie wrote:
> Hi, another question again.
>
> Now I understand with
>
> SetEnvIf SM-USER ^admin$ got_admin
> Order deny,allow
> deny from all
> allow from env=got_admin
>
> I can allow user admin to access the dir. How about if we have a lot of
> users. Is it possible to load usernames from a file?
Not with setenvif. mod_rewrite, on the other hand, can use a dbm or text
database.
Joshua.
---------------------------------------------------------------------
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