Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old May 31st, 2001, 04:33 AM
chakotha chakotha is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: Ireland
Posts: 90 chakotha User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Unhappy htaccess login repetition

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.

Reply With Quote
  #2  
Old June 1st, 2001, 03:33 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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?

Reply With Quote
  #3  
Old June 5th, 2001, 05:16 AM
chakotha chakotha is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: Ireland
Posts: 90 chakotha User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
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.

Reply With Quote
  #4  
Old June 5th, 2001, 05:24 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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>

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > htaccess login repetition


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway