Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

User Authentification on a Directory and a SubDirectory

Status
Not open for further replies.

GRPfr

Technical User
Aug 5, 2003
1
FR
Hi,

On my site there is an authentication on a directory and an other authentication on a subdirectory of the 1st directory.

When I first go on my site, I have to authenticate. OK ...Then, when I go to the Restricted directory, if my account is not in the retricted group, he asks me to re-authenticate ... But I'd like him to display the "/error message.htm" page define in "ErrorDocument 401" directive.

How can I do this ?...

Thanks in advance

An extract of my httpd.conf

# the home directory of my site
<Directory /applis/list/web/htdocs>
AuthName &quot;mysite.com&quot;
AuthType Basic
AuthDBMUserFile /applis/list/web/etc/users
require valid-user
</Directory>

<Directory /applis/list/web/htdocs/Restricted>
AuthName &quot;mysite.com&quot;
AuthType Basic
AuthDBMUserFile /applis/list/web/etc/users
authDBMGroupFile /applis/list/web/etc/users
require group restricted
ErrorDocument 401 /error message.htm
</Directory>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top