AuthUserFile with relative path

gboudreau

Well-Known Member
#1
Hi,

I'm trying to specify the password file on a AuthUserFile line using relative path, but LiteSpeed doesn't seem to handle those.

I'm currently using "AuthUserFile /etc/httpd/conf/.htpasswd"
but would like to use "AuthUserFile .htpasswd".
Apache's mod_auth says "File-path is the path to the user file. If it is not absolute (i.e., if it doesn't begin with a slash), it is treated as relative to the ServerRoot."

I tried both "AuthUserFile .htpasswd" and "AuthUserFile ./.htpasswd" without success.
LiteSpeed logs "Failed to open file: '.htpasswd'" or "Failed to open file: './.htpasswd'"

Thanks,
 
Last edited:
Top