You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Hong Tian <ht...@ias.edu> on 2002/04/03 16:27:20 UTC

Directory access

In httpd.conf:

Directory /usr/local/apache/htdocs/test>
Order deny,allow
Deny from all
Allow from 123.456.789.10
</Directory>

It only allow the host 123.456.789.10 can access
/usr/local/apache/htdocs/test. 

There are two users (UserA and UserB) in the host of 123.456.789.10.
If I want only userA can access /usr/local/apache/htdocs/test (not userB),
how to configure it?
TIA


---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org


Re: Directory access

Posted by Avnish Pundir <ap...@cisco.com>.
Hope you are familiar with basic file authentication. Here's the required
stuff.

Directory /usr/local/apache/htdocs/test>
Order deny,allow
Deny from all
Allow from 123.456.789.10
AuthType basic
AuthName "My auth"
AuthUserFile "auth file having UserA username/password"
Require user UserA
Satisfy all
</Directory>


Thanks
Avnish
----- Original Message -----
From: "Hong Tian" <ht...@ias.edu>
To: <us...@httpd.apache.org>
Cc: <ht...@ias.edu>
Sent: Wednesday, April 03, 2002 7:57 PM
Subject: Directory access


In httpd.conf:

Directory /usr/local/apache/htdocs/test>
Order deny,allow
Deny from all
Allow from 123.456.789.10
</Directory>

It only allow the host 123.456.789.10 can access
/usr/local/apache/htdocs/test.

There are two users (UserA and UserB) in the host of 123.456.789.10.
If I want only userA can access /usr/local/apache/htdocs/test (not userB),
how to configure it?
TIA


---------------------------------------------------------------------
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
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
For additional commands, e-mail: users-help@httpd.apache.org


Re: Directory access

Posted by alex dyas <ad...@twowaytv.co.uk>.
Suggestion - configure apache to require authentication, let UserA know 
the username/password combination.

For authentication see:

http://httpd.apache.org/docs/howto/auth.html

alex.

Hong Tian wrote:
> In httpd.conf:
> 
> Directory /usr/local/apache/htdocs/test>
> Order deny,allow
> Deny from all
> Allow from 123.456.789.10
> </Directory>
> 
> It only allow the host 123.456.789.10 can access
> /usr/local/apache/htdocs/test. 
> 
> There are two users (UserA and UserB) in the host of 123.456.789.10.
> If I want only userA can access /usr/local/apache/htdocs/test (not userB),
> how to configure it?
> TIA
> 

-- 
-= alex dyas - webmaster - twowaytv - 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
For additional commands, e-mail: users-help@httpd.apache.org