Hello all,

I have a question about the use of AuthUserFile of mod_auth module
together with mod_userdir in apache 2.2.14

 I have created this .htaccess file in the public_html directory

AuthType Basic
AuthName "Members Only"
AuthUserFile ~arisg/.htpasswd
Require valid-user

 I'm also using mod_userdir so that i can access my web page like:
http://server/~arisg.

 However when i try to authenticate i get an error message that it is
unable to locate the /opt/Apache/~arisg/.htpasswd file. Since i'm using
mod_userdir this doesn't seem that is the right place to search for this
file, but rather go to the user's home directory and search there.

Reading the documentation it says that if the filename in AuthUserFile is
not an absolute path, then it is relative to the Server root path. However
since we are using mod_userdir and we have user home pages, i think that
it would be reasonable for apache httpd to search at the user's home
directory. We could always use a hardcoded absolute path, but since we
have a large number of users, and their home directories reside in
different places, it is hard to inform every user the correct absolute
path to put in their .htaccess file.

 In apache httpd 1.3.x we used the same trick in order to provide this
functionality. Is there a work arround for apache httpd 2.2.x???
Shouldn't apache translate the ~user at the user's $HOME dir when
mod_userdir is used???
(I've already thought the possibility of setting up a "global" /home
directory and using softlinks to point to every user's real home
directory, so the .htaccess could have the /home/user/.htpasswd as a file,
but this is something that i think is not a proper way to solve this
issue).

  Thanks for any feedback, or ideas on this issue.
     Best Regards
       Aristotelis


---------------------------------------------------------------------
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-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to