4WebHelp
 FAQ  •  Search  •  User Groups  •  Forum Admins  •  Smilies List  •  Statistics  •  Rules   •  Login   •  Register
Toggle Navigation Menu

 .htaccess
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic
Author Message
Zack
Junior WebHelper
Junior WebHelper


Joined: 23 Nov 2003
Posts: 21

PostPosted: Sun Nov 23, 2003 10:04 am (20 years, 5 months ago) Reply with QuoteBack to Top

hi
i have setup .htaccess and .htpasswd but when i try and access my site the login box pops up like its meant to but when i type in my username and password it doesnt work the box carries on poping up 3 tmes and then says:

Quote:
Authorization Required
This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required


Can Someone Help Please! Mad
OfflineView User's ProfileFind all posts by ZackSend Personal Message
adam
Forum Moderator & Developer



Joined: 26 Jul 2002
Posts: 704
Location: UK

PostPosted: Sun Nov 23, 2003 10:54 am (20 years, 5 months ago) Reply with QuoteBack to Top

can you show us the code you put in .htaccess? (don't post .htpasswd though Wink)

________________________________
It's turtles all the way down...
OfflineView User's ProfileFind all posts by adamSend Personal MessageVisit Poster's Website
jayant
Team Member



Joined: 07 Jan 2002
Posts: 262
Location: New Delhi, India

PostPosted: Sun Nov 23, 2003 1:04 pm (20 years, 5 months ago) Reply with QuoteBack to Top

make sure the path to .htapasswd is correct. to avoid confusion use absolute path. akso, have you restricted the page u r trying to access to a perticular group / user and using the other username/password combo.
the username and password are case sensitive.
r u sure u generated the correct password. of use the 4WH .htpasswd generator.

________________________________
Jayant Kumar
Member of the 4WebHelp Team
Nibble Guru - Computing Queries Demystified
GZip/ Page Compression Test
OfflineView User's ProfileFind all posts by jayantSend Personal MessageVisit Poster's WebsiteYahoo MessengerMSN Messenger
Zack
Junior WebHelper
Junior WebHelper


Joined: 23 Nov 2003
Posts: 21

PostPosted: Wed Nov 26, 2003 7:23 pm (20 years, 4 months ago) Reply with QuoteBack to Top

this is my .htaccess:

Code:
AuthUserFile /.htpasswd
AuthName "Please Log On"
AuthType Basic
require valid-user
OfflineView User's ProfileFind all posts by ZackSend Personal Message
adam
Forum Moderator & Developer



Joined: 26 Jul 2002
Posts: 704
Location: UK

PostPosted: Wed Nov 26, 2003 8:36 pm (20 years, 4 months ago) Reply with QuoteBack to Top

the AuthUserFile line is the problem, what you've got there is telling the server to look at the root of the filesystem for the file - where is .htpasswd on the filesystem, or in relation to .htaccess?

________________________________
It's turtles all the way down...
OfflineView User's ProfileFind all posts by adamSend Personal MessageVisit Poster's Website
Zack
Junior WebHelper
Junior WebHelper


Joined: 23 Nov 2003
Posts: 21

PostPosted: Thu Nov 27, 2003 5:50 pm (20 years, 4 months ago) Reply with QuoteBack to Top

it is in the main/home section.
OfflineView User's ProfileFind all posts by ZackSend Personal Message
jayant
Team Member



Joined: 07 Jan 2002
Posts: 262
Location: New Delhi, India

PostPosted: Fri Nov 28, 2003 9:31 am (20 years, 4 months ago) Reply with QuoteBack to Top

then that will be something like
/home/username/.htpasswd

________________________________
Jayant Kumar
Member of the 4WebHelp Team
Nibble Guru - Computing Queries Demystified
GZip/ Page Compression Test
OfflineView User's ProfileFind all posts by jayantSend Personal MessageVisit Poster's WebsiteYahoo MessengerMSN Messenger
Zack
Junior WebHelper
Junior WebHelper


Joined: 23 Nov 2003
Posts: 21

PostPosted: Fri Nov 28, 2003 7:52 pm (20 years, 4 months ago) Reply with QuoteBack to Top

jayant wrote:
then that will be something like
/home/username/.htpasswd


my website address is:


http://muirsweb.united.net.kg


htaccess:
http://muirsweb.united.net.kg/.htaccess

htpasswd:
http://muirsweb.united.net.kg/.htpasswd
OfflineView User's ProfileFind all posts by ZackSend Personal Message
adam
Forum Moderator & Developer



Joined: 26 Jul 2002
Posts: 704
Location: UK

PostPosted: Fri Nov 28, 2003 9:25 pm (20 years, 4 months ago) Reply with QuoteBack to Top

in that case you can probably just put:
Code:
AuthUserFile .htpasswd

or, failing that:
Code:
AuthUserFile ./.htpasswd

________________________________
It's turtles all the way down...
OfflineView User's ProfileFind all posts by adamSend Personal MessageVisit Poster's Website
Zack
Junior WebHelper
Junior WebHelper


Joined: 23 Nov 2003
Posts: 21

PostPosted: Sat Nov 29, 2003 10:44 am (20 years, 4 months ago) Reply with QuoteBack to Top

its still not working. i think its the server.
does anyone know a good server that it will work on.

i want a FREE server.
OfflineView User's ProfileFind all posts by ZackSend Personal Message
adam
Forum Moderator & Developer



Joined: 26 Jul 2002
Posts: 704
Location: UK

PostPosted: Sat Nov 29, 2003 11:05 am (20 years, 4 months ago) Reply with QuoteBack to Top

most free services disable things like .htaccess...usually if you want any useful features you have to pay

________________________________
It's turtles all the way down...
OfflineView User's ProfileFind all posts by adamSend Personal MessageVisit Poster's Website
Zack
Junior WebHelper
Junior WebHelper


Joined: 23 Nov 2003
Posts: 21

PostPosted: Sat Nov 29, 2003 11:08 am (20 years, 4 months ago) Reply with QuoteBack to Top

ok do u know any cheap one then?
OfflineView User's ProfileFind all posts by ZackSend Personal Message
adam
Forum Moderator & Developer



Joined: 26 Jul 2002
Posts: 704
Location: UK

PostPosted: Sat Nov 29, 2003 11:41 am (20 years, 4 months ago) Reply with QuoteBack to Top

I happen to work for one (ValcatoHosting.com), also WebHostingTalk is a good place to go if you want to get a few good offers.

just out of interest, where are you hosted now?

________________________________
It's turtles all the way down...
OfflineView User's ProfileFind all posts by adamSend Personal MessageVisit Poster's Website
Zack
Junior WebHelper
Junior WebHelper


Joined: 23 Nov 2003
Posts: 21

PostPosted: Sat Nov 29, 2003 11:43 am (20 years, 4 months ago) Reply with QuoteBack to Top

united.net.kg
OfflineView User's ProfileFind all posts by ZackSend Personal Message
adam
Forum Moderator & Developer



Joined: 26 Jul 2002
Posts: 704
Location: UK

PostPosted: Sat Nov 29, 2003 1:19 pm (20 years, 4 months ago) Reply with QuoteBack to Top

hmm...on their home page they list full support for .htaccess, so you shouldn't need to switch to someone else. what exactly happens when you visit the password protected directory?

________________________________
It's turtles all the way down...
OfflineView User's ProfileFind all posts by adamSend Personal MessageVisit Poster's Website
Display posts from previous:      
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic


 Jump to:   


Go to page 1, 2  Next

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.


Page generation time: 0.287626 seconds :: 18 queries executed :: All Times are GMT
Powered by phpBB 2.0 © 2001, 2002 phpBB Group :: Based on an FI Theme