Thanks it worked.

For the benefit of other newbies:


   1. Generate the password file, and put in the directory you wish to 
   protect:
   
   ./mongoose -A .htpasswd myserver joe test
   
   2. Next, either launch Mongoose with "./mongoose -auth_domain myserver" 
   or edit mongoose.conf to include the auth_domain directive.
   

On Tuesday, January 14, 2014 4:46:44 PM UTC+1, Sergey Lyubka wrote:
>
>
>
>
> On Tue, Jan 14, 2014 at 3:38 PM, Gilles <[email protected] 
> <javascript:>>wrote:
>
>> Thanks but still no go (this is in a test lab, so no DNS server):
>>
>>    1. Added server host to "hosts" file on client host: 
>>    192.168.0.10<TAB>srv
>>    2. Ran ./mongoose-lua-sqlite -A .htpasswd srv joe test
>>    3. Hit "http://srv:8080/mysecret": Doesn't pass authentication, and 
>>    ends in 404
>>    
>> Note that your question is not mongoose specific. I've shown you a 
> working sequence of commands,
> and you turned around with non-working one saying it is not working. 
> Wasn't that expected?
>
> Take a look at https://en.wikipedia.org/wiki/Digest_access_authentication, 
> there is 
> an example with explanation.
>
> Here is another working sequence that uses "srv" domain rather then the 
> default one:
>
> mongoose -A .htpasswd srv joe test
> mongoose -auth_domain srv
>
> I have no problem explaining things, but please read carefully.
>

-- 
You received this message because you are subscribed to the Google Groups 
"mongoose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mongoose-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to