|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
Hi folks,
I've been putting a htaccess/htpasswd in place on a site AuthUserFile /www/vhtdocs/**domain**/.htpasswd AuthName "Jungle Juice" AuthType Basic <Limit GET POST> require valid-user </Limit> and everything looks ok, but for some reason it asks for the username/password 3-4-5 times before proceeding. (To set up the password I type: $cd **domain** $htpasswd -c .htpasswd <I>username</I> then type the password twice) Sometimes it doesn't grant access at all. Does anyone know why and what I'm doing wrong? Many thanks - Rock on. |
|
#2
|
|||
|
|||
|
Where is your .htaccess? What's the protected directory (in URL)?
How does the hyperlink on your static html look like? http://www.domain.com/private or http://www.domain.com/private/ ? Make sure you are using http://www.domain.com/private/ Is the Location /private a symlink on your file system? Or is it a Alias like: Alias /private /usr/local/path/to/private >> it asks for the username/password 3-4-5 times before proceeding Can you be more specific? proceeding means prompting for login? Or asking for username/password again and again without showing any incorrect password? |
|
#3
|
|||
|
|||
|
Thanks for replying,
my .htaccess is in the diretory that I'm trying to protect. The problem is that it keeps asking for username/password again and again without showing any incorrect password - every time I load a page within that directory and sometimes several times for each load. I think the location is an alias ie. the address would be http://www.domain.com/private and /home/httpd/vhtdocs/domain/private on the server. Many thanks. |
|
#4
|
|||
|
|||
|
1) Change Alias /private /home/httpd/vhtdocs/domain/private to:
Alias /private/ /home/httpd/vhtdocs/domain/private/ 2) Change the hyperlink on your static html login page like so: <a href="/private/">Login here</a> |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > htaccess login repetition |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|