General
cancel
Showing results for 
Search instead for 
Did you mean: 

User Authentification on a Directory and a SubDirectory

Grégory
Occasional Visitor

User Authentification on a Directory and a SubDirectory

Hi,

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

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

AuthName "mysite.com"
AuthType Basic
AuthDBMUserFile /applis/list/web/etc/users
require valid-user



AuthName "mysite.com"
AuthType Basic
AuthDBMUserFile /applis/list/web/etc/users
authDBMGroupFile /applis/list/web/etc/users
require group restricted
ErrorDocument 401 /error message.htm