If I recall correctly the AuthUserFile line needs to point with the
absolute path to the htpasswd file ex:
/home/webuser/public_html/directory/.htpasswd
AuthUserFile /absolute/path/to/.htpasswd
AuthGroupFile /dev/null
AuthName "Registered Users Only"
AuthType Basic
<Limit GET>
require valid-user
</Limit>
>At 12:21 PM 9/20/00 -0500, you wrote:
>Finally I'm being asked for a password, but I'm getting "Authorization
failed, retry?" errors.
>
>Any ideas why? I'm using htpasswd, read several examples and the man page,
it's so simple it's hard to mess up. Permissions and directives are as
follows:
>
>[root@csc003 RedHatUpdates]# ls -l /etc/httpd/conf/httpd.conf
>-rw-r--r-- 1 root root 34087 Sep 20 12:05
/etc/httpd/conf/httpd.conf
>
><VirtualHost *IP_addresss_here*>
> ServerAdmin [EMAIL PROTECTED]
> DocumentRoot /Webhomes/Vanguard_mailer
> ErrorLog logs/VanguardMailer-error_log
> CustomLog logs/VanguardMailer-access_log common
> <Directory /Webhomes/Vanguard_mailer>
> AllowOverride AuthConfig
> </Directory>
></VirtualHost>
>
>[root@csc003 RedHatUpdates]# ls -l /Webhomes/Vanguard_mailer/.htaccess
>-rw-r--r-- 1 admin users 128 Sep 20 11:33
/Webhomes/Vanguard_mailer/.htaccess
>
>[root@csc003 RedHatUpdates]# cat /Webhomes/Vanguard_mailer/.htaccess
>AuthType Basic
>AuthName "By Invitation Only"
>AuthUserFile /work/htpasswd.vanguard
>AuthGroupFile /dev/null
>require user *username_here*
>
>
>[root@csc003 RedHatUpdates]# ls -l /work/htpasswd.vanguard
>-rw-r--r-- 1 admin users 23 Sep 20 12:08
/work/htpasswd.vanguard
>
>(which contains the username and some encrypted version of the password)
>
>Do any of those look wrong? Why else would Authorization fail? (note: it's
not because I'm typing the wrong password ;-)
>
>Thanks,
>
> JW
>
>
>At 09:44 AM 9/20/2000 -0700, you wrote:
>>You need to tell apache to use the .htaccess file. Do you have an apache
>>directive somewhere similar to this?
>>
>><Directory /path/to/directory>
>> AllowOverride AuthConfig <---this tells apache to use the
>>htaccess file
>></Directory>
>>
>>
>>>At 11:27 AM 9/20/00 -0500, you wrote:
>>>I happen to be dealing with exactly the same thing, and it's not working
>>very well.
>>>Setting up the passwd file went fine, but I have a feeling the .htaccess
>>file is messed up.
>>>
>>>BTW on redhat there's no man page for htaccess
>>>
>>>What should the permissions/ownership be on a .htaccess file?
>>>
>>>Also, does the following look ok?
>>>
>>><Directory /Webhomes/Vanguard_mailer>
>>> <Files *>
>>> AuthName "Test"
>>> AuthType Basic
>>> AuthUserFile /work/vanguard.htpasswd
>>> Require valid-user
>>> </Files>
>>></Directory>
>>>
>>>Can an asterisk be used in <Files> like that?
>>>
>>> JW
>>>
>>>At 01:06 AM 9/21/2000 +1100, you wrote:
>>>
>>>>You have to setup .htaccess in httpd.conf
>>>>Then in your directory eg /home/httpd/html/someclient/.htaccess
>>>>chmod 666 .htaccess
>>>>
>>>>do a man on htpasswd or htaccess
>>>>
>>>>to find out
>>>>what to put into .htaccess I
>>>>
>>>>On Wed, 20 Sep 2000, Andrew So Hing-pong wrote:
>>>>> As I know, after setting the apache, the users can reach his own
>>>>> directory, as http://domain.com/~user. Now I can do that.
>>>>> But I see some web sites has this settings. When typing
>>>>> "http://domain.com/~user", then prompt me for username and password
>>>>> , if both are corrent, then let me in, otherwise, refuse the
>>>>> connection. Any entry can be added on httpd.conf ?/?
>>>>> Is it possible ? I think it seems to be any stuffs about AuthUser..
>>>>> ...
>>>>>
>>>>> Thanks
>>>>>
>>>>> #####################################################################
>>>>> # Andrew H.P. So, Software Developer #
>>>>> # First Ecommerce Limited, http://www.firstecom.com #
>>>>> # 8/F, Henley Building, 5 Queen's Road Central, Hong Kong #
>>>>> # [EMAIL PROTECTED] Tel:(852)2289-9542 Fax:(852)2801-5939 #
>>>>> #####################################################################
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Redhat-list mailing list
>>>>> [EMAIL PROTECTED]
>>>>> https://listman.redhat.com/mailman/listinfo/redhat-list
>>>>
>>>>
>>>>
>>>>_______________________________________________
>>>>Redhat-list mailing list
>>>>[EMAIL PROTECTED]
>>>>https://listman.redhat.com/mailman/listinfo/redhat-list
>>>
>>>
>>>
>>>_______________________________________________
>>>Redhat-list mailing list
>>>[EMAIL PROTECTED]
>>>https://listman.redhat.com/mailman/listinfo/redhat-list
>>>
>>>
>>
>>
>>
>>_______________________________________________
>>Redhat-list mailing list
>>[EMAIL PROTECTED]
>>https://listman.redhat.com/mailman/listinfo/redhat-list
>
>
>
>_______________________________________________
>Redhat-list mailing list
>[EMAIL PROTECTED]
>https://listman.redhat.com/mailman/listinfo/redhat-list
>
>
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list