Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Auth with .htpasswd requests. user/pass twice!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
The_Bell
Apprentice
Apprentice


Joined: 01 Jul 2002
Posts: 157

PostPosted: Wed Dec 11, 2002 8:48 pm    Post subject: Auth with .htpasswd requests. user/pass twice! Reply with quote

I have this .htaccess file in a dir to restrict the access to the web page there:

AuthUserFile <path to the .htpasswd file>
AuthName "Domini Restringit platelet-research"
AuthType Basic

require valid-user

Well i added a username with the htpasswd command, and when I try to access the web page through Mozilla, everything goes right, but I don't know why Internet Explorer requests the username and pasword twice, if I put it ok the first time, the user/password dialog box appears again. I tried it with Konkeror, and even lynx, and those programs also requires me to input the fields twice.

Could anyone help to solve this?
_________________
Live long and prosper
Back to top
View user's profile Send private message
Messiah
Tux's lil' helper
Tux's lil' helper


Joined: 30 Apr 2002
Posts: 139

PostPosted: Thu Dec 12, 2002 1:50 pm    Post subject: Reply with quote

it is because your hostname is domain.xxx and your serveralias is in the form of www.domain.xxx. You call the URL www.domain.xxx/directory, and the server maps it to domain.xxx/directory/, after applying the first username/password combo.

Solution:

- Make www.yourdomain.xxx your hostname and domain.xxx your alias
- Call the URL www.yourdomain.xxx/directory/ (note the trailing slash!)

HTH
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum